Results 1 to 2 of 2

Thread: Help with Drop In Text Box Please...

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

    Default Help with Drop In Text Box Please...

    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    Hi. How can I change the script so the menu drops down on exit instead of onload AND make sure it closes when a surfer clicks on a link inside it??

    Thank you for your time.

    Dave
    Las Vegas

  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

    This is a content box, not a menu. You could make a menu be its contents. Now, to drop on exit (the technical term is 'onunload'), would be pointless but, it will be hard to explain why unless you already know. I'll try:

    This box is a part of the page that it drops down over. When the page goes away, so does the box.

    That was easier than I thought, please accept my apologies. Anyways, to get the effect of having this box drop down on exit of one page, have it drop down when the next page loads. To get it to disappear when a link on it is clicked, just don't have a box on the page that the link goes to. If the link doesn't load a new page into the current window, give the link an onclick event equivalent to the close box command, ex:

    Code:
    <a href="some.htm" target="_blank" onClick="dismissbox();return true">Click to Launch Some Page in a New Window and Close this Box</a>
    - John
    ________________________

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

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
  •