PDA

View Full Version : POP-UP Images


bentren
10-10-2002, 09:05 AM
ok i'm after some help on a script to make the thumnails when clicked on pop up in a new window the size of the image. I've downoaded and tried tons of scripts but i'm having problems getting them to work.

My site in PHP and all the javascript is in an .js file.

Does any one have a script for pop up images i could use in this
And an ahref statement i can copy to call this. Or some other way.

Spookster
10-10-2002, 09:09 AM
http://codingforums.com/showthread.php?s=&threadid=1625

bentren
10-10-2002, 09:32 AM
ok thanks for that i got the txt file to avoid the spacing like you said although it still doesnt find the file

thats the link below
<a href="java script:imageView('images/planes1.gif','Plane Pic',427,277,50,50)">
<img src="images/planes1T.gif"></a>

what the 427 , 277 etc

glenngv
10-10-2002, 10:14 AM
aren't the variables descriptive enough?

imageView(imgFile, imgTitle, imgWidth, imgHeight, winPosX, winPosY)

imgFile = the image to be viewed
imgTitle = the title of the image
imgWidth = width of the image
imgHeight = height of the image
winPosX = left position of window
winPosY = top position of window

Spookster
10-10-2002, 03:08 PM
The script works fine. Make sure the images actually exist in the directory that you specified.