The Arcive of vBulletin Modifications Site. |
|
Clock In Navbar Details »»
|
|||||||||||||||||||||||||
Dont Copy This Hack
Javascript Code By w3schools.com Description: This Shows The Time, In Hours Minutes And Seconds, In The Navbar When The Page Is Loaded 1 New Phrase 1 Template Edit Install: Find In Navbar: Code:
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if> </div> Add Below: Code:
<head>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
</script>
</head>
<b>
<body onload="startTime()">
<div id="txt"><b>$vbphrase[loading_clock]</b></div>
</body></b>
History - V.1.0 Released Future Developments - Cache Template I Will Only Give Support To Those That Click Install Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Thanks a lot, Enigma.
|
|
#3
|
|||
|
|||
|
your welcome. thanks for installing
|
|
#4
|
||||
|
||||
|
Thank you
|
|
#5
|
||||
|
||||
|
Nice and simple .. reminds me of my ex
![]() Clicked install |
|
#6
|
|||
|
|||
|
haha thanks for installing
|
|
#7
|
|||
|
|||
|
|
|
#8
|
||||
|
||||
|
Thanks!
|
|
#9
|
|||
|
|||
|
Thanks. as suggestion: Since when there is a lot of space, what about add the current date?
dd/mm/yy -> User should choose the format. 14/02/07 your clock GMT user |
|
#10
|
|||
|
|||
|
Yes I Will Add That In The Next Version
|
![]() |
|
|