[Help] Big lag with this script show time romania

DemonuMu

Well-Known Member
Joined
May 26, 2011
Messages
1,053
Reaction score
220
I modified to work for muweb but when i use this script my muweb start to reload very slow and make lag in my pc

If anyone can modify it to reload faster this script and to stop create lag

<div class='rightpanel'> <div class='box'> <div class='top'></div> <div class='container ranking'> <b>Server Time</b> <script language="JavaScript" type="text/javascript"> function sivamtime() { now=new Date(); hour=now.getHours(); min=now.getMinutes(); sec=now.getSeconds(); if (min<=9) { min="0"+min; } if (sec<=9) { sec="0"+sec; } if (hour>24) { hour=hour-12; add="pm"; } else { hour=hour; add="pm"; } if (hour==12) { add="pm"; } time = ((hour<=9) ? "0"+hour : hour) + ":" + min + ":" + sec + " " + add; if (document.getElementById) { document.getElementById('theTime').innerHTML = time; } else if (document.layers) { document.layers.theTime.document.write(time); document.layers.theTime.document.close(); } setTimeout("sivamtime()", 1000); } window.onload = sivamtime; </script> <table class=tmem border='0' cellspacing='1' width="160px" height="25" align="center" border="0" valign="top"><tr><td> <font color="red" size="3"><div id="theTime"></div></font> </td></tr></table> </div> <div class='bottom'></div> </div> </div>
 
Last edited: