You are here: Re: style not working in IE « HTML « IT news, forums, messages
Re: style not working in IE

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация