Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,269 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Time in Menu Bar (31st Dec 07 at 1:00am) | | Post a request to have it changed! 
it'd be sooo much easier!  | | Back to Top - Link to Post |
 |
|
ManGoneMad New Member

![[Avatar]](http://h1.ripway.com/mangonemad/avs/dr_who.gif) Posts: 14 Status: Offline Gender: Male Location: West Coast of Michigan Age: 49 Joined: 31st Dec 2007
| |
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 17 Joined: 30th Dec 2007
| |
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,269 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Time in Menu Bar (31st Dec 07 at 1:20am) | |  Code: - <script type="text/javascript">
- <!--
- /*Time to the left of menu butons by Danny*/
-
- function startTime(){
- var today=new Date()
- var h=today.getHours()
- var m=today.getMinutes()
- var s=today.getSeconds()
- m=checkTime(m)
- s=checkTime(s)
- e = 'am'
- if(h=="12"){
- e = "pm";
- }
- if(h=='0'){
- h="12";
- }else if(h>12){
- h=parseInt(h - 12);
- e = "pm"
- }
-
-
- document.getElementById('time').innerHTML=h+":"+m+":"+s + " " + e
- t=setTimeout('startTime()',999)}
- function checkTime(i){
- if (i<10) {
- i="0" + i}
- return i}
-
- var menu = document.getElementById('welcome_table').getElementsByTagName('td')[2];
-
- menu.innerHTML = '<span style="float:right;" id="time"></span>' + menu.innerHTML;
-
- window.onload = startTime();
-
- //-->
- </script>
Editted, hope you don't mind Danny... Feel free to clean up the code!  | | Back to Top - Link to Post |
 |
|
Ajay Senior Member
   
![[Avatar]](http://img359.imageshack.us/img359/3951/afuimnotcrazytx5.gif) Posts: 508 Status: Offline Gender: Male Location: Virtualforums Support Age: 15 Joined: 19th Feb 2008
| |