|
Post by tunescool on Jan 8, 2010 12:47:32 GMT -8
can you bold this please
<script type="text/javascript"> <!-- /* Image to Text */
function Text(image,text) { var img = document.getElementsByTagName('img'); for(i=0; i<img.length; i++) { if(img[i].src.match(new RegExp(image+'$'))) { var txt = document.createTextNode(text); img[i].parentNode.replaceChild(txt, img[i]); } } }
Text("http://i709.photobucket.com/albums/ww95/tunescool/nook/twitter.png","twitter"); Text("Image URL","Text"); Text("Image URL","Text");
//--> </script>
|
|
|
Post by Wormopolis on Jan 8, 2010 17:22:33 GMT -8
I must be tired.. I looked at this code for 5 minutes trying to figure out why you were wanting images to turn bold before I realized what the code did....
<script type="text/javascript"> <!-- /* Image to Text */
function Text(image,text) { var img = document.getElementsByTagName('img'); for(i=0; i<img.length; i++) { if(img[i].src.match(new RegExp(image+'$'))) { var txt = document.createTextNode(text); var bold=document.createElement('b'); bold.appendChild(txt); img[i].parentNode.replaceChild(bold, img[i]); } } }
Text("http://i709.photobucket.com/albums/ww95/tunescool/nook/twitter.png","twitter"); Text("Image URL","Text"); Text("Image URL","Text");
//--> </script>
|
|
|
Post by tunescool on Jan 8, 2010 17:54:21 GMT -8
it worked good nite
|
|
|
Post by Wormopolis on Jan 8, 2010 22:26:21 GMT -8
excellent!
|
|