|
<!-- the layout here is just an example. the fact that the images are named is the critical point !! --> <div align="center"> <img src="http://pri_server/folder/image.gif" border="0" name="bbImg1"> <img src="http://pri_server/folder/image.gif" border="0" name="bbImg2"> <img src="http://pri_server/folder/image.gif" border="0" name="bbImg3"> </div> <script language="JavaScript" type="text/javascript"> <!--// // script to create image redundancy // simply change the next line to your "alternate" image host. var altPath="http://alt_server/folder/"; // remember to name your all images with a "bbImg" prefix as shown above, // and upload the images to your alternate host with the same filenames. // DO NOT SPECIFY IMAGE WIDTH for any image you want redundancy for. // works in IE, NS, Firebird, Opera // baconbuttie November 2003 for(i=1;i<=(document.images.length);i++){ if(document.images[i-1].name.indexOf("bbImg")!=-1){if(document.images[i-1].width<40){ document.images[i-1].src=(altPath+(document.images[i-1].src.substr((document.images[i-1].src.lastIndexOf("/"))+1)));}}} //--></script> remember to put the script at the very end of your description. |