Clock and Date in Navbar
This modification is in the archives.
In Navbar template
Find Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if> Code:
<!-- clock hack--> <div id="clock">Loading...</div> <script type="text/javascript"> function refrClock() { var d=new Date(); var s=d.getSeconds(); var m=d.getMinutes(); var h=d.getHours(); var day=d.getDay(); var date=d.getDate(); var month=d.getMonth(); var year=d.getFullYear(); var days=new Array("Sun","Mon","Tue","Wed","Thurs","Fri","Sat"); var months=new Array("1","2","3","4","5","6","7","8","9","10","11","12"); var am_pm; if (s<10) {s="0" + s} if (m<10) {m="0" + m} if (h>12) {h-=12;am_pm = "pm"} else {am_pm="am"} if (h<10) {h="0" + h} document.getElementById("clock").innerHTML=months[month] + "-" + date + "-" + year + " [" + days[day] + "] [" + h + ":" + m + ":" + s + "] " + am_pm; setTimeout("refrClock()",1000); } refrClock(); </script> <!-- / clock hack --> Download No files for download. Supporters / CoAuthors
Screenshots |
Similar Mods
Forum Home Enhancements Clock In Navbar | vBulletin 3.6 Add-ons |
Forum Home Enhancements Automatic updating clock in navbar. | vBulletin 3.6 Template Modifications |
Mini Mods Kpt - Clock and Date In Navbar | vBulletin 3.6 Template Modifications |