Advertise Here

Author Topic: Where do I put this code?  (Read 3002 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, 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.

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
12436 Views
Last post August 16, 2009, 09:16:42 pm
by [FailSafe]
8 Replies
7200 Views
Last post July 09, 2008, 07:17:47 pm
by LaundryLady
2 Replies
1377 Views
Last post March 29, 2008, 12:19:38 pm
by -Sя.Sharp
9 Replies
2835 Views
Last post October 20, 2008, 12:41:42 am
by ^Purrson^
1 Replies
2030 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl