|
Post by Wormopolis on Mar 30, 2011 20:32:56 GMT -8
browsers tested: FF and IE placement: global footer
this will either replace the word "Guest" in the MP with an image of your choice, or add in an image like a guest avatar.
<script type="text/javascript"> <!-- // replace "guest" in MP with image // request by victory // by Wormpolis - www.wormocodes.com // keep header intact
var gImage="http://i197.photobucket.com/albums/aa250/WORMOPOLIS/guest.jpg"; var replaceGuest=false; //set true to replace "Guest" with image, set false to just add image var centerMP=true; var messageUnderImage="Thank you for Posting!";
for (tds=document.getElementsByTagName('td'), e=0; e<tds.length; e++) { if (tds[e].width=='20%' && tds[e].vAlign=='top' && tds[e].innerHTML.match(/<br>Guest<br>/i)) { var nwInnerds=(centerMP ? '<center>' : ''); nwInnerds+=(replaceGuest ? tds[e].innerHTML=tds[e].innerHTML.replace(/Guest/,'<br><img src="'+gImage+'" \/>') : tds[e].innerHTML+'<br><br><img src="'+gImage+'" \/><br><br>'); nwInnerds+=messageUnderImage+'<br><br>'+(centerMP ? '</center>' : ''); tds[e].innerHTML=nwInnerds;
} }
// --> </script>
|
|