Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alt="" Title="" Tooltip for Select Dropdown...

Status
Not open for further replies.

tryangle

Technical User
Mar 19, 2001
49
US
Is there a way to have a Tooltip box come up over the text window of a Select dropdown menu? I've tried using both alt="Whatever" and title="whatever" on both the Select line and the Option lines...

Also, I'm looking for a way to change the text color of the associated text for Radio Buttons and Checkboxes. I've tried this...

<script>
function changeColor(){
first.style.color='3366ff';
return true;
}
</script>

<form name='help'>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; idth=&quot;100%&quot;><tr><td align='center'><input type='radio' name='R1' value='on' onClick=changeColor()><span id='first'>First</span></td></tr></table></form>

That's basically it, I didn't get any error message... but it didn't change the color either... I've still got a lot to learn still... %-)

I sure appreciate those of you who stop by this site to answer questions... I've learned a lot here, Thank You. OK, Who stopped payment on my reality check?
 
It should work? There must be some other problem - like 2 functions with same name or something.;)

As for the tooltip - you'll have to make your own out of spans or divs.
b2 - benbiddington@surf4nix.com
 
bangers,

Unfortunately, a span or div won't move over a select box, as they are opaque windowed controls. One solution is using scriptlets (an IE only, encapsulation technology: more on them at: ) or to dynamically push content into an iframe, and be sure to set the z-index of the iframe higher than the select box ( I think that will work in IE5/mozilla) jaredn@eae.net -
 
Thanks script.coders.all for your input...

The scriptlet stuff sounds interesting... where can I see one and get an idea how they are written and how they run? I visited the link there at microsoft, read their material, followed a couple of links there... but I haven't really gotten the concept yet. I'll go ahead and run 'scriptlet' through a couple of search engines... but if you know of a particularly good example- would you pass it along here? %-) OK, Who stopped payment on my reality check?
 
Check out javascript.com and see if they have any code for tooltips.


BTW, my reality check bounced!
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top