...

View Full Version : Can't get Swap image and set text to work on same on click event



noahlearner
05-06-2007, 02:02 AM
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

glenngv
05-06-2007, 03:12 AM
Change the links to:

<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>

noahlearner
05-07-2007, 12:55 AM
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

Arty Effem
05-07-2007, 01:52 AM
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 (http://codingforums.com/showthread.php?p=255428#post255428)

noahlearner
05-07-2007, 02:03 AM
Thanks that was helpful too!

-Noah



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum