Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2004
    Posts
    56
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Hover text for input boxes and dropdown lists

    Consider the following javascript:

    http://orbitsimulator.com/gravity/articles/period1.html

    When you hold the mouse over any of the input boxes, you get hover text. For example, the topmost box says "semi-major axis" when the mouse is placed over the box.

    In the code
    Code:
     <input type="text" name="ip1" id="ip1" onkeyup="f()" title="semi-major axis">
    the title tells it the hover text.

    But the code that generates the dropdown list next to this input box also has a title
    Code:
    <select name="Uip1" id="Uip1" onchange="f()" title="Units">
    So I would expect that the word "Units" would appear if I hovered the mouse over the dropdown list, but it does not (at least not in IE6). How can I make the hovertext work for the dropdown lists?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Unfortunately, title does not work in select or option tags in IE unlike in Firefox. I don't know why is it like that. Select element in IE has other special limitations such as floating div obscured under select, CSS style limitation of option tags, onmouseover/onclick in option tag not supported. This is probably because select box is a Windowed control whatever that means.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •