View Single Post
Old 06-11-2009, 01:29 AM   #3 (permalink)
superstar2k9
Registered User
 
superstar2k9's Avatar
 
Join Date: Mar 2009
Location: spain ..........ole
Posts: 30
OS: xp home edition 2002 sp2


Send a message via MSN to superstar2k9
Re: java script help

thanks jamey i followed the instructions you posted but i cant seem to get it working this is what i have

<script>

//Time of day message script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var theImage = document.getElementById("will");
var Digital=new Date()
var hours=Digital.getHours()



//Configure message below to your own.
if (hours>=5&&hours<=11) //MESSAGE FOR MORNING
<img src="will.jpg" id="will" />

this only gets one image for me how would it look when finished sorry thats a bit rude asking you to practicly do it for me i been scratching my head so much over this i think the problem lies with the getElementById part because it is refering to one image maybe i am just not reading your instructions right . either that or i am spending to long infront of this screen and lost all sence of what the code is even for lol seriously i need help

thanks jamey


william
__________________
All the Gear & no idea
superstar2k9 is offline   Reply With Quote