午夜视频在线网站,日韩视频精品在线,中文字幕精品一区二区三区在线,在线播放精品,1024你懂我懂的旧版人,欧美日韩一级黄色片,一区二区三区在线观看视频

分享

關(guān)于DIV層疊加的問題 - Web 開發(fā) / HTML(CSS)

 小~藍 2011-05-30
  <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>

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多