i couldn't find this script, eprops and comments with images |
![]() ![]() |
i couldn't find this script, eprops and comments with images |
Sep 18 2004, 02:43 PM
Post
#1
|
|
![]() crushed. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,432 Joined: Jun 2004 Member No: 20,026 |
i had this code on my xanga, but i accidentally deleted it, can someone please tell me the code where you can replace eprops and comments with images?
example: ![]() sorry if theres been a topic on this..=( |
|
|
|
Sep 18 2004, 05:04 PM
Post
#2
|
|
|
anna park ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 410 Joined: Jul 2004 Member No: 29,818 |
just put a image code for the replacing the link
|
|
|
|
Sep 18 2004, 05:45 PM
Post
#3
|
|
![]() I never give 4/10 ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 627 Joined: Aug 2004 Member No: 45,375 |
QUOTE <!-- begin code provided by createblog.com --> <script type="text/javascript"> // // © EasterEgg, http://www.xanga.com/easteregg // // For use at Xanga only. // // This script replaces any given word or text fragment with // whatever you want: new words and fragments, or even HTML! // // Actually it's pretty simple: add the words or fragments you // wish to replace to the array "oldWords" (each word placed // between double quotation marks, and separated by colons as you // can see below) and add their replacements to the array "newWords", // at the same position as the original words in "oldWords". // The example is pretty self-explaining. // // The script is case sensitive, meaning that if you add "something" // to "oldWords" array it will not recognize "SOMETHING", or "SoMetHInG". // // You can adjust the existing arrays in this code as you see fit, // as long as both arrays keep the same size (same amount of words // in both arrays), otherwise a script error will occur. // // Copy this entire code and paste in the webstats box at your // Look and Feel page. // // You're free to use this script as long as this comment remains intact, // and as long you won't use it to cripple the comments of your visitors; // after all, no one likes his/her words getting twisted... // function replaceWords() { // ***add the words or fragments you wish to replace below var oldWords = new Array( "Subscriptions", "Publish Comments", "add eProps", "eprop", "eProps", "add comments", "comment", "comments", "email it", "view entire profile", "sign my guestbook", "My Blogrings", "Posting Calendar", "Get Involved!", "sign out", "Name:", "Birthday:", "Gender:", "State:", "Country:", "Interests:", "Expertise:", "Website", "Email", "Member since:"); // *** add the replacing words or fragments below var newWords = new Array( "Subscriptions", "Publish Comments", "add eProps", "eprop", "eProps", "add comments", "comment", "comments", "email it", "view entire profile", "sign my guestbook", "My Blogrings", "Posting Calendar", "Get Involved!", "sign out", "Name:", "Birthday:", "Gender:", "State:", "Country:", "Interests:", "Expertise:", "Website", "Email", "Member since:"); allTableData = document.getElementsByTagName('td'); allTableHeaders = document.getElementsByTagName('th'); var collections = new Array(allTableData,allTableHeaders); for (var k = 0; k < collections.length; ++k ) { for (var i = 0; i < collections[k].length; ++i ) { if (collections[k][i].innerHTML.indexOf('TABLE') == -1) { for ( var n = 0; n < oldWords.length; ++n ) { var indx = collections[k][i].innerHTML.indexOf(oldWords[n]) while (indx != -1) { var replacement = ''; indx = collections[k][i].innerHTML.indexOf(oldWords[n]); replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]); collections[k][i].innerHTML = replacement; break; } } } } } } replaceWords(); </script> <!-- end code provided by createblog.com --> Change the text to <img srrc="URL OF PIC" border="0"> - Tran - |
|
|
|
Sep 18 2004, 06:42 PM
Post
#4
|
|
![]() crushed. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,432 Joined: Jun 2004 Member No: 20,026 |
which part of the text?
|
|
|
|
Sep 18 2004, 11:44 PM
Post
#5
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,826 Joined: Jan 2004 Member No: 2,330 |
CODE <!-- begin code provided by createblog.com --> just replace the two parts that say "IMGLINKHERE"
<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 (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "<img src=IMGLINKHERE border='0'>"); else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "<img src=IMGLINKHERE border='0'>"); }//--> </script> <!-- end code provided by createblog.com --> |
|
|
|
Sep 19 2004, 09:06 PM
Post
#6
|
|
![]() crushed. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,432 Joined: Jun 2004 Member No: 20,026 |
thank you sooo much!!
|
|
|
|
Sep 19 2004, 09:51 PM
Post
#7
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,826 Joined: Jan 2004 Member No: 2,330 |
you're welcome
[ topic closed ] |
|
|
|
![]() ![]() |