Ex. Of Localy Changing Link Colors

free web hosting
Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > HTML, XML and other Markup Languages

Ex. Of Localy Changing Link Colors

biesbos
hi..
here's a exaple of how i tried to localy changing my link colors

have fun!


is not valid CSS, and you can't put the link attribute in anything other than the body tag I believe, but all of this should be done in CSS.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color:#0000FF;
color:#FFFFFF;
}
a,a:link,a:visited,a:hover,a:active {
color:#FFFFFF;
}
a.blacklink,a.blacklink:link,a.blacklink:visited,a.blacklink:hover,a.blacklink.a
ctive {
color:#000000;
}
-->
</style>
</head>

<body>
<a href="#">blah</a>
<table cellpadding="0" cellspacing="0">
<tr>
<td><a href="#" class="blacklink">blah2</a></td>
</tr>
</table>
</body>
</html>

 

 

 


Reply

Jens_L
Thanks!

I tried it in a <div> tag and it works, at least on Explorer 6.0, witch have good css support. It's a smart way of doing this. I'm gonna see how it works on different platforms and browsers.

Peace!


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : localy changing link colors


    Looking for localy, changing, link, colors

Searching Video's for localy, changing, link, colors
advertisement




Ex. Of Localy Changing Link Colors



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE