SMF For Free Support Forum
Signup For Free Forum
September 30, 2014, 12:53:02 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register Chat  

Pages: [1]
  Print  
Author Topic: Where do I put this code?  (Read 1201 times)
0 Members and 1 Guest are viewing this topic.
Dustin
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
Total Badges: 9
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« on: September 28, 2010, 05:28:56 pm »

Where do I put this code:


Code:
<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.
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.19 | SMF © 2013, Simple Machines