Link to home
Start Free TrialLog in
Avatar of DSTIS1
DSTIS1

asked on

Tooltip Hover Names Using YUI TabView Control

Hello,

I'm using the YUI2 TabView Control built from script below.
http://developer.yahoo.com/yui/examples/tabview/fromscript.html

Instead of having the "active" tool tip appear on the active tab, I would like to have tool tips display on hover on every tab and instead of having the word "active" I would like for the hover to display the name of the tab title.

Using the suggestions from the YUI forum, I made adjustments but it still isn't working exactly as needed. (I could have taken a wrong turn somewhere.)

Normally when you hover you get the "active" hover on the active tab. To remove the "active" hover I used - "YAHOO.widget.Tab.prototype.ACTIVE_TITLE = ".

To add hovers using the tab title names I used the attached code which grabs the tap label "or tab name" and uses it as the hover for that tab. This worked as far as adding tooltips names over the non-active tabs but by using the code to remove the "active" hover there is no hover on the active tab.

So to test I removed the code that removes the "active" hover and this made the "active" hover appear again but it does not use the tab title name as the hover just the word "active".

Is there a way to have individual tool tip hovers for every menu tab which will use the tab title name as the actual hover with this control?  
title: tabs[i].label

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DSTIS1
DSTIS1

ASKER

Thank you!

The attachment "tabview-active-flag.patch" on the first URL had the information I needed.

That code along with "title" code I originally attached to the question corrected the issue.