Results 1 to 2 of 2

Thread: H E L P... for a total Rookie!

  1. #1
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default H E L P... for a total Rookie!

    In Reference to:
    Drop-in content box All
    Note: Drops every time.
    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    Hello out there. First post here, hope to find a little help. How do I "automatically" have this box close when the user leaves the frame that initiated the drop in and goes to another frame set page? Very frustrated ROOKIE! Sorry, it's probably simple, but I would greatly appreciate some help on this. Thank you in advance.

  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 dismiss box

    I've never done this exactly but, it should work. Depending upon where you load the dropbox from:

    If it is from the framsets page, add this to the script on that page just below the window.onload statement:

    Code:
    window.onunload=dismissbox
    I did a little testing with an alert box and the above seems unreliable but, might work for a frameset.

    If you are loading the box from a page inside the frameset, insert this into that page's body tag:

    onunload="dismissbox()"

    for example:

    Code:
    <body onunload="dismissbox()">
    The above method, for a page, passed the alert box test.

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
  •