![]() |
|
Welcome to the UndergroundScene Forums forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Senior Member
Join Date: Apr 2002
Location: Dundee/Alyth hybrid
Posts: 1,491 Band: 15 Minutes
![]() ![]() ![]() ![]() ![]() ![]() |
stylesheets is the easiest way to do it
<style> a:hover { color : "yellow"} a:link { color:"blue"} a:visited{ color:"red"} </style> that's just off the top of my head. Best to check a stylesheet or html reference You could also write a javascript function that takes the anchor tag id or name as an argument and changes the color of the anchor. You'd then call this function using the anchor mouseOver event. Of course you'd have to write another function for the mouseOut event as well. I'd recomend the sytle's though. Just copy that style block I've written and put it in the head seaction of your page. NB: You can youse rgb color codes or hex codes as well. Last edited by Red_Baron : 13th March 2003 at 04:00 PM. |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Apr 2002
Location: Dundee/Alyth hybrid
Posts: 1,491 Band: 15 Minutes
![]() ![]() ![]() ![]() ![]() ![]() |
I've just had a look at your code. You'll have to remove all the <font> tags as they'll overide your anchor styles. You'd be best setting the styles for these anchors using a style sheet as well
a {font-style:"......."} something like that. Then put all the hover, visited stuff below it. It'll only be 4 or 5 lines much better than all those font tags. ![]() hope that helps |
|
|
|
|
|
#5 (permalink) |
|
gimp
Join Date: Aug 2001
Location: Scotland
Posts: 13,935 Band: A band of merry men
![]() |
best use specific hex codes for colours in the style sheet though, and try and keep em web save (216 colours) but i tend not to
![]()
__________________
This community cannot survive without your continued support. galleries || links directory || profiles || wiki |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: May 2002
Location: Stirling
Posts: 174
![]() |
BINGO!!!
Cheers guys I got it working like a treat! The only other thing I had to do that you didn't mention was add an extra a:hover {color : "#ffffff"} underneath a:visited {color : "#ff0000"} because the color was only changing on links that hadn't been visited! Doin that sorted it though! Cheers Again |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|