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
rnrn897
post Jul 29 2004, 10:55 AM
Post #2


^ moo...
*****

Group: Member
Posts: 962
Joined: Jun 2004
Member No: 25,212



yea u can

<script language=javascript>
var oldsmileys = new Array('http://www.xanga.com/Images/eProp.gif','http://www.xanga.com/Images/noProp.gif');
var newsmileys = new Array('URL FOR REPLACING EPROP IMAGE HERE','URL FOR REPLACING ZERO EPROP IMAGE HERE');
for (var i = 0; i < document.images.length; i++) {
for (var s = 0; s < oldsmileys.length; s++){
if (document.images[i].src == oldsmileys[s]){
newsmiley = document.createElement('img');
newsmiley.src = newsmileys[s];
document.images[i].parentNode.replaceChild(newsmiley, document.images[i]);
break;
}
}
}
</script>
 

Posts in this topic


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