View Full Version : Text link & onclick image?

05-29-2004, 01:57 AM
Hi I was just wondering if there is a script either in javascript or just plain html that can remain a text link and once clicked on, become an image.

It would be greatly appreciated if you can help. Thanks.

05-29-2004, 02:23 AM
Once link is clicked, the browser takes you to the URI the link was pointing to. So I'm not sure what you are after....

05-29-2004, 02:29 AM
Ok, let me define this a little. What I mean is that the text link is directed to an iframe, but I want an image to show in place of the text link on click.

05-29-2004, 02:35 AM
Sounds like you are trying to do things you should not be doing:

05-29-2004, 02:36 AM
the bottom of this post has a script to do it from image to image...

and i just posted my code in the post here http://www.codingforums.com/showthread.php?t=39458 which has a script in it to open multiple links in multiple iframes with one onClick.

from those you should be able to throw together the basics of what you need... post some code on here & we'll refine it

05-30-2004, 03:02 PM
Your code was very useful, however somethings did not work.
For instance I have 3 links. I want to make it do this:

image | link2 | link3 (when first link is clicked)

link1 | image | link3 (when 2nd link is clicked)

link1 | link2 | image (when 3rd link is clicked)

This is all I am getting:

image | link2 | link3

image | image | link3

image | image | image

Any way of making this work?

06-01-2004, 07:05 AM
You might get an idea from this thread (http://www.codingforums.com/showthread.php?p=206300#post206294).