Forum Moderators: open

Message Too Old, No Replies

Image Replace

script that will swop images on click

         

jamsy

5:49 pm on Sep 20, 2002 (gmt 0)

10+ Year Member



Does anyone know where i can get a small script that will change images on a page when a text link is clicked - not mouseover.

I have searched around with no such luck

Thanks in advance
Jamsy

korkus2000

6:54 pm on Sep 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A quick and dirty way would be to place the code that went in the onMouseOver attribute and place it in the link of the text.

<img src="pictureunlinked" />
<a href="javascript:TheOtherRolloverCodeFunction()">link text</a>

This will still perform the swap if the other code was a function call.

jamsy

11:16 pm on Sep 20, 2002 (gmt 0)

10+ Year Member



Thanks Korkus but i havent got any code in place so am looking for a full script.

All i have is the text and images.