Home
Templates
Wordpress Templates
Blogger Template
Joomla Templates
PhpBB Templates
HTML And CSS Templates
PLugins
Wordpress Plugins
Joomla Modules
Blogger Gadgets
Coupon Codes
Hosting Coupons
Domain Coupons
Menus
HTML And CSS Menus
Flash Menus
Tutorials
Video Tutorials
Articles
Hosting
Free Hosting
Premium Hosting
Domains
Free Domains
Premium Domains
Earning Money
Google Adsense
Affiliate Marketing
Web Loverz
About Us
Contact Us
Java Scripts
Image Vectors
Widgets
Layouts
Tuesday, July 19, 2011
Digital Clock Java Script
Digital Clock Java Script
This script allows you to show the current time of in digital foramt on any page of your site.Just copy past the code given below..
Java Script In Action:
HTML Code
<style> .styling{ background-color:black; color:lime; font: bold 16px MS Sans Serif; padding: 3px; } </style><br /> <br /> <br /> <span id="digitalclock" class="styling"></span><br /> <br /> <script> <!-- //Digital Clock script- by javascriptkit.com //Visit JavaScript Kit (http://javascriptkit.com) for script //Credit must stay intact for use var alternate=0 var standardbrowser=!document.all&&!document.getElementById if (standardbrowser) document.write('<form name="tick"> <input type="text" name="tock" size="11"></form>') function show(){ if (!standardbrowser) var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var dn="AM" if (hours==12) dn="PM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (hours.toString().length==1) hours="0"+hours if (minutes<=9) minutes="0"+minutes if (standardbrowser){ if (alternate==0) document.tick.tock.value=hours+" : "+minutes+" "+dn else document.tick.tock.value=hours+" "+minutes+" "+dn } else{ if (alternate==0) clockobj.innerHTML=hours+" : "+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>" else clockobj.innerHTML=hours+" : "+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>" } alternate=(alternate==0)? 1 : 0 setTimeout("show()",1000) } window.onload=show //--> </script><br />
Digital Clock Java Script
2011-07-19T10:46:00-07:00
Web Lover
Java Scripts|
Search
Change The Language
Be A Part Of Web Loverz
Join Web Loverz
Get Our Latest Updates
Enter your email address:
Sponsors