Luke
Code Helper
^.^
Posts: 6
Luke said 0 great things
|
Post by Luke on Jul 3, 2009 6:12:19 GMT -8
Browser Tested: IE and FF Description: This is the same thing as the Image Switchit, but instead it replaces the image with text. Editing: Edit/repeat the lines that look like this with the ALT text of the image (the text that appears when you hover over the image). The first two have been done as an example. images.push(['ALT Text']);Placement: Board Footer of any Boards to Affect <script type="text/javascript"><!-- /* Image Switchit To Text*/
var images = Array(); images.push(['[Home]']); images.push(['[Help]']); images.push(['ALT Text']);
var img = document.getElementsByTagName('img'); for(i=0; i<img.length; i++) { if(!img.item(i).alt.match(/^(\[image\])?$/i)) { for(n=0; n<images.length; n++) { if(images[n] == img.item(i).alt) { var l = document.createTextNode(img.item(i).alt.replace(/\[|\]/g, "")); img.item(i).parentNode.replaceChild(l, img.item(i)); } } } } //--> </script>PM me if you're having trouble.
|
|