- Create Account

Closing tooltips conflict with one another

Forums > Tipster > Closing tooltips conflict with one another
Author
Message

1) Razor Group: Guests
IP: 216.176.--.--
i made this custom function to close an certain tooltip, and then open a new tooltip

function newTooltip(Name, content1, content2, content3, content4) {
firstTip.hide();
formTip.newTip(Name,  5, 5, content1, content2, content3, content4);
}

The  user runs this function by clicking on a link like this:
<a href="Javascript:newTooltip('whatever', 'content', 'content', 'content',  'content')">Click here</a>

so it does work, the funciton successfully closes the firstTip tooltip
and opens the formTip toolip, however when I mouseout of the new open tooltip which is formTip , it closes!
even though I did not specify for it to close onmouseout, i just simply displayed it, technically it should stay open forever

what's going on and how can I keep formTip from closing automatically onmouseout ???

2) Angus Turnbull Group: Moderators
Posts: 4235 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Tips by default close on mouseout of the tip or triggering link in the script, try adjusting the hide delay to cancel that.

Or use Supernote, it's newer and has got this kind of "pinnable note" functionality built right in.

Good luck - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.