var N_imgs = 10; var L_imgs = 0; var X_end var Timer_Scroll; var x_cora; var x_corb; var x_stack; var Flag_Coll=0; var Flag_Art=0; var Flag_Makrop=0; var Flag_Makropa=0; var Flag_Rent=0; var Flag_Mcsherry=0; var Flag_Mcsherrya=0; var Flag_Mcsherryb=0; var Flag_Mars=0; var Flag_Cycle = 0; var Flag_Scroll = 0; var dx_scroll = 10; var dt_scroll = 50; var Toggle = 0; var Cycle_Count; Img_Scroll = new Array(); X_cor = new Array(); W_imgs = new Array(1111,375,308,380,367,640,553,550,376,325,530) for(var i=1; i <= N_imgs; i++) { L_imgs = L_imgs + W_imgs[i]; X_cor[i] = L_imgs - W_imgs[i]; }; function Scroll_Imgs(){ X_end = L_imgs; Timer_Scroll=setInterval("New_Cords()",dt_scroll); } function Stop_scroll(){ clearTimeout(Timer_Scroll); } function New_Cords(){ X_end = X_end - dx_scroll; for(var i=1; i <= N_imgs; ++i){ x_cora = X_cor[i] - dx_scroll; x_corb = X_cor[i] + W_imgs[i]; X_cor[i] = x_cora; x_cor_stack = x_cora + L_imgs - dx_scroll; if(x_corb < 0){ X_cor[i] = x_cor_stack; } if(Flag_Coll == 0){ if(X_cor[3] <= 80){ Flag_Coll = 1; Stop_scroll(); Timer_Scrollz=setTimeout('Scroll_Imgs()',5000); } } if(Flag_Art == 0){ if(X_cor[5] <= 65){ Flag_Art = 1; Stop_scroll(); Timer_Scrollz=setTimeout('Scroll_Imgs()',5000); // Timer_Wipe=setTimeout('Clip_Article_Grn()', 4000); } } if(Flag_Makrop == 0){ if(X_cor[6] <= 105){ Flag_Makrop = 1; Stop_scroll(); Timer_Scrolla=setTimeout('Scroll_Imgs()',5000); } } if(Flag_Makropa == 0){ if(X_cor[7] <= 105){ Flag_Makropa = 1; Stop_scroll(); Timer_Scrollb=setTimeout('Scroll_Imgs()',5000); } } if(Flag_Rent == 0){ if(X_cor[8] <= 200){ Flag_Rent = 1; Stop_scroll(); Timer_Scrollc=setTimeout('Scroll_Imgs()',5000); } } if(Flag_Mcsherry == 0){ if(X_cor[9] <= 230){ Flag_Mcsherry = 1; Stop_scroll(); Timer_Scrolld=setTimeout('Scroll_Imgs()',2000); } } if(Flag_Mcsherrya == 0){ if(X_cor[10] <= 150){ Flag_Mcsherrya = 1; Stop_scroll(); Timer_Scrolle=setTimeout('Scroll_Imgs()',3000); document.swansa_800.clip.right += 10; dt_scroll = 200; Timer_Clip_Closed=setTimeout('Un_Clip_Coverlayer()',6000); } } if(Flag_Mcsherryb == 0){ if(X_cor[10] <= -400){ Flag_Mcsherryb = 1; Stop_scroll(); } } if(i == N_imgs){ Move_imgs(); } } } function Move_imgs(){ document.layers["scroll_window_800"].layers["img1"].moveTo(X_cor[1],0); document.layers["scroll_window_800"].layers["img2"].moveTo(X_cor[2],0); document.layers["scroll_window_800"].layers["img3"].moveTo(X_cor[3],0); document.layers["scroll_window_800"].layers["img4"].moveTo(X_cor[4],0); document.layers["scroll_window_800"].layers["img5"].moveTo(X_cor[5],0); document.layers["scroll_window_800"].layers["img6"].moveTo(X_cor[6],0); document.layers["scroll_window_800"].layers["img7"].moveTo(X_cor[7],0); document.layers["scroll_window_800"].layers["img8"].moveTo(X_cor[8],0); document.layers["scroll_window_800"].layers["img9"].moveTo(X_cor[9],0); document.layers["scroll_window_800"].layers["img10"].moveTo(X_cor[10],0); }
Make your own free website on Tripod.com