replace words, only in links |
![]() ![]() |
replace words, only in links |
Sep 21 2005, 07:50 AM
Post
#1
|
|
|
snooper ![]() ![]() Group: Member Posts: 15 Joined: May 2005 Member No: 138,448 |
I've tried searching for this but can't find exactly what I need.
I want a script that'll let me change "ADDcomments" to something like "GIVE high-five." Unfortunately, the Xanga script won't let me change the "add" part to "give." Replace words ends up replacing ALL the words in my website, including the comments people leave (no one can use 'comments' without it being changed to "high-five"). I just want the words in the links changed. Helps? |
|
|
|
Sep 21 2005, 06:17 PM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Modify as needed.
[ http://www.createblog.com/forums/index.php?showtopic=32 ] |
|
|
|
Sep 21 2005, 08:32 PM
Post
#3
|
|
|
snooper ![]() ![]() Group: Member Posts: 15 Joined: May 2005 Member No: 138,448 |
no, that's the same code that Xanga gives out. For some reason it doesn't replace the "add" with "give."
ex. you can change "add comment" to "add high-give" but you can't change "add comment" to "give high-five." anyone figure that out? |
|
|
|
Sep 22 2005, 05:55 AM
Post
#4
|
|
![]() xXxXxbErRyZxXxXx ![]() ![]() ![]() ![]() Group: Member Posts: 190 Joined: Sep 2005 Member No: 235,812 |
i dont think thats possible to change "add" to something else.
|
|
|
|
Sep 22 2005, 05:57 PM
Post
#5
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
DUDE! Use some damn common sense.
CODE else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents"); QUOTE else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents");
|
|
|
|
Sep 22 2005, 10:35 PM
Post
#6
|
|
|
snooper ![]() ![]() Group: Member Posts: 15 Joined: May 2005 Member No: 138,448 |
tried that one already. doesn't seem to work. mebbe it's just me.
|
|
|
|
Sep 23 2005, 06:02 PM
Post
#7
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
.... It works tho....
&that's what I use. See for yourself, it works. [ http://www.xanga.com/nyah_tests ] |
|
|
|
Sep 24 2005, 04:27 PM
Post
#8
|
|
|
snooper ![]() ![]() Group: Member Posts: 15 Joined: May 2005 Member No: 138,448 |
haha! thanks! I don't know why it didn't work when I tried it but your code help worked fantabulously.
|
|
|
|
![]() ![]() |