Log In · Register

 
changing eProp text?
*kryogenix*
post Dec 31 2003, 01:27 PM
Post #1





Guest






eProp icon can be changed, but what about the text? can i change the font? can i replace the text with an image? how?
 
 
Start new topic
Replies (1 - 5)
*krnxswat*
post Dec 31 2003, 01:39 PM
Post #2





Guest






do you mean as in "eProps" and "leave comments" text? if so..

CODE
<!-- begin code provided by createblog.com -->
<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, "cents");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "cent");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "dollars");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "dollar");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "add me");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "log out");
}//-->
</script>
<!-- end code provided by createblog.com -->


i don't know about changing text to an image..
shifty.gif
 
*eunie03*
post Dec 31 2003, 08:37 PM
Post #3





Guest






I'm not sure if you could change the font of the eprops themselves.. you could just single out the font of links though =/
 
micron
post Jan 1 2004, 03:02 AM
Post #4


cb's #1 fan! =)
******

Group: Advisor
Posts: 2,342
Joined: Nov 2003
Member No: 1



Here's an example to replace the text to image.
CODE
<!-- begin code provided by createblog.com -->
<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=url/to.image>");
}//-->
</script>
<!-- end code provided by createblog.com -->

Note that instead of 'cents' its now '<img src=url/to.image>'.
 
NotSoInnocent247
post Jan 1 2004, 06:14 PM
Post #5


Newbie
*

Group: Member
Posts: 2
Joined: Dec 2003
Member No: 85



i still dont get it how do you change the eprops word and comments? to ur own?
 
maswushot
post Jan 1 2004, 08:54 PM
Post #6


Member
**

Group: Member
Posts: 18
Joined: Jan 2004
Member No: 179



where it says "str. replace" then u write what it is u want to replace it with
 

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