By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,626 Members | 1,653 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,626 IT Pros & Developers. It's quick & easy.

Picture gallery -- Firefox works, but IE won't run my code correctly!

P: 1
Hello, and nice to meet all of you:

My name's Chad, and I have a head-bashing problem. I built out a photo gallery with very specific mouseover/onclick etc. behaviors. It works fine in Firefox. (The code is embarassingly un-elegant, please forgive a newbie!) Here's a URL:
http://www.carlygaebe.com/pictures_polaroid_02.html#_self
(all the relevant Java is in the document)
Features:
- thumbnail mouseover images
- thumbnail onclick images
- onclick, each thumbnail returns other thumbnails to non-clicked state

However, click on the same link in IE, and it does nothing that I intended and a bunch of things that I didn't, including mousing over the wrong image, not loading the image into the gallery, etc...

I know this is a fairly involved question for a forum like this, but I would be VERY grateful if anyone had a few minutes to peruse my messy code and give me any pointers as to what the problem might be.

THANK YOU SO MUCH in advance. I'm so screwed right now. Yikes!

-Chad
Oct 23 '07 #1
Share this Question
Share on Google+
1 Reply


epots9
Expert 100+
P: 1,351
why don't you use
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("gallery").src = "pic.jpg";
  2.  
instead of
Expand|Select|Wrap|Line Numbers
  1. document["gallery"].src = "pic.jpg";
  2.  
Oct 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.