<SCRIPT>
//Alpha:設(shè)置透明度 //Alpha(Opacity=?, FinishOpacity=?, Style=?, StartX=?, StartY=?, FinishX=?, FinishY=?) //Opacity:透明度級別,范圍是0-100,0代表完全透明,100代表完全不透明。 //FinishOpacity:設(shè)置漸變的透明效果時,用來指定結(jié)束時的透明度,范圍也是0 到 100。 //Style:設(shè)置漸變透明的樣式,值為0代表統(tǒng)一形狀、1代表線形、2代表放射狀、3代表長方形。 //StartX和StartY:代表漸變透明效果的開始X和Y坐標(biāo)。 //FinishX和FinishY:代表漸變透明效果結(jié)束X和Y 的坐標(biāo)。 var widths=340; var heights=380; var counts=12; img1=new Image ();img1.src='img/CYP512a.jpg'; img2=new Image ();img2.src='img/CYP512b.jpg'; img3=new Image ();img3.src='img/CYP512c.jpg'; img4=new Image ();img4.src='img/CYP512d.jpg'; img5=new Image ();img5.src='img/CYP512e.jpg'; img6=new Image ();img6.src='img/CYP512f.jpg'; img7=new Image ();img7.src='img/CYP512g.jpg'; img8=new Image ();img8.src='img/CYP512h.jpg'; img9=new Image ();img9.src='img/CYP512i.jpg'; img10=new Image ();img10.src='img/CYP512j.jpg'; img11=new Image ();img11.src='img/CYP512k.jpg'; img12=new Image ();img12.src='img/CYP512l.jpg'; url1=new Image ();url1.src='img/CYP512a.jpg'; url2=new Image ();url2.src='img/CYP512b.jpg'; url3=new Image ();url3.src='img/CYP512c.jpg'; url4=new Image ();url4.src='img/CYP512d.jpg'; url5=new Image ();url5.src='img/CYP512e.jpg'; url6=new Image ();url6.src='img/CYP512f.jpg'; url7=new Image ();url1.src='img/CYP512g.jpg'; url8=new Image ();url2.src='img/CYP512h.jpg'; url9=new Image ();url3.src='img/CYP512i.jpg'; url10=new Image ();url4.src='img/CYP512j.jpg'; url11=new Image ();url5.src='img/CYP512k.jpg'; url12=new Image ();url6.src='img/CYP512l.jpg'; //天極提供,taogenyuan@126.com提供注釋 var nn=1; var key=0; function change_img() {if(key==0){key=1;} else if(document.all) //下面去掉一個后只有切換效果,沒有濾鏡效果 //{document.getElementById("pic").filters[0].Apply();document.getElementById("pic").filters[0].Play(duration=2);} {document.getElementById("pic").filters[0].Play(duration=2);} eval('document.getElementById("pic").src=img'+nn+'.src'); eval('document.getElementById("url").href=url'+nn+'.src'); for (var i=1;i<=counts;i++){document.getElementById("xxjdjj"+i).className='axx';} document.getElementById("xxjdjj"+nn).className='bxx'; nn++;if(nn>counts){nn=1;} tt=setTimeout('change_img()',4000);} function changeimg(n){nn=n;window.clearInterval(tt);change_img();} document.write('<style>'); document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}'); document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:18px;font:9px sans-serif;background-color:#666;}'); document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:18px;font:9px sans-serif;background-color:#999;}'); document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}'); document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:18px;font:9px sans-serif;background-color:#D34600;}'); document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:18px;font:9px sans-serif;background-color:#D34600;}'); document.write('</style>'); document.write('<div style="width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;">'); document.write('<div><span id="url"><img id="pic" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=0.0,wipestyle=4, motion=forward)" width='+widths+' height='+heights+' /></span></div>'); document.write('<div style="filter:alpha(style=0,opacity=70,finishOpacity=80);background: #888888;width:100%-2px;text-align:right;top:-15px;position:relative;margin:1px;height:18px;padding:0px;margin:0px;border:0px;">'); for(var i=1;i<counts+1;i++){document.write('<a href="javascript:changeimg('+i+');" id="xxjdjj'+i+'" class="axx" target="_self">'+i+'</a>');} document.write('</div></div>'); change_img(); </SCRIPT> |
|