1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I would like to link a series of thumbnail images to bring up large images in a popup window. I want the large images to appear on a coloured background, but I don’t want to write a separate web page for each one (there are quite a few). I decided to write a single page containing one large image and change it’s source with the following link:

    <A HREF="#" onClick="window.open('popup.htm', 'popup_image', 'dependent=yes, height=425, menubar=no, resizable=yes, status=no, toolbar=no, width=325');
    <IMG SRC="small_image.jpg">

    The source of the new window, popup.htm, contains the following:

    <IMG SRC="" HEIGHT="400" NAME="image" WIDTH="300">

    When I click the thumbnail image I get an error saying ‘popup_image’ is undefined.
    What am I doing wrong?

    Thanks in advance!
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I don't know what's wrong with your code, but I would call the popup with a parameter, you can get this back in a little script in the popup and fill the name in there.
    The call would be something like :
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><A HREF="#" onClick="window.open('popup.htm?large_image.jpg','popup_image', 'dependent=yes,height=425,menubar=no,resizable=yes,status=no,toolbar=no,width =325')"> <IMG SRC="small_image.jpg"></A>[/quote]

    To get the name back in the popup you could use something like this on the place where the image-name (SRC=...) is needed :

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><script language="javascript">


    Hope this helps you along,

    [This message has been edited by Gerrit (edited 07-09-99).]

Similar Threads

  1. How to focus a popup window from another?
    By srivalli9 in forum HTML Programming
    Replies: 3
    Last Post: January 23rd, 2004, 09:01 AM
  2. How to focus a popup window from another asp page?
    By srivalli9 in forum ASP Programming
    Replies: 0
    Last Post: December 30th, 2003, 08:44 AM
  3. Help ttrying to close popup window
    By lloydie-t in forum HTML Programming
    Replies: 3
    Last Post: December 29th, 2003, 03:00 PM
  4. Replies: 2
    Last Post: August 25th, 2003, 07:29 PM
  5. How to go from PopUp window to Main Screen
    By Robert Trost in forum HTML Programming
    Replies: 5
    Last Post: October 28th, 2001, 04:07 PM

IMN logo majestic logo threadwatch logo seochat tools logo