View Full Version : Sticky note script - Close on Click help
userforum
09-15-2007, 03:39 PM
1) Script Title: Sticky Note
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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.
ddadmin
09-17-2007, 07:53 AM
Inside the Note there is a link that lets you close the box on demand:
<a href="#" onClick="hidefadebox();return false">Hide Box</a>
You can call hidefadebox() elsewhere on your page as well.
userforum
09-19-2007, 01:02 AM
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
ddadmin
09-19-2007, 07:52 AM
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:
<script type="text/javascript">
document.body.onclick=function(){
hidefadebox()
}
</script>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.