Log In · Register

 
Replacing link text with a picture, Example: subscriptions, into a small pic
Larva
post Jul 29 2004, 04:04 AM
Post #1


Newbie
*

Group: Member
Posts: 9
Joined: Jul 2004
Member No: 32,731



Well, I've been wondering, if there can be a script, where you can change a link, such as, the sign in, xanga, etc. If anyone can post the script, or even make one, by any chance, that would help a lot.
 
 
Start new topic
Replies
frzn-lilyv
post Jul 29 2004, 04:49 AM
Post #2


Dreaming of You...
*****

Group: Member
Posts: 508
Joined: Jul 2004
Member No: 27,205



<!-- Start 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, "CHANGE");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace
(/eprop/i, "CHANGE");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace
(/comments/i, "CHANGE");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace
(/comment/i, "CHANGE");
else if (str.match (/subscribe/i)) links[l].innerHTML = str.replace
(/subscribe/i, "CHANGE");
else if (str.match (/Get trial subscription/i)) links[l].innerHTML = str.replace
(/Get trial subscription/i, "CHANGE");
else if (str.match (/subscriptions/i)) links[l].innerHTML = str.replace
(/subscriptions/i, "CHANGE");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace
(/sign out/i, "CHANGE");
else if (str.match (/GuestBook/i)) links[l].innerHTML = str.replace
(/GuestBook/i, "CHANGE");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace
(/email it/i, "CHANGE");

}//-->
</script>
<!-- Finish code provided by Createblog.com -->


i'm pretty sure CB has a longer version, if you need that one, look under Xanga Scripts. happy.gif
 

Posts in this topic


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