// Progressbar - Version 2.0 // Author: Brian Gosselin of http://scriptasylum.com // Featured on Dynamic Drive (http://www.dynamicdrive.com) // PUT THE NAMES OF ALL YOUR IMAGES THAT NEED TO BE "CACHED" IN THE "imagenames" ARRAY. // DONT FORGET THE COMMA BETWEEN EACH ENTRY, OR THE TICK MARKS AROUND EACH NAME. // WHEN ALL THE IMAGES ARE DONE LOADING, THE "imagesdone" VARIABLE IS SET TO "TRUE" var imagenames=new Array( 'photos/060408210909.jpg', 'photos/061213044835.jpg', 'photos/061213044918.jpg', 'photos/061213044928.jpg', 'photos/061213045051.jpg', 'photos/061213045101.jpg', 'photos/061213045250.jpg', 'photos/061213045511.jpg', 'photos/061213045719.jpg', 'photos/061213045727.jpg', 'photos/061213045824.jpg', 'photos/061213045833.jpg', 'photos/061213051321.jpg', 'photos/061213051330.jpg', 'photos/061213053057.jpg', 'photos/061213053106.jpg', 'photos/061213053223.jpg', 'photos/061213053233.jpg', 'photos/061213053823.jpg', 'photos/061213053831.jpg', 'photos/061213054920.jpg', 'photos/061213054930.jpg', 'photos/061217182420.jpg', 'photos/061217182430.jpg', 'photos/061220202232.jpg', 'photos/061220202243.jpg', 'photos/061220202857.jpg', 'photos/061220202905.jpg', 'photos/061220204429.jpg', 'photos/061220204435.jpg', 'photos/061220204528.jpg', 'photos/061220204535.jpg', 'photos/070127113535.jpg', 'photos/070127113543.jpg', 'photos/070211185933.jpg', 'photos/070211185945.jpg', 'photos/070217125639.jpg', 'photos/070217125648.jpg', 'photos/070220122445.jpg', 'photos/070220122456.jpg', 'photos/070313190356.jpg', 'photos/070313190402.jpg', 'photos/070313190419.jpg', 'photos/070313190427.jpg', 'photos/070323122736.jpg', 'photos/070323122814.jpg', 'photos/070405141058.jpg', 'photos/070405141105.jpg', 'photos/070405141121.jpg', 'photos/070405141128.jpg', 'photos/070407113501.jpg', 'photos/070407113509.jpg', 'photos/070408205930.jpg', 'photos/070408205936.jpg', 'photos/070619211032.jpg', 'photos/070619211038.jpg', 'photos/070705175433.jpg', 'photos/070705175442.jpg', 'photos/070814155154.jpg', 'photos/070814155201.jpg', 'photos/070814155220.jpg', 'photos/070814155228.jpg', 'photos/070814155241.jpg', 'photos/070814155248.jpg', 'photos/070818152436.jpg', 'photos/070818152450.jpg', 'photos/070819011854.jpg', 'photos/070819011902.jpg', 'photos/070824165646.jpg', 'photos/070824165655.jpg', 'photos/070824165735.jpg', 'photos/070824165740.jpg', 'photos/070825124618.jpg', 'photos/070825124623.jpg', 'photos/070825231650.jpg', 'photos/070825231741.jpg', 'photos/070916095426.jpg', 'photos/070916095445.jpg', 'photos/070921154808.jpg', 'photos/070921154824.jpg', 'photos/070925084209.jpg', 'photos/070925084213.jpg', 'photos/071123112128.jpg', 'photos/071129193120.jpg', 'photos/071129193126.jpg', 'photos/071129193516.jpg', 'photos/071129193522.jpg', 'photos/071129193558.jpg', 'photos/071129193603.jpg', 'photos/071129194933.jpg', 'photos/071129194939.jpg', 'photos/071129195002.jpg', 'photos/071129195007.jpg', 'photos/071202123220.jpg', 'photos/071202123228.jpg', 'photos/071202123256.jpg', 'photos/071202123302.jpg', 'photos/071218145707.jpg', 'photos/071218145715.jpg', 'photos/071222150335.jpg', 'photos/071222150343.jpg', 'photos/071224161437.jpg', 'photos/071224161442.jpg', 'photos/080113125614.jpg', 'photos/080113125928.jpg', 'photos/080113125934.jpg', 'photos/080711104833.jpg', 'photos/080711104844.jpg'); var yposition=520; //POSITION OF LOAD BAR FROM TOP OF WINDOW, IN PIXELS var loadedcolor='black' ; // PROGRESS BAR COLOR var unloadedcolor='#888888'; // BGCOLOR OF UNLOADED AREA var barheight=10; // HEIGHT OF PROGRESS BAR IN PIXELS (MIN 25) var barwidth=50; // WIDTH OF THE BAR IN PIXELS var bordercolor='black'; // COLOR OF THE BORDER //DO NOT EDIT BEYOND THIS POINT var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false; var IE4 = (document.all)? true : false; var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false; var imagesdone=false; var blocksize=barwidth/(imagenames.length); barheight=Math.max(barheight,25); var loaded=0, perouter, perdone, images=new Array(); var txt=(NS4)?'' : ''; document.write(txt); function loadimages(){ if(NS4){ perouter=document.perouter; perdone=document.perouter.document.layers[0].document.perdone; } if(NS6){ perouter=document.getElementById('perouter'); perdone=document.getElementById('perdone'); } if(IE4){ perouter=document.all.perouter; perdone=document.all.perdone; } cliplayer(perdone,0,0,barheight,0); window.onresize=setouterpos; setouterpos(); for(n=0;n=imagenames.length)setTimeout('hideperouter()', 800); } function checkload(index){ (images[index].complete)? dispbars() : setTimeout('checkload('+index+')', 100); } function hideperouter(){ (NS4)? perouter.visibility="hide" : perouter.style.visibility="hidden"; imagesdone=true; } function cliplayer(layer, ct, cr, cb, cl){ if(NS4){ layer.clip.left=cl; layer.clip.top=ct; layer.clip.right=cr; layer.clip.bottom=cb; } if(IE4||NS6)layer.style.clip='rect('+ct+' '+cr+' '+cb+' '+cl+')'; } window.onload=loadimages;