PDA

View Full Version : H E L P... for a total Rookie!



Brent Wallace
03-13-2005, 06:42 AM
In Reference to:
Drop-in content box All
Note: Drops every time.
http://www.dynamicdrive.com/dynamicindex17/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. :eek:

jscheuer1
03-13-2005, 06:30 PM
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:


window.onunload=dismissboxI 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:


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