|
Posted by Andy Dingley on 10/19/05 14:27
On Tue, 18 Oct 2005 21:50:41 -0700, "WJ" <wj@nospam.com> wrote:
>This sample works in Firefox, but not in IE 6.x.
Try this
<span class="linkcell"><a href="#"
onclick="getDetail(1); return false;" >View</a></span>
IE only supports :hover on links, and "link" means an <a> with a href
attribute, not just a <a>.
The href added here is a dummy and because the onclick event returns
false it won't be activated, even if clicked.
You don't need the "javascript:" pseudo-protocol, because this is an
even handler attribute, not a url.
I advise against using bold in a hover CSS rule, because it makes the
link text wider and causes the text to re-flow. It's often a jerky page,
--
Cats have nine lives, which is why they rarely post to Usenet.
[Back to original message]
|