You are here: Re: link hover color not honored when using onclick event « HTML « IT news, forums, messages
Re: link hover color not honored when using onclick event

Posted by Mark Parnell on 11/19/14 11:33

In our last episode, Richard Thoms <rdthoms@bellsouth.net> pronounced to
alt.html:

> The
> second link has no href in it (is that legal?)

What does the validator say?

> but accomplishes what I
> want to do (create a simple popup window and).

But it's not about what you want; it's what about what your visitor
wants. It's unlikely he/she/it wants a popup, and likely that their
browser or other software will block popups. Or they could have
Javascript disabled, in which case nothing will happen at all (at least
with a popup blocker, they may get a message telling them it's been
blocked).

> The problem is that the second link will not honor the A:hover style

No, the problem is that you are trying to force a popup on your
visitors.

> (color=red) in IE, it does work fine in Firefox.

IE doesn't support :hover on anything except links.

> I'm forced to set the color,
> decoration, and cursor to make it look like a link.

That's because without a href attribute it's not a link. It's just an
anchor.

--
Mark Parnell
http://clarkecomputers.com.au

 

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

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