The problem exists because the hint is a link (an anchor link a tag with href attribute). It doesn't need to be, would be better in general if it was not. I'd choose span (from the demo, changes red):
Code:
<form>
<b>Username:</b> <input type="text" class="test" /> <span class="hintanchor" onMouseover="showhint('Please choose a username. Should consist of alphanumeric characters only.', this, event, '150px')">[?]</span><br />
<b>Password:</b> *<input type="text" class="test" /> <span class="hintanchor" onMouseover="showhint('Enter the desired password. <b>Must</b> be 8 characters or longer.', this, event, '200px')">[?]</span><br />
</form>
If you want the [?] to still look the same, add to the style (red again):
Code:
.hintanchor{ /*CSS for link that shows hint onmouseover*/
font-weight: bold;
color: navy;
margin: 3px 8px;
cursor:pointer;
text-decoration:underline;
}
Bookmarks