Log In · Register

 
code help
stefani_hsc
post Feb 24 2006, 02:47 AM
Post #1


Senior Member
***

Group: Member
Posts: 52
Joined: Apr 2005
Member No: 126,525



i want to add an samll icon infront of "read my profile" and "sign my guestbook", what's the code for that?
 
 
Start new topic
Replies
talcumpowder
post Feb 26 2006, 06:29 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Worked fine for me. mellow.gif You put it in webstats.
CODE
<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 (/read my profile/i)) links[l].innerHTML = str.replace (/read my profile/i, "<img src=http://i1.tinypic.com/op70r5.gif border='0'> read my profile");
else if (str.match (/sign my guestbook/i)) links[l].innerHTML = str.replace (/sign my guestbook/i, "<img src=http://i1.tinypic.com/op70r5.gif border='0'> sign my guestbook");}//-->
</script>
[ http://www.xanga.com/rhythmsicle ]
 

Posts in this topic
stefani_hsc   code help   Feb 24 2006, 02:47 AM
fishcake-y   Example? I'm thinking if you've seen it th...   Feb 24 2006, 06:45 PM
stefani_hsc   it is not working   Feb 25 2006, 04:57 AM
niez_cho   Can you please post up the code after you customiz...   Feb 26 2006, 01:17 AM
stefani_hsc   here is the code: <script language="jav...   Feb 26 2006, 05:24 PM
fishcake-y   Worked fine for me. You put it in webstats. CODE...   Feb 26 2006, 06:29 PM
stefani_hsc   thx alot, it is working now!   Feb 27 2006, 11:10 AM
mzkandi   QUOTE(stefani_hsc @ Feb 27 2006, 11:10 AM...   Feb 27 2006, 01:59 PM


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