Log In · Register

 
question about eprop icon
vclovesgc
post Aug 13 2005, 01:47 PM
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



i went here but the turtorial is not very clear, can anyone explain it more???

p.s. i have this code and this code on my web stats, do i have to delete all of those?
 
 
Start new topic
Replies
talcumpowder
post Aug 13 2005, 01:59 PM
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"><!--
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>
So that's the code we're working with. And this is what we're trying to achive. Correct? Okay.
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.
 

Posts in this topic
vclovesgc   question about eprop icon   Aug 13 2005, 01:47 PM
fishcake-y   I'm so gonna regret this. ---- CODE<script...   Aug 13 2005, 01:59 PM
vclovesgc   i fixed it, thanks!!!! sorry i was...   Aug 13 2005, 03:17 PM


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