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
Larva
post Jul 29 2004, 04:00 PM
Post #2


Newbie
*

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



0546:<[36]^script language="javascript">
----:[36]^Warning: tag <script> missing required attribute "type".Click here to learn more
----:[36]^Hint: use "type" attribute with "language" attribute.
0547:<!--
0548:var links = document.getElementsByTagName ('a');
0549:for (var l = 0; l < links.length; l++) {
0550:str = links[l].innerHTML;
0551:if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
0552:
0553:else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "<img src=IMG URL HERE border='0'>");
0554:
0555:else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "<img src=IMG URL HERE border='0'>");
0556:
0557:else if (str.match (/add comments/i)) links[l].innerHTML = str.replace (/add comments/i, "<img src=IMG URL HERE border='0'>");
0558:
0559:
0560:else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "<img src=IMG URL HERE border='0'>");
0561:
0562:
0563:else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "<img src=IMG URL HERE border='0'>");
0564:
0565:
0566:else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "<img src=IMG URL HERE border='0'>");}
0567:
0568:var paras = document.getElementsByTagName ('p');
0569:for (var p = 0; p < paras.length; p++) {
0570:str = paras[p].innerHTML;
0571:if (str.match (/smileys/gi)) paras[p].innerHTML = str.replace (/smileys/gi, "x)*");
0572:}
0573://-->

Could those be the problems
 

Posts in this topic


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