...

View Full Version : Text link & onclick image?



lise
05-29-2004, 12: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.

Vladdy
05-29-2004, 01: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....

lise
05-29-2004, 01: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.

Vladdy
05-29-2004, 01:35 AM
Sounds like you are trying to do things you should not be doing:
http://www.html-faq.com/htmlframes/?framesareevil

canadianjameson
05-29-2004, 01:36 AM
the bottom of this post has a script to do it from image to image...
http://www.codingforums.com/showthread.php?t=37967

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

lise
05-30-2004, 02: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?

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum