question about eprop icon |
question about eprop icon |
![]()
Post
#1
|
|
![]() my name is veronica, you can call me vc! i'm old... ![]() ![]() ![]() ![]() Group: Member Posts: 133 Joined: Aug 2005 Member No: 201,906 ![]() |
|
|
|
![]() |
![]()
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 ![]() |
I'm so gonna regret this.
---- CODE <script language="javascript"><!-- So that's the code we're working with. And this is what we're trying to achive. Correct? Okay.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 (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "<img src=EPROPSIMAGEHERE border='0'>"); else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "<img src=EPROPSIMAGEHERE border='0'>"); else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "<img src=COMMENTSIMAGEHERE border='0'>"); else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "<img src=COMMENTSIMAGEHERE border='0'>");}//--> </script> Now, get two image you want to replace the words eprop(s) and comments(s) with. Make them small, so you do't get distortion in your Xanga, okay? ---- Now, Look at this section of code. QUOTE else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "<img src=EPROPSIMAGEHERE border='0'>"); The bolded section of the code is what you change to the URL of the image you'll be changing eprops to. QUOTE else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "<img src=EPROPSIMAGEHERE border='0'>"); Same image here, unless you want something different for the word eprop.---- Now, look at this section of code. QUOTE else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "<img src=COMMENTSIMAGEHERE border='0'>"); See the bolded part? Change it to whatever image you want to replace comments with.QUOTE else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "<img src=COMMENTSIMAGEHERE border='0'>"); Same idea here, but you can replace it with a different image if want a different image for the word comment.---- If that makes no sense to you, post up the links to the two images you'd like to use and tell me what they're for and I'll do it for you. edit// You're gonna need to remove certain sections of the first code. |
|
|
![]() ![]() |