Conforums Support
Board Enhancements >> Hacks >> Text to image
http://support.conforums.com/index.cgi?board=code&action=display&num=1155978356

Text to image
Post by Garet on Aug 19th, 2006, 04:05am

This will allow you to change specified titlebg or Catbg text to an image

Submitted by Zando

Cross Browser
Footers
Edit Green



<script type="text/javascript">
<!--

//Text to Image
function tti(text,image){
var td=document.getElementsByTagName("td")
for(z=0;z<td.length;z++){
if(td[z].className.match(/catbg|titlebg/)){
var zag=td[z].innerHTML.replace(text,"<img src='"+image+"'>");
td[z].innerHTML=zag;
}}}
tti("TEXT","IMAGE URL");

//-->
</script>



If you want this to take effect on more text, just add as many of this as you want.
tti("TEXT","IMAGE URL");