Log In · Register

 
diff. link's colors, changing individual link's colors...?
mezzanine
post Nov 9 2004, 08:53 PM
Post #1


i am displaced.
****

Group: Member
Posts: 100
Joined: Aug 2004
Member No: 44,860



is there some script code i can add to this one to change the color of one individual link? HELP!

CODE
<!-- begin code provided by createblog.com -->
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "cent");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "dollars");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "dollar");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "add me");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "log out");
}//-->
</script>
<!-- end code provided by createblog.com -->
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: