Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text link & onclick image?

    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.
    Last edited by lise; 05-29-2004 at 01:01 AM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like you are trying to do things you should not be doing:
    http://www.html-faq.com/htmlframes/?framesareevil
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #5
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    the bottom of this post has a script to do it from image to image...
    Image gallery trouble

    and i just posted my code in the post here minor document.getElementById() question -- should be an easy problem to solve :D 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
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #6
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    You might get an idea from this thread.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •