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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't get Swap image and set text to work on same on click event

    Hi All,

    The page in question is at http://www.bartlettsfarm.com/staff.html

    I have image thumbnails on the right of the page. When the user clicks on a thumbnail I want two events to happen.

    1. I want the image in the center of the page named "swap" to swap to a larger version of the clicked thumbnail.

    2. I want the person's bio to pop up in a div to the right of the bigger picture.

    The page looks fine in Firefox 2.0, Ie7, but the image doesn't swap in ie6. The text switches, but the image doesn't pop up.

    Any help would be Greatly appreciated.

    I'm sorry for not inserting the code snippet, but I have no idea what is wrong.

    Many Thanks in advance.

    Noah Learner
    http://www.learnerdesign.com

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Change the links to:
    Code:
    <a href="#" onclick="MM_setTextOfLayer('bio','','Phil Bartlett is ...'); MM_swapImage('swap','','images/faces/Phil_Bartlett.jpg',1); return false;"><img src="images/faces/thumbs/Phil.jpg" alt="Phil Bartlett"  /></a>

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Glen!

    I am very grateful. It works in ie6 now. Can anyone else see if the page works in ie 5.5 or 5.01?

    Many Thanks!
    Noah

  • #4
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by noahlearner View Post
    Thanks Glen!

    I am very grateful. It works in ie6 now. Can anyone else see if the page works in ie 5.5 or 5.01?
    With JS disabled there's no fallback and no warning shown.

    Also, you may want to read this

  • #5
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks that was helpful too!

    -Noah


  •  

    Posting Permissions

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