View Full Version : Image Spotlight effect IE

12-05-2004, 06:40 AM
this code seems to allow only for one image to carry the id tag, applying the same id tag to other images will not work.

here is the link:http://www.dynamicdrive.com/dynamicindex4/spotlight.htm


when the id is applied to two images the code will not work for bth
<img id="myimage"src="image1.gif">
<img id="myimage" src="image2.gif" >

12-05-2004, 08:32 AM
I believe it to only be applicable to one image per page.

Also note that 10%ish of your users won't be able to see this as they are using either FireFox or Netscape.


08-01-2005, 01:21 AM

I am having a similar issue, although I was able to modify the code partially. The result were 3 images blacked out, ready to scroll your mouse over, but only 1 of the 3 actually working. In fact, by scrolling over any of the 3 images, only the 3rd image will display the spotlight. Very strange.

I would VERY much appreciate any help in solving this riddle.

The original page using 1 image is here: www.furryarns.com/bogo.htm

The new page with 3 images is here: www.furryarns.com/bogo.new.htm



08-01-2005, 05:43 AM

Aside from the tutorial above, which usually is the solution when the problem is two different scripts, you may need to consult:


Which explains how two scripts on the same page may not use the same set of variable names, id names, etc. This is especially important if the problem is two copies of the same script on a page but, can come into play with two different scripts when the first step won't fix it.

One other approach that works in both situations, if adaptable to one (or more) of the scripts, is to put one script in a borderless iframe. It will look like it is on the same page but, since it really is on a separate page, conflicts are no longer an issue.

08-01-2005, 03:45 PM

Thank you for advising me of the prior threads. I posted knowing the policy of dynamic drive, because the forum is the place for assistance. However, I cannot follow your recommendation, simply because i dont know any coding. I am a self taught hack, working on trial and error. Not familiar with borderless frames, but it sounds interesting.

If you or someone could actually provide assistance directly related to my stalled web page, I would be very appreciative. Any other kind of advice is really not going to help.