26th January, 01:16
Today I used qTip to build a simple speech bubble for showing welcome instructions. When the page loads, the bubble is supposed to appear above a certain button to give the user a cue.
It works great, except that it actually appears on top of the button and then slides up into place. What I really want is for it to just fade in.
I tried all sorts of different effects in .show, and they apply when the qTip first appears (out of place) and then it slides up into place. Actually, the effects are applied, they're just happening while the qTip is still out of place. And then it slides up to where it should have appeared.
If I remove/change the values in .show so that this box has normal tooltip-style behavior instead of my appear-on-load behavior, on mouse hover it appears in the right place and looks great.
This behavior appeared in IE8 as well as Firefox.
I've put a bunch of time into this and I'm stumped... I'm probably missing something obvious. Any thoughts?
Here's the code, which is ripped and modified from one of the demos:
It works great, except that it actually appears on top of the button and then slides up into place. What I really want is for it to just fade in.
I tried all sorts of different effects in .show, and they apply when the qTip first appears (out of place) and then it slides up into place. Actually, the effects are applied, they're just happening while the qTip is still out of place. And then it slides up to where it should have appeared.
If I remove/change the values in .show so that this box has normal tooltip-style behavior instead of my appear-on-load behavior, on mouse hover it appears in the right place and looks great.
This behavior appeared in IE8 as well as Firefox.
I've put a bunch of time into this and I'm stumped... I'm probably missing something obvious. Any thoughts?
Here's the code, which is ripped and modified from one of the demos:
JS Code
$(document).ready(function() {
$('#ctl00_ContentBody_ButtonSearch').qtip(
{
content: {
title: { text: 'Getting Started', button: 'Close' },
url: 'WelcomeQtipControl/WelcomeContent.htm'
},
style: {
name: 'light',
width: 450,
padding: '14px',
tip: 'bottomMiddle',
border: { width: 3, radius: 8, color: '#000000' }
},
position: {
corner: { target: 'topMiddle', tooltip: 'bottomMiddle' }
},
show: { when: false, ready: true },
hide: false
});
});
Thanks!