Results 1 to 4 of 4

Thread: Sticky note script - Close on Click help

  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Sticky note script - Close on Click help

    1) Script Title: Sticky Note

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...stickynote.htm

    3) Describe problem:

    I have some links on this sticky note popup window....
    how can i have the window closed when someone click on the links, instead of having the timer closing after X seconds ?

    Thank you.
    Last edited by userforum; 09-15-2007 at 03:48 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Inside the Note there is a link that lets you close the box on demand:

    Code:
    <a href="#" onClick="hidefadebox();return false">Hide Box</a>
    You can call hidefadebox() elsewhere on your page as well.

  3. #3
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    Thank you for your reply.
    I saw that information, but that isn't exactly what i'm looking for for.
    I'm not looking for a link to close the window.... i'm looking for a way to close the window automatically as soon as they click on any link at the window...
    I'm using this window for some advertising....

    thank you

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There are several ways to do this. The easiest is probably just to call the close function whenever the user clicks the document in general:

    Code:
    <script type="text/javascript">
    document.body.onclick=function(){
    hidefadebox()
    }
    </script>

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
  •