[thelist] help needed with javascript rollovers/IE error message

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Mon Jan 22 06:50:31 CST 2001


Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

Yes, you're right.

It does work the other way, but probably shouldn't.

Cheers
Martin




Please respond to thelist at lists.evolt.org
To:   thelist at lists.evolt.org
cc:


Subject:  Re: [thelist] help needed with javascript rollovers/IE error message



Hi,

Shouldn't it be :

a.classname:link
and not
a:link.classname ?

http://www.w3.org/TR/REC-CSS2/selector.html#link-pseudo-classes
http://www.w3.org/TR/REC-CSS1#anchor-pseudo-classes

> Memo from Martin P Burns of PricewaterhouseCoopers
>
> -------------------- Start of message text --------------------
>
> Alisa
>
> If all you want to do is have the bold text happen when the user
> hovers over the link, why not achieve:
> * Better accessibility
> * Better cross-browser compatibility
> * Lower download time
> * Less chance of JS errors
>
> by doing it with normal text and CSS?
>
> Here's how.
>
> Make all the links normal text, rather than images, like this:
> <a href="sponsors.html">Sponsors</a>
>
> Boring, normal text, right? Here's the clever bit. You put this
> in the head section:
> <link rel="stylesheet" href="/resources/general.css">
> Change the nav links to:
> <a href="sponsors.html" class="nav">Sponsors</a>
> Then add a file called general.css in the /resources folder
> (http://www.styleworks.org/resources/general.css) which
> contains the following:
> A:LINK.nav  {
>          color: Black;
>          font-size : 18pt ;
>      text-align : right;
>      font : Arial, Helvetica;
>
>         }
>
> A:HOVER.nav {
>          font-weight : bold;
>         }
>
> Hey presto - instant rollovers, without JavaScript.



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !


--------------------- End of message text --------------------

The principal place of business of PricewaterhouseCoopers and its associate
partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
partners' names are available for inspection. All partners in the associate
partnerships are authorised to conduct business as agents of, and all
contracts for services to clients are with, PricewaterhouseCoopers. The UK
firm of PricewaterhouseCoopers is authorised by the Institute of Chartered
Accountants in England and Wales to carry on investment business.
PricewaterhouseCoopers is a member of the world-wide
PricewaterhouseCoopers organisation.
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.   If you received this in error, please
contact the sender and delete the material from any computer.






More information about the thelist mailing list