View Full Version : Image Thumbnail Viewer

04-10-2006, 07:29 PM
first off great script

ok question now

Is there anyway I can set or control where the image opens up, I have pages with loads of images and some fall off the page when they are opened

for an emaple see


thanks Zeb

04-11-2006, 03:03 AM
OK, move:

<div id="showimage"></div>

to just below your body tag. Edit it to look like this:

<div id="showimage" style="z-index:100;"></div>

Next, take all of your:

<a href="1.jpg" onClick="return enlarge('1.jpg',event)"><img src="th1.JPG" border="0"></a>

lines like that and make them like so:

<a href="1.jpg" onClick="return enlarge('1.jpg',event,'center',550,570)"><img src="th1.JPG" border="0"></a>

You can do a global search and replace, just be careful you only hit these specific lines. To do it 'right', 550 and 570 should be replaced with the actual width and height, respectively of the larger image for each thumbnail, respectively. Looking at your images though, these values are close enough.

04-11-2006, 01:29 PM
thanks is works will update my site later

prompt reply and solution.:)