View Full Version : pop up windows


freakish
06-29-2003, 07:38 AM
I have thumbnails on my page. When you click on a thumbnail, I would like the full sized image to come up in a new window.

I have a feeling I'm going about this all wrong. Maybe I don't even need Java, I don't really know.

I was looking at this code:

<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>

When I want each thumbnail to link to its own window, what do I put in it for the URL (in bold)? (And I do know I would have a code for each image as well)

lefty
06-29-2003, 04:03 PM
If you're using images, you can just put a link to the image there. It doesn't have to be an .html file, if that's what you're asking. So it can look like this if it's on its own page:

window.open ("image.html","popup","

or this if it's just a link to the image:

window.open ("image.jpg","popup","



Also remember, if you plan on having more than one popup, you're going to have to change the word "popup" to something else in your other codes.

freakish
06-30-2003, 12:27 AM
Originally posted by lefty2217
Also remember, if you plan on having more than one popup, you're going to have to change the word "popup" to something else in your other codes.


What would I change it to in my other codes? Since it's a bunch of thumbnails, I want each to have it's own popup.

freakish
06-30-2003, 03:08 AM
Never mind, I got it. Thanks for your help.