Advertise Here

Author Topic: Where do I put this code?  (Read 1875 times)

0 Members and 1 Guest are viewing this topic.

Offline Dustin

  • SMF For Free Member
  • *
  • Posts: 63
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Where do I put this code?
« on: September 28, 2010, 04: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.

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
8610 Views
Last post August 16, 2009, 08:16:42 pm
by [FailSafe]
8 Replies
2380 Views
Last post October 08, 2007, 09:37:44 am
by R u n e s c a p e
8 Replies
2869 Views
Last post November 15, 2007, 11:58:56 am
by simply sibyl
8 Replies
4971 Views
Last post July 09, 2008, 06:17:47 pm
by LaundryLady
1 Replies
1079 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl