PDA

View Full Version : Image Thumbnail Viewer II Problem



robinjr
02-22-2007, 08:05 AM
1) Script Title:
Image Thumbnail Viewer II

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

3) Describe problem:
When a mouse is over a picture and another picture comes up, the page moves.
You'll see what I mean once you try it out:
http://www.womeninboxes.com/cast.htm
Any logical reason why it doesn't stay still?

Thanks a million!

robinwjr@gmail.com

ddadmin
02-22-2007, 09:17 AM
Make sure the container DIV that you're using to house the shown image contains a height attribute set to accomodate the largest image (height wise). For example:


<div id="loadarea" style="width: 600px; height: 500px"></div>

robinjr
02-22-2007, 09:26 PM
Thanks for the reply!

Unfortunately, it still acts up. I set the DIV to the exact dimensions (each pic has the same dimensions) yet it still jerks the page. Thanks anyway, though.

robinwjr@gmail.com

ddadmin
02-23-2007, 09:04 AM
Ah ok finally figured out this little bit of mystery. The problem is due to the line:


this.focus()

inside the .js file. Apparently setting focus to the images in this case is causing the jumping action. Comment it out:


//this.focus()

That should do it.