Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Changing the colour and decoration in hyperlinks


Message #1 by Karen Brown <Karen.Brown@s...> on Wed, 19 Feb 2003 11:45:03 +1300
Place the hover line below, so this will override the visited style. As
in:

a:link{color:#000000; text-decoration:none;}
a:visited{color:#000000; text-decoration:none;}
a:active{color:#FF9900; text-decoration:none;}
a:hover{color:#FF9900; text-decoration:underline;}


/Robert


-----Original Message-----
From: Karen Brown [mailto:Karen.Brown@s...]
Sent: den 18 februari 2003 23:45
To: JavaScript HowTo
Subject: [javascript_howto] Changing the colour and decoration in
hyperlinks


I would like my hyperlinks both visited and unvisited to be black and
without decoration.  On mouseover I would like them to change to another
colour and be underlined.  Then when the page is active the links remain
that colour, but lose the unline.

The problem I have is that when I change the colour of the 'visited'
link to black and decoration to 'none', the hover code no longer works.
What can I do? I am using Dreamweaver MX.

This is what the style code looks like:

a:link		#000000 none
a:hover		#FF9900 underline
a:visited		#000000 none
a:active		#FF9900 none

Any ideas appreciated

************************************************************************
******************
Inquire about our Zero Fee Scheme at http://www.sit.ac.nz (Applicable to
New Zealand Citizens and Permanent Residents.) The Zero Fee Scheme is
also now available for Courses at our Christchurch Campus. Applications
for 2003 Full-Time Programmes are being accepted now!
************************************************************************
******************

######################################################################
Caution: This e-mail message and accompanying data may contain
information that is confidential. If you are not the intended recipient
you are notified that any use, dissemination or copying of this message
or data is prohibited. If you have received this e-mail in error, please
notify us immediately and delete all material pertaining to this e-mail
Thank you.
######################################################################


  Return to Index