Author Topic: Werid Bug..  (Read 1858 times)

0 Members and 0 Guests are viewing this topic.

Offline Fate

  • Newbie
  • *
  • Posts: 36
  • Karma: -1
  • Gender: Male
  • US Navy Seal - Commander Fate
    • View Profile
    • CIA
Re: Werid Bug..
« on: August 06, 2010, 03:39:38 pm »
That seems to be a code for SMF For Free Forums.

You don't need to add a new code for each image, simply do this:

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++] = [ "ORIGINAL_URL_HERE" , "YOUR_REPLACEMENT_IMAGE_URL" ]

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>

Replace ORIGINAL_URL_HERE with the url of the original image. (read what Seldom Fail said below)
Replace YOUR_REPLACEMENT_IMAGE_URL with the url of the image you want. (which you did correctly)

Instead of adding a new code each time, simply add more of this line under the first:
Code: [Select]
img_b[img_b.length++] = [ "ORIGINAL_URL_HERE" , "YOUR_REPLACEMENT_IMAGE_URL" ]
« Last Edit: August 06, 2010, 05:41:25 pm by Fate »