Javascript Code: Live Clock on webpage,display current date and time on webpage free javascript code.
This is a cross browser live clock script. In this script you can configure every aspect , from specifying whether to just display the time, the time plus date, to the clock's font size/color, and more. The ultimate live clock script this is!
Step 1: Add the below code where you wish the clock to appear on the page:
This is a cross browser live clock script. In this script you can configure every aspect , from specifying whether to just display the time, the time plus date, to the clock's font size/color, and more. The ultimate live clock script this is!
Step 1: Add the below code where you wish the clock to appear on the page:
Step 2: On Tag onLoad event handler call the show_clock() javascript function:
<body onLoad="show_clock()">
In this tutorial, you will learn how to shake Internet Explorer window. I have already teach you about a JavaScript code from which you can shake your Mozilla Firefox window. You are gonna learn How to shake Internet Explorer window in this tutorial.
I have a javascript that causes the browser window to shake if someone clicks a button on the site to activate a function called shake().
This seems to work fine in Internet Explorer but it also causes the browser window to resize in Firefox.
you can also play with the numbers 10 and 1 in the script, you can change them to say 20 and 5 to get slightly different effects, but going to something like 50 or 100 could produce some scarey effects, don't know if i would trust such effects on my computer, javascript can get out of hand on a computer if mathmatics are not done right.
I have a javascript that causes the browser window to shake if someone clicks a button on the site to activate a function called shake().
This seems to work fine in Internet Explorer but it also causes the browser window to resize in Firefox.
you can also play with the numbers 10 and 1 in the script, you can change them to say 20 and 5 to get slightly different effects, but going to something like 50 or 100 could produce some scarey effects, don't know if i would trust such effects on my computer, javascript can get out of hand on a computer if mathmatics are not done right.
There are several ways of identifying a browser, but by using below JavaScript code you can Indentify Each and everything about browser.See the below example:
<html>
<body>
<script type="text/javascript">
var x =
navigator
document.write("CodeName="
+ x.appCodeName)
document.write("<br>")
document.write("MinorVersion="
+ x.appMinorVersion)
document.write("<br>")
document.write("Name="
+ x.appName)
document.write("<br>")
document.write("Version="
+ x.appVersion)
document.write("<br>")
document.write("CookieEnabled="
+ x.cookieEnabled)
document.write("<br>")
document.write("CPUClass="
+ x.cpuClass)
document.write("<br>")
document.write("OnLine="
+ x.onLine)
document.write("<br>")
document.write("Platform="
+ x.platform)
document.write("<br>")
document.write("UA="
+ x.userAgent)
document.write("<br>")
document.write("BrowserLanguage="
+ x.browserLanguage)
document.write("<br>")
document.write("SystemLanguage="
+ x.systemLanguage)
document.write("<br>")
document.write("UserLanguage="
+ x.userLanguage)
</script>
</body>
</html>
There are several ways of identifying a browser, but by using below JavaScript code you can Indentify your browser.
<html>
<body>
<h1>Welcome Guest !</h1>
<hr>
<p>Your browser identifies as:<br>
<script language="JavaScript" type="text/javascript">
document.write(navigator.userAgent + ".");
</script>
</p>
</body>
</html>
You can get More details about the client's browser See the below Example:
<html>
<body>
<script type="text/javascript">
document.write("<p>Browser:
")
document.write(navigator.appName + "</p>")
document.write("<p>Browserversion:
")
document.write(navigator.appVersion + "</p>")
document.write("<p>Code:
")
document.write(navigator.appCodeName + "</p>")
document.write("<p>Platform:
")
document.write(navigator.platform + "</p>")
document.write("<p>Cookies
enabled: ")
document.write(navigator.cookieEnabled + "</p>")
document.write("<p>Browser's
user agent header: ")
document.write(navigator.userAgent + "</p>")
</script>
</body>
</html>
Here is the nice perfect menu control which is made by using JavaScript you can put it on your page and have a menu with the colors that you want.
Just see the code and use the code .