stp=Math.floor(img_w/10);img_w=stp*10;//移動ピッチ if(wh==1){ stp=Math.floor(img_h/10);img_h=stp*10; } if(wh==1){stp=img_h/10;} w=0; nn=0;mm=0; mv_flg=0; flg=0; fil=new Array(); doc=new Array(); //ファイルの先読み for(i=0;i<=n;i++){ dd=dt[i].split(","); fil[i]=new Image();fil[i].src=url+dd[0]; doc[i]=dd[1]; } //位置移動 function iti(){ //中央揃え if(document.layers){ ww=innerWidth;hh=innerHeight; }else{ ww=document.body.clientWidth; hh=document.body.clientHeight; } scr_center=ww/2;//写真の表示中央位置 img_l=scr_center-img_w/2; document.getElementById("ll_02").style.left =img_l; document.getElementById("rr_02").style.left =img_l; document.getElementById("ll_01").style.left =img_l; document.getElementById("rr_01").style.left =img_l; document.getElementById("l_5").style.left =img_l; } window.onresize=iti; //方向 function chg(){ if(document.layers){ nn++; if(nn>n){nn=0;} document.nc.src=fil[nn].src; }else{ px=event.x;py=event.y; if(wh==0){ if(px>scr_center){muki=1;}else{muki=-1;} }else{ if(pyn){mm=0;} if(mm<0){mm=n;} if(wh==0){ document[ll+"1"].width=0; }else{ document[ll+"1"].height=0; } document[rr+"1"].src=fil[nn].src; if(wh==0){ document[rr+"1"].width=img_w; }else{ document[rr+"1"].height=img_h; } document[rr+"2"].src=fil[mm].src; document[ll+"1"].src=fil[mm].src; document[ll+"2"].src=fil[nn].src; //document.book_f.com.value=doc[mm]; mv(); nn=nn+muki; if(nn>n){nn=0;} if(nn<0){nn=n;} } //自動 function at(){ if(document.layers){return;} if(flg==1){ flg=0; clearTimeout(at_tm); document.book_f.book_e.value="オートスライド"; return; } at_sub(); flg=1; document.book_f.book_e.value="手動に戻す"; } // function at_sub(){ if(mv_flg==0){ set_sub(); } at_tm=setTimeout("at_sub()",tim); } //めくる function mv(){ if(w>20){ clearTimeout(tm); mv_flg=0; return; } if(wh==1){ if(w<10){ document[rr+"1"].height=img_h-w*stp; } if(w==10){ document[rr+"1"].height=0; document.book_f.com.value=doc[mm]; } if(w>10){ document[ll+"1"].height=(w-10)*stp; } }else{ if(w<10){ document[rr+"1"].width=img_w-w*stp; } if(w==10){ document[rr+"1"].width=0; document.book_f.com.value=doc[mm]; } if(w>10){ document[ll+"1"].width=(w-10)*stp; } } w=w+1; mv_flg=1; tm=setTimeout("mv()",50); } //中央揃え ww=document.body.clientWidth; hh=document.body.clientHeight; scr_center=ww/2;//写真の表示中央位置 if(wh==1){ cp2='rect(0,'+img_w +','+img_h/2+',0)';cp1='rect('+img_h/2+','+img_w+','+img_h+',0)'; }else{ cp1='rect(0,'+img_w/2+','+img_h+',0)';cp2='rect(0,'+img_w+','+img_h+','+img_w/2+')'; } img_l=scr_center-img_w/2; document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('
\n'); document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('
\n'); document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('
\n'); document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('
\n'); document.write('
'); document.write('
'); fc=document.fgColor; document.write('

'); document.write('
'); document.write('
\n'); document.write('


');