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
micron
post Jan 1 2004, 03:02 AM
Post #2


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>'.
 

Posts in this topic
kryogenix   changing eProp text?   Dec 31 2003, 01:27 PM
krnxswat   do you mean as in "eProps" and "lea...   Dec 31 2003, 01:39 PM
eunie03   I'm not sure if you could change the font of t...   Dec 31 2003, 08:37 PM
micron   Here's an example to replace the text to image...   Jan 1 2004, 03:02 AM
NotSoInnocent247   i still dont get it how do you change the eprops w...   Jan 1 2004, 06:14 PM
maswushot   where it says "str. replace" then u writ...   Jan 1 2004, 08:54 PM


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