urios07 Newcomer
Number of posts : 150 Age : 33 Location : (secret) Job/hobbies : (secret) <font color=\"cyan\">Reputation</font> : <font color=\"red\">Violations</font> : <font color=\"lightgreen\">Credit</font&g : Status : In a Relationship Registration date : 2008-08-15
| Subject: Date And Time in the Title Bar Sat Aug 16, 2008 3:14 pm | |
| Title: Clock At the Title Bar. Credit: http://javascript.internet.com. Tested with: NN, FF, IE7 Click Here for the Preview! - Quote :
document.write("<BODY onLoad=\"clock()\">");
function clock() { var date = new Date() var year = date.getYear() var month = date.getMonth() var day = date.getDate() var hour = date.getHours() var minute = date.getMinutes() var second = date.getSeconds() var months = new Array("", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")
var monthname = months[month]
if (hour > 12) { hour = hour - 12 }
if (minute < 10) { minute = "0" + minute }
if (second < 10) { second = "0" + second }
document.title = "JLDesignz - " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second
setTimeout("clock()", 1000)
}
Legend:
- You can change the RED one with your own..
@mods, delete this topic if you dont want this trick.. | |
|
JL[the_listener] GFX Designer
Number of posts : 157 Age : 31 Location : in His time Job/hobbies : student//Forumer <font color=\"cyan\">Reputation</font> : <font color=\"red\">Violations</font> : <font color=\"lightgreen\">Credit</font&g : Status : In a Relationship Registration date : 2008-07-28
| Subject: Re: Date And Time in the Title Bar Sun Aug 17, 2008 9:49 am | |
| nice one christian...ill save this... | |
|