PDA

View Full Version : Help with tooltip script problem?



ivoog
Mar 30th, 2009, 11:04 PM
I have a tooltip script for the product pages on my website. Here's an example (put your mouse over the 2 small pictures near the bottom of the page): http://www.ivoog.com/scooters/milan

The problem is, as you can see, the tooltip thats shows ups blinks rapidly when your mouse is over the tooltip (it should display under or over, but sometimes the mouse goes over it). I know I should have found this before, and am now paying for it.

How can I stop the tooltips from blinking when your mouse is over the pictures and the tooltips? Please help!

Here's the CSS: http://www.pics.ivoog.com/page/tooltip.css

Here's the Javascript: http://www.pics.ivoog.com/page/htmltooltip.js

What can I change? Thanks so much!

randomuser773
Mar 31st, 2009, 12:22 AM
How can I stop the tooltips from blinking when your mouse is over the pictures and the tooltips?If a div appears under the cursor, a mouseout event occurs causing it to be cleared, which then generates a mouseover event etc.

Derive a positioning algorithm that prevents the tooltips appearing under the cursor.

ivoog
Mar 31st, 2009, 01:16 AM
What code should I change and what should I insert? I'm not THAT experienced in CSS so i'm not sure what to change (I barely know basic Javascript so...).

What should I change?

Thanks!