E
euronay
Hi
I'm pretty rubbish at java and I'm trying to get an image to change
when a user clicks a link.
I don't know why this doesn't work. Can anyone help?
foc.src=foc.src=='1.gif'?'2.gif':'1.gif';
foc is the image element - if i do foc.src='2.gif' it will quite
happily change but I want it to alternate between the two images every
time the link is clicked.
Thanks in advance
I'm pretty rubbish at java and I'm trying to get an image to change
when a user clicks a link.
I don't know why this doesn't work. Can anyone help?
foc.src=foc.src=='1.gif'?'2.gif':'1.gif';
foc is the image element - if i do foc.src='2.gif' it will quite
happily change but I want it to alternate between the two images every
time the link is clicked.
Thanks in advance