W3C home > Mailing lists > Public > www-html@w3.org > December 2000

Re: <PRELOAD> in <HEAD> section, MOUSEOVER attribute in <A> tag

From: Jon Haworth <JHaworth@witanjardine.co.uk>
Date: Mon, 4 Dec 2000 09:34:58 -0000
Message-ID: <431205EC9190D4119E2800D0B720FA3F027133@BOOTROS>
To: "'www-html@w3.org'" <www-html@w3.org>
I don't understand where the hassle lies in doing:

<a href="index.html" onMouseOver="document.imagename.src='foo.gif';"
onMouseOut="document.imagename.src='bar.gif';"><img src="foo.gif"
name="imagename" width="23" height="17" border="0"></a>

or did I miss something? Plus, as Tim said, if you're not using images to
achieve this you should have a stylesheet behind your document. You can make
it very easy and do (for example):

a { text-decoration : none; }
a:hover { text-decoration : underline; }

and then just treat your hyperlinks as normal, with <a href="foo.html">click
here</a> - you don't really need a class unless you want different styles of
hyperlinks within one page.

Just my 0.02 euros


| JavaScript's mouseOver effect and the A:Hover effect of Cascading Style 
| Sheets have become so commonplace that I feel they deserve their own HTML 
| tags and parameters. This would eliminate unnecessary JavaScripting and 
| save web designers a lot of hassle. In order to achieve this, I propose
| following plan:

Please visit us on the Internet:

'The information included in this e-mail is of a confidential nature and is
intended only for the addressee.  If you are not the intended addressee, any
disclosure, copying or distribution by you is prohibited and may be
unlawful.  Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege of
Received on Monday, 4 December 2000 04:35:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:55 UTC