|
Hi guys,
I currently have a function that gets called when someone clicks a link.
<a onclick="javascript:changestatus(1);" href="#"><b>Go Online</b></a> <img id="changestatus" src="Images/icons/flag_red.png">
What kind of javascript do i need to add to my function changestatus that would change the image when the link is clicked.
I want to change the image to flag_yellow.png when the link above is clicked.
I would assume it would be summat like.
document.changestatus.src="Images/icons/flag_yellow.png"
But nothing happens?
Any ideas?
Thanks
G
__________________
Talk to your visitors in realtime.
Live realtime support chat - www.IMsupporting.com
|