PDA

View Full Version : Thumbnail Viewer



MrsC
08-04-2006, 03:29 AM
1) Script Title: image thumbnail viewer

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

3) Describe problem: Need Help. How do I edit where the pop-up is placed?

I am having trouble with the way the thumbnail enlarges. when the enlarged image pops up (and the image is fairly large (the image is 600 x 402) a good deal of the image is off the right margin of the page. Smaller pop up images are OK.

Any help would be appreciated. I know the image can be dragged to the middle of the page but it would look much better if the image was all viewable off the bat.

Thanks Much!!
KC

jscheuer1
08-04-2006, 04:19 AM
Reread all of step3 on the demo page, it explains how, by passing the dimensions of the larger image to the enlarge() function and using the 'center' parameter, you can have the larger image appear centered on the page rather than originate at the mouse pointer.

In other words, use this method:


onClick="return enlarge('lemoncake.jpg',event,'center',300,375)"

where 300 is the width and 375 the height of the larger image, instead of this method where no information of that sort is used:


onClick="return enlarge('photo1.jpg',event)"

elaine1959
10-27-2006, 04:38 AM
Hi
Love this script but I can not get the enlarged picture size to adjust. The directions seem straightforward, so maybe there is somewhere else I should be adjusting?

thanks!!!!!
Elaine

jscheuer1
10-27-2006, 05:32 AM
I would need a link to your problem page.