|
Post by James on Apr 24, 2005 21:21:12 GMT
Footers. <script type="text/javascript"> <!--
/* Image to text v1
Created by A._Leon Copyright © 2003 - 2005 SolidSnakeDesigns.com All Rights Reserved
This code may not be redistributed without express permission from the creator. This header must stay intact at all times. */
function ImageToText(url,text) { var iUrl = url; var iText = text; var iLink = document.links; for (a = 0; a < iLink.length; a ++) { if (iLink.item(a).firstChild.tagName && iLink.item(a).firstChild.tagName.toLowerCase() == "img") { if (iLink.item(a).firstChild.src.match(new RegExp(iUrl,'i'))) { var iFont = document.createElement("font"); iFont.size = '1'; iFont.appendChild(document.createTextNode(iText)); iLink.item(a).replaceChild(iFont,iLink.item(a).firstChild); } } } }
ImageToText("url","text");
//--> </script>Change the red to the url of the image. It can just be the file name and extention. For example, xx.gif Change the blue to the text you want to appear. [Cross Browser]
|
|