»
EnglishFrenchVietnamese

Print - Swiss Luxery Watch II - JavaScriptBank.com

Full version: jsB@nk » Time » Clock » Swiss Luxery Watch II
URL: https://www.javascriptbank.com/swiss-luxery-watch-ii.html

Swiss Luxery Watch II © JavaScriptBank.comThis is the most exclusive Swiss Luxury Probably the most exclusive Swiss Watch ever written in DHTML. The script combines DHTML, CSS, JavaScript and images. Extremly fast loading. Made for IE4x.

Full version: jsB@nk » Time » Clock » Swiss Luxery Watch II
URL: https://www.javascriptbank.com/swiss-luxery-watch-ii.html



CSS
<STYLE>.imgall {POSITION: absolute; VISIBILITY: hidden}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=JavaScript>var clipTop=0var clipBottom=clipTop+60var clipLeftvar clipRightvar isNSif (document.layers) { (isNS=true) }var HIDDEN = (isNS) ? 'hide' : 'hidden';var VISIBLE = (isNS) ? 'show' : 'visible';var imgSecondsvar imgMinutesvar imgHoursvar imgClockvar textDatevar textDayvar textLinkvar clipHours=""var clipMinutes=""var clipSeconds=""var startLeft=-5var startTop=85var tunePosHour =-2function initObjects() {if (document.all) {imgSeconds = document.all.imgSeconds.styleimgMinutes = document.all.imgMinutes.styleimgHours = document.all.imgHours.styleimgClock = document.all.imgClock.styletextDate = document.all.textDate.styletextDay = document.all.textDay.styletextLink = document.all.textLink.stylestartLeft=-3startTop=89imgHours.posTop=startTopimgMinutes.posTop=startTopimgSeconds.posTop=startToptextDate.posTop = 111textDate.posLeft = 75textDay.posTop = 111textDay.posLeft = 41textLink.posTop = 220textLink.posLeft = -9imgSeconds.visibility=VISIBLEimgMinutes.visibility=VISIBLEimgHours.visibility=VISIBLEimgClock.visibility=VISIBLEtextDate.visibility=VISIBLEtextDay.visibility=VISIBLEtextLink.visibility=VISIBLEtickIE()}if (document.layers) {imgSeconds = document.imgSecondsimgMinutes = document.imgMinutesimgHours = document.imgHoursimgClock = document.imgClocktextDate = document.textDatetextDay = document.textDaytextLink = document.textLinkstartLeft=-1startTop=80imgHours.top=startTopimgMinutes.top=startTopimgSeconds.top=startToptextDate.top = 104textDate.left = 75textDay.top = 104textDay.left = 40textLink.top = 220textLink.left = -10imgSeconds.visibility=VISIBLEimgMinutes.visibility=VISIBLEimgHours.visibility=VISIBLEimgClock.visibility=VISIBLEtextDate.visibility=VISIBLEtextDay.visibility=VISIBLEtextLink.visibility=VISIBLEtickNS()}}function tickIE() {var now = new Date()var nowHours = now.getHours()var nowMinutes = now.getMinutes()var nowSeconds = now.getSeconds()if (nowHours >= 12) {nowHours=nowHours-12}imgHours.posLeft=-(nowHours*60*5+((Math.round(nowMinutes/12))*60)+startLeft+tunePosHour)clipLeft = -(imgHours.posLeft)+30clipRight= clipLeft+56clipHours ="rect("+clipTop+" "+clipRight+" "+clipBottom+" "+clipLeft+")"imgHours.clip=clipHoursimgMinutes.posLeft=-((nowMinutes)*60+startLeft)clipLeft = -(imgMinutes.posLeft)+30clipRight= clipLeft+56clipMinutes ="rect("+clipTop+" "+clipRight+" "+clipBottom+" "+clipLeft+")"imgMinutes.clip=clipMinutesimgSeconds.posLeft=-((nowSeconds)*60+startLeft)clipLeft = -(imgSeconds.posLeft)+35clipRight= clipLeft+56clipSeconds ="rect("+clipTop+" "+clipRight+" "+clipBottom+" "+clipLeft+")"imgSeconds.clip=clipSecondsvar runClock = setTimeout("tickIE()", 100);}function tickNS() {var now = new Date()var nowHours = now.getHours()var nowMinutes = now.getMinutes()var nowSeconds = now.getSeconds()if (nowHours >= 12) {nowHours=nowHours-12}imgHours.left=-(nowHours*60*5+((Math.round(nowMinutes/12))*60)+startLeft+tunePosHour+2)clipLeft = -(imgHours.left)+30clipRight= clipLeft+56imgHours.clip.left = clipLeftimgHours.clip.right = clipRightimgHours.clip.top = clipTopimgHours.clip.bottom = clipBottomimgMinutes.left=-((nowMinutes)*60+startLeft)clipLeft = -(imgMinutes.left)+30clipRight= clipLeft+56imgMinutes.clip.left = clipLeftimgMinutes.clip.right = clipRightimgMinutes.clip.top = clipTopimgMinutes.clip.bottom = clipBottomimgSeconds.left=-((nowSeconds)*60+startLeft)clipLeft = -(imgSeconds.left)+35clipRight= clipLeft+56imgSeconds.clip.left = clipLeftimgSeconds.clip.right = clipRightimgSeconds.clip.top = clipTopimgSeconds.clip.bottom = clipBottomvar runClock = setTimeout("tickNS()", 100);}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=initObjects()><DIV class=imgall id=imgClock>  <IMG src="clock2.jpg" width="110" height="208"></DIV><SCRIPT language=JavaScript>var heute = new Date()var wochentag = heute.getDay()var heuteDatum = heute.getDate()if (wochentag==0) { wochentag = "sun" }else if (wochentag==1) { wochentag = "mon" }else if (wochentag==2) { wochentag = "tue" }else if (wochentag==3) { wochentag = "wed" }else if (wochentag==4) { wochentag = "thu" }else if (wochentag==5) { wochentag = "fri" }else if (wochentag==6) { wochentag = "sam" }document.write('<DIV ID = "textDate" CLASS = "imgall"><font size=1>'+heuteDatum+'</font></DIV>')document.write('<DIV ID = "textDay" CLASS = "imgall"><font size=1>'+wochentag+'</font></DIV>')</SCRIPT><DIV class=imgall id=imgHours>  <IMG src="hours2.gif" width="3620" height="60"></DIV><DIV class=imgall id=imgMinutes>  <IMG src="minutes2.gif" width="3620" height="60"></DIV><DIV class=imgall id=imgSeconds>  <IMG src="seconds2.gif" width="3620" height="60"></DIV><DIV class=imgall id=textLink></DIV></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


Files
http://javascriptbank.com/javascript/time/clock2.jpghttp://javascriptbank.com/javascript/time/hours2.gifhttp://javascriptbank.com/javascript/time/minutes2.gifhttp://javascriptbank.com/javascript/time/seconds2.gif