PDA

View Full Version : Image Thumbnail Viewer II in IE7



dubloons
02-08-2007, 11:53 PM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem:

I set up the Image Thumbnail Viewer in FireFox and it works fine. When I load the same page in IE7 and hover over the thumbnails the picture in the associated div doesn't change. Did I miss something? Any feedback is appreciated.

Jesse

ddadmin
02-09-2007, 12:11 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.

dubloons
02-09-2007, 04:23 PM
Here is a sample site with the problem I am having:
http://fitnessfootwear.vortx.com/p-90-chung-shi-lady-blue.aspx

Thanks for your help.
Jesse

jscheuer1
02-09-2007, 04:41 PM
Something, probably a conflict with another script, is preventing the viewer from initializing or from initializing properly. I can paste the initialization command into the address bar and hit enter, like so:


javascript:void(thumbnailviewer2.init())

and that makes it work. So, adding this to the end of your page just before the </body> tag (it might work better in the head of the page, I like doing it at the end though) should do about the same thing:


<!--[if IE]>
<script type="text/javascript">
if ( typeof window.attachEvent != "undefined")
window.attanchEvent('onload' thumbnailviewer2.init);
</script>
<![endif]-->

However, this might be better (but only at the end of the page):


<!--[if IE]>
<script type="text/javascript">
thumbnailviewer2.init();
</script>
<![endif]-->

Try them out.

er777
01-07-2009, 10:11 AM
Hi John (and possibly others!)

You seem to be very knowledgeable and I wonder if you can help me..

I searched a lot and tried some of the posted fixes, but I can't get thumbnailviewer2 to work with this page..

http://www.derekfinnegan.com/index.html

Firefox and Safari on Mac are oK, but IE 7 in Vista,, no go.

Ideas?


Thanks

Eddie Reyes

:)

Snookerman
01-07-2009, 10:29 AM
Try changing this in your thumbnailviewer2.js (http://www.derekfinnegan.com/thumbnailviewer2.js) file:

enableTransition: true, //Enable fading transition in IE?

Set it to false:

enableTransition: false, //Enable fading transition in IE?


Good luck!

jscheuer1
01-07-2009, 03:18 PM
Try changing this in your thumbnailviewer2.js file:

enableTransition: true, //Enable fading transition in IE?

Set it to false:

enableTransition: false, //Enable fading transition in IE?


Very unlikely to help in this case, but shouldn't hurt. However the OP's thumbnailviewer2.js file is already improperly edited, and there is garbage in the external script tag.


Hi John (and possibly others!)

You seem to be very knowledgeable and I wonder if you can help me..

I searched a lot and tried some of the posted fixes, but I can't get thumbnailviewer2 to work with this page..

http://www.derekfinnegan.com/index.html

Firefox and Safari on Mac are oK, but IE 7 in Vista,, no go.

Ideas?

I'm surprised it works in any browser. Get rid of (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
**********************************************/
var thumbnailviewer2={
enableTitle: true, //Should "title" attribute of link be used as description?
enableTransition: false, //Enable fading transition in IE?
hideimgmouseout: false, //Hide enlarged image when mouse moves out of anchor link? (if enlarged image is hyperlinked, always set to false!)

filter :progid:DXImageTransform.Microsoft.GradientWipe(duration=0);//control fade on pictures//

<!--[if IE]>
<script type="text/javascript">
if ( typeof window.attachEvent != "undefined")
window.attachEvent('onload' /%javasPath%/js/thumbnailviewer2.init);
</script>
<![endif]-->



</script>

And download the script:

http://www.dynamicdrive.com/dynamicindex4/thumbnailviewer2.js

from Dynamic Drive again, your current copy has errors from being incorrectly edited.

er777
01-07-2009, 04:29 PM
Thank you so much John!

You nailed it immediately.