View Full Version : used Image Thumbnail Viewer II script but doesn't work in IE 6 & 7

06-16-2008, 12:40 PM
1) Script Title: script doesn't work in IE 6 & 7

2) Script URL (on DD):
3) Describe problem:


i am a newbee and i found the Image Thumbnail Viewer II script from the dd library and used in one of my sites. but it is not working in IE 6 and 7.
so please help me figure out my error and fix it so my site can be finished as it is the only thing remaining in the site.

Here is the url for my page where i have used the Image Thumbnail Viewer II script :


their is a property highlight page in my side at the bottom left side, where i have used the script when the mouse moves over the text the image above it will change. It works fine in firefox but not in IE 6 and 7.

so have a look at my page and suggest me how can i fix it to work fine in all the browsers.

Help Appreciated.

06-16-2008, 02:51 PM
Get rid of the defer attribute (from your source code, highlighted):

<script type="text/javascript" src="thumbnailviewer2.js" defer="defer">
* Image Thumbnail Viewer II script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use

I know the demo page says to use it, but for some reason, with all those other scripts on your page, IE needs to use a different initialization method. Fortunately several are built into the thumnailviewer2.js script, and an appropriate one will take over for IE, once this defer attribute (which only IE would use anyway) is removed.

06-17-2008, 07:15 AM
hi john,

thanks for helping and my error is solved by removing the the defer code as suggested by you.