Computing.Net > Forums > Web Development > Links to Other Pages

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Links to Other Pages

Reply to Message Icon

Name: hp78945
Date: March 15, 2005 at 09:21:51 Pacific
OS: win XP
CPU/Ram: 256/ 1.80ghz
Comment:

Hi

I have got some Links to Other Pages and i want to make them change color when the mouse is put over them,
Thanks George



Sponsored Link
Ads by Google

Response Number 1
Name: tyros
Date: March 15, 2005 at 09:57:21 Pacific
Reply:

you have to write that

<BODY VLINK = #color you want>

vlink it's for visited link


0

Response Number 2
Name: tyros
Date: March 15, 2005 at 10:04:38 Pacific
Reply:

i made a mistake on the previous post.

you can use this java script

<style>


A.type1:link {color:#FFDD00; text-decoration:none;}
A.type1:visited {color:#FFDD00; text-decoration:none;}
A.type1:active {color:#FFDD00; text-decoration:none;}
A.type1:hover {color:#00FF80; text-decoration:underline;}


</style>


0

Response Number 3
Name: Michael J (by mjdamato)
Date: March 15, 2005 at 12:37:30 Pacific
Reply:

That is NOT JavaScript, it's CSS (Cascading Syle Sheets). It is also the preferred method. However, that code won't as written.

If you want ALL links on the page to use the same color schemes, then just use (remove ".type1"):

a:link {color:#FFDD00; text-decoration:none;}
a:visited {color:#FFDD00; text-decoration:none;}
a:active {color:#FFDD00; text-decoration:none;}
a:hover {color:#00FF80; text-decoration:underline;}

But, if you want just specific links to use a particular color scheme, then you can create a class as tyros did above, but you will need to specify the class within the link tag as follows:

Yahoo!

You can use as many different classes as you wish.

Michael J


0

Response Number 4
Name: Michael J (by mjdamato)
Date: March 15, 2005 at 12:39:44 Pacific
Reply:

Sorry, forgot to escape the code in the link above. Is should look like this:

< a href="http://www.yahoo.com" class="type1">Yahoo!< /a>

Michael J



0

Response Number 5
Name: fambi
Date: March 17, 2005 at 13:10:00 Pacific
Reply:

Once you get used to using CSS, you'll programming life will get much simpler (in most cases!)

If you're interested in SMS, visit section about sms news.


0

Related Posts

See More



Response Number 6
Name: hp78945
Date: March 19, 2005 at 11:23:44 Pacific
Reply:

Hi

Thanks for all the help :-)

George


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Links to Other Pages

linking to spot on page www.computing.net/answers/webdevel/linking-to-spot-on-page/2545.html

Java Script not working on web site www.computing.net/answers/webdevel/java-script-not-working-on-web-site/1693.html

hyperlinks w/o underlined????? www.computing.net/answers/webdevel/hyperlinks-wo-underlined/2419.html