You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

How To Set The Life Time Of A Tooltip Created Nov 12, 2009

This thread is solved

Views: 836     Replies: 1     Last reply Dec 10, 2009  
You must login first before you can use this feature

mr_the_plague

Posts: 2

Registered:
Nov 12, 2009

How To Set The Life Time Of A Tooltip

Posted: Nov 12, 2009

Hi,

I am trying to create a tooltip that is show when a user clicks on a button and is displayed above a different page element for a specified duration. I have everything working but can not figure how to set a duration on the tooltip. So the tooltip would only show for 30 seconds, for instance. Here is what I have so far:

var amendHello = $(".hello-box").tooltip({tip: '#demotip', effect: 'slide', direction: 'down', slideOffset: 5, delay: '5', api: true});

$('.button').click(function() {
amendHello.show();
});

I have tried using the animate opacity trick in the onShow attribute but that didn't work. Any suggestions?

Thanks,

DRegazzi

Posts: 1

Registered:
Dec 10, 2009

» How To Set The Life Time Of A Tooltip

Posted: Dec 10, 2009

Reply to: How To Set The Life Time Of A Tooltip, from mr_the_plague
'delay' determines how long to show the tooltip in milliseconds. To make the tooltip show for 30 seconds you would use:
delay: 30000