SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 6th, 2006, 05:40 PM
glennrose glennrose is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Los Angeles, CA
Posts: 6 glennrose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 25 sec
Reputation Power: 0
Tooltips for DropDown Lists

I will start with exactly what I am trying to do, and then give details. In short, I need to add a ToolTip to a DropDown List on my web page.

Now, after looking through dozens of sites, I know that:
a) DropDown Lists themselves do not have tooltips; "Title" will not work.
b) Using an A Element will not work as well.

So, I have started dabbling with JavaScript and creating my own ToolTip
(I've hidden some details):

<select id="MyList" onmouseover='javascript: ShowToolTip("X")'
onmouseout='javascript: HideToolTip()>
<option value="0">Off</option>
<option value="1">Low</option>
<option value="2">Med.</option>
<option value="3">High</option>
</select>
<div id="DHTMLToolTip"></div>

function ShowToolTip(ToolTipText) {
var MyToolTip=document.all["DHTMLToolTip"];

MyToolTip.innerHTML=ToolTipText;

var curX=event.clientX;
var curY=event.clientY;
var offsetX=-60;
var offsetY=20;

MyToolTip.style.left=(curX+offsetX) + "px";
MyToolTip.style.top=(curY+offsetY) + "px";

MyToolTip.style.visibility="visible";

return true;
}

function HideToolTip() {
var MyToolTip=document.all["DHTMLToolTip"];

MyToolTip.style.visibility="hidden"

return true;
}

There are two major problems:
1) The page containing this code is in a short frame (acting like a toolbar). As a result, the custom tooltip usually appears below the bottom border, making it unseen. In comparison, regular tooltips appear above everything, including the frame below.
2) The dropdown list always seems to appear above the custom tooltip.

Thus, this solution does not seem to be the way to go.

Does anyone know the solution to this?

Also, while I am talking about tooltips, where can I find the default settings for tooltips?

Reply With Quote
  #2  
Old November 7th, 2006, 02:35 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 9 m 44 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
wow, thats a good question, umm.. i will keep an eye out for a solution.

colton22

Reply With Quote
  #3  
Old November 8th, 2006, 12:22 AM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
Select and option elements can have titles. They work in Firefox, IE7, NS6+, and Opera 6+ support this but not in IE4-6/Win.

The default settings for tooltips are, in general, controlled by the operating system.

Don’t use IE as your primary testing browser
No, Internet Explorer did not handle it properly
__________________
Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

IE7: the generation 7 browser new in a world of generation 8 browsers.

Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

Reply With Quote
  #4  
Old November 8th, 2006, 01:26 AM
mecanicu mecanicu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 110 mecanicu User rank is Private First Class (20 - 50 Reputation Level)mecanicu User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 50 m 43 sec
Reputation Power: 2
Have you considered Zorder? (I am not sure if, in DOM, is accessible)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Tooltips for DropDown Lists


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway