SMF For Free Support Forum

SMF For Free Support => SMF For Free Codes and Support => Topic started by: Dustin on September 28, 2010, 05:28:56 pm

Title: Where do I put this code?
Post by: Dustin on September 28, 2010, 05:28:56 pm
Where do I put this code:


Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "christmas_stockings_ranks/rank_banned.gif " , "http://forum.sa-mp.com/images/ranks/pinkdead.gif" ]

var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>

It's from: http://www.ifcode.com/javascript/ImageSwapSMFv2.html

Thanks.


EDIT: Nvm, goes in header/ footer.