L
Lau
Guest
Original poster
I'm trying to set up my website so that when you click on an image it will swap to a different image, and then when you click it will restore the original one. This works fine when it's a swap image which is activated by a rollover onMouseOver then restored onMouseOut, but although the swap image works when I set it to onClick, it doesn't restore onClick.
Here's the page in question: http://www.laurabarnard.co.uk/newsite/test.html.
Unfortunately my JavaScript knowledge is non-existent, so although I've found some code that might work here, I have no idea where to put it, or where my image files should go. It seems strange that the Dreamweaver code doesn't work (although I know it's dodgy for JavaScript in particular).
Has anyone else come across this and found a workaround? Thanks.
Here's the page in question: http://www.laurabarnard.co.uk/newsite/test.html.
Unfortunately my JavaScript knowledge is non-existent, so although I've found some code that might work here, I have no idea where to put it, or where my image files should go. It seems strange that the Dreamweaver code doesn't work (although I know it's dodgy for JavaScript in particular).
Has anyone else come across this and found a workaround? Thanks.