View Full Version : script request, for hour status bar?
sir pannels
05-03-2003, 03:02 PM
Hey,
umm im trying to find a script, proberly applet cuz it needs to be live.. an image.. a status bar.. that moves up every minute or so, once its full its an hour... and resets..
any links or codes woudl be cool:)
thanks :)
P:thumbsup:
Have a play with the following
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
Left=50
Top=200
limit=3600
step=0
count=0
function init(){
document.getElementById("temp").style.pixelLeft=Left
document.getElementById("temp").style.pixelTop=Top
document.getElementById("oDIV").style.pixelLeft=Left
document.getElementById("oDIV").style.pixelTop=Top
Width=parseInt(document.getElementById("temp").style.width)
calc=Width/limit
calc2=calc
showtime()
}
function showtime(){
step+=(calc*1)
document.getElementById("oDIV").style.width=step
count++
display.innerText=count
timerID = setTimeout("showtime()",1000)
if(step>Width){
step= -calc
}
}
setTimeout("init()",1000)
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="black">
<div id="temp" style="position:absolute;width:600;height:5;background-color:#FF0000"></div>
<div id="oDIV" style="position:absolute;width:0;height:5;background-color:#FFFF00;z-index:2"></div>
<font color="red"><div id="display"></div>
</font>
</BODY>
</HTML>
sir pannels
05-08-2003, 06:51 PM
Thanks very much man :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.