Results 1 to 6 of 6

Thread: Eric's Popup window Generator

  1. #1
    Join Date
    Jul 2006
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Eric's Popup window Generator

    Need assistance in making Eric's popup window close.

    Popup window is open by clicking on an image. I want to close the image by clicking anywhere on the popup window verse the "X" button.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For that, you will need to have a page in the pop up with a script like so:

    Code:
    <script type="text/javascript">
    onclick=function(){self.close();};
    </script>
    This page can be generated along with the pop up but, that's a little complicated. Is this the pop up generator here at DD, the 'wizard'?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Don't mean to do a duplicate ... read the sticky abit late and now have it posted on the correct forum. sorry admin ..



    John,

    Yes that is the wizard program ...

    But from what I understand, any pop up that is activated from a JS can also be closed. Since the popup is not an .html page, I canot put a script on it.

    The script you mention I have used for other pages and works.

    thanks.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yeah, but you can generate a page along with the pop up and put your image and the script on that page. However, the coding must be tailored somewhat to the image at hand, its dimensions (which can be passes as arguments to the pop up function) - and tailored to the particular type of pop up you've chosen to generate using the wizard. The easiest way for me to work this out for you would be to see your page with the pop up(s) on it.

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jul 2006
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John for the script ... it worked.


    Girard

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •