code help |
code help |
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?
|
|
|
|
![]() |
Feb 24 2006, 06:45 PM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Example? I'm thinking if you've seen it that they used custom modules. I suppose you could do it like this tho...
CODE <script language="javascript"><!-- Change URL in the code below, to the url of the image you want as the "icon". DO NOT REMOVE ANY OTHER TAGS UNLESS YOU KNOW WHAT YOU'RE DOING!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=URL border='0'>"); else if (str.match (/sign my guestbook/i)) links[l].innerHTML = str.replace (/sign my guestbook/i, "<img src=URL border='0'> sign my guestbook");}//--> </script> EX: <img src=http://www.epropimage.gif border='0'> There are TWO total that you need to change. |
|
|
|
stefani_hsc code help Feb 24 2006, 02:47 AM
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![]() ![]() |