Jens Riedel wrote:
Hi,
I use a select box with a fix width (via stylesheet).
So some of the entries are cut on the right side if they're too long.
Is there a way to display them complete like a tool tip on a mouseover?
Thanks,
Jens
<select ... onmouseover="this.title =
this.options[this.selectedIndex].text;">
Works in Netscape 7, Mozilla and other Gecko-based browsers and Opera 7.
It'd work in IE too if IE displayed the TITLE on <select> in a tooltip.
I even tried the following in IE:
<span id="testWrapper"><select ... onmouseover="this.parentNode.title =
this.options[this.selectedIndex].text;">
<!-- options -->
</select></span>
No joy. Probably caused by the fact that a <select> is a windows object
that doesn't play well with other HTML elements <url:
http://support.microsoft.com/default...b;en-us;177378 />
--
| Grant Wagner <gw*****@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html