Re: rollovers
by "Martin Clifford" <MLC1(at)nrc.gov>
|
Date: |
Mon, 01 Apr 2002 13:11:12 -0500 |
To: |
<hwg-basics(at)hwg.org>, <lorrie652(at)icehouse.net> |
|
todo: View
Thread,
Original
|
|
If you are using CSS to accomplish the rollovers, you would set your CSS =
File like so:
<style type=3D"text/css">
a:link {normal color here}
a:visited {if they have clicked the link}
a:hover {rollover color here}
</style>
You could also set up different color links around your site, say for =
instance, the nav section is bg black, the content section is white.
<style type=3D"text/css">
.navlink {color: white; text-decoration: underline; blah blah: blah}
.navlink:hover {color: skyblue; text-decoration: underline}
.navlink:visited {visited color}
.bodylink {color: black}
.bodylink:hover {color: navy}
.bodylink:visited {visited color}
</style>
Then you would simply put the link's class in the anchor tag. i.e. <.a =
href=3D"blah.html" class=3D"navlink">Text<./a> would produce a white link =
on a black background with a rollover color of skyblue, and whatever =
visited color you want.
Hope this helps.
Martin
>>> Lori Eldridge <lorrie652(at)icehouse.net> 04/01/02 12:39PM >>>
Hi All,
I have mouseovers on several of my web pages now (thanks to Bert) but I =
would like to make one so that when it's clicked on the 2nd color stays =
prominent so the person will know which links they have followed. Can =
anyone tell me how to do this?
thanks
lori
HTML Guild: hwg-basics mailing list archives,
maintained by Web Professionals @ IWA