View Full Version : Centering Problem with "Image Thumbnail Viewer"

09-01-2005, 04:15 AM
hello friends

this script http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm is giving me many headaches.

Using thumbnails, I am trying to have my pop-up image centred in such a way that it will be visible without the user having to drag. witness: http://www.kathrynbass.ca/test.html

Is there a way that I can align the pop-up image along the centre/top of the frame, rather than have it appear in some mysterious and mal-aligned centre?

if this is unclear, return to http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm and notice that when you click on the txt link examples the image pops up in the centre of the page. this is what i want to have happen on mine.

eagerly awaiting your response

09-01-2005, 05:46 AM
Where you are using:

onClick="changeImages('thetarget2','http://www.kathrynbass.ca/img/test.jpg');return enlarge('http://www.kathrynbass.ca/img/test.jpg',event,'center',150,375)"You need to make the numbers at the end (highlighted red) correspond to the actual width and height of each large image. 350 and 263 respectively, in this particular case. For test2.jpg it is 300 and 400, for test3.jpg it is also 300 x 400.

09-01-2005, 08:13 AM
thanks professor!