inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 5, 2005 3:53:10 GMT -8
<script type="text/javascript"> <!--
// Category or title text to image
var tCat = document.getElementsByTagName("td");
function textToImage(text,image){ for(t = 0; t < tCat.length; t ++){ var re = new RegExp("<b>" + text.replace(/([\*\+\.\/]+)/, "\\$1") + "</b>","i"); if(tCat.item(t).className.match(/^(cat|title)bg/i) && tCat.item(t).innerHTML.match(re)){ tCat.item(t).innerHTML = tCat.item(t).innerHTML.replace(re, "<img src='" + image + "'>"); } } }
textToImage("TEXT","IMAGE URL"); textToImage("TEXT","IMAGE URL");
//--> </script>
Add to main footer.
Just change the TEXT and IMAGE URL, feel free to add more lines if needed.
|
|