Posted by Jaws...
I posted this script once before, but it wasn't really that great, especially since it was my first :P
And since we got a hacks board, i will be posting alot of my codes, (unless told to stop lol :P)
Anyway, down to business. This code replaces "Hey user" with "Good morning user" or "Good afternoon user"
Written by Willie Wilson
Add Good Morning/good afternoon to welcome box
Use freely but PLEASE do not post in other locations
var td = document.getElementsByTagName("TD").innerHTML
var x = new Date()
var hour = x.getHours()
var I = document.getElementsByTagName("TD").innerText.split(/\W\s/i)
if(hour < 12)
if(I=="Please Login or Register")
document.getElementsByTagName("TD").innerHTML=td.replace("Welcome", "Good "+txt)
document.getElementsByTagName("TD").innerHTML=td.replace("Hey", "Good "+txt)
NO MODIFYING REQUIRED!
PLACE IN ALL HEADERS!
Hope you guys enjoy it :)
Modified> This code will on work correctly for users using Internet Explorer ( or browsers set to mimic IE).
Edit by garet - If you'd like to see a preview of this code click here