help!
What I want to do, is to allow the user to click on a hyperlink, which changes the background image, while setting a php value...
I'm not sure why it isn't working, this is the code I have:
<a href="?spark=links.htm" onClick="document.body.style.backgroundImage='url(../img/purple.gif)'">links</a><br>
it works if I set href="#" but not with the PHP code.
The php works otherwise, just the background doesn't change.
Anyone know why?
What I want to do, is to allow the user to click on a hyperlink, which changes the background image, while setting a php value...
I'm not sure why it isn't working, this is the code I have:
<a href="?spark=links.htm" onClick="document.body.style.backgroundImage='url(../img/purple.gif)'">links</a><br>
it works if I set href="#" but not with the PHP code.
The php works otherwise, just the background doesn't change.
Anyone know why?
Comment