Author Topic: Customize Icons for Ezblocks?  (Read 377 times)

0 Members and 0 Guests are viewing this topic.

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 29
  • Gender: Male
    • View Profile
Re: Customize Icons for Ezblocks?
« on: July 14, 2012, 08:05:51 pm »
I think I may have a solution for this using the replace images code.

What you'll do is right click the image you want to replace and find Copy Image Location

Paste that in place of the words "OLD IMAGE URL" in the code below.

Do the same thing for the image you want to use in it's place, and put it's URL in the "NEW IMAGE URL" portion of the code.
 If it is not already online, you'll need to upload it to a image hosting site such as TinyPic

You can do this for as many images as you'd like by copying this line: img_b[img_b.length++] = ["OLD IMAGE URL" , "NEW IMAGE URL"]
Add it in right below the line that you changed before.

Put that into your footers (Admin > Style Manager > Headers and Footers)

Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = ["OLD IMAGE URL" , "NEW IMAGE URL"]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>
<--- Donate to CreateAForum! :D

Jeremiah 33:3

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
333 Views
Last post September 15, 2010, 01:36:03 am
by Seldom Fail
1 Replies
422 Views
Last post April 28, 2011, 01:17:38 am
by Alex
1 Replies
652 Views
Last post July 05, 2014, 02:04:40 pm
by CreateAForum
7 Replies
140 Views
Last post March 31, 2016, 08:09:56 pm
by RoxieBabyBoo
1 Replies
213 Views
Last post April 20, 2019, 10:44:29 pm
by CreateAForum