<thead id="toltr"></thead>
<progress id="toltr"><strike id="toltr"></strike></progress>

  • <ul id="toltr"><meter id="toltr"></meter></ul>
    <b id="toltr"></b>

    <strike id="toltr"></strike>

    <b id="toltr"></b>

  • 歡迎進入紅數(shù)信息技術(shù)有限公司官網(wǎng)
    4008088160
    現(xiàn)在的位置:首頁 > 發(fā)布營銷型網(wǎng)站建設(shè) > 新聞資訊 > 圖片漸變,淡入淡出效果
    圖片漸變,淡入淡出效果
    信息來源:優(yōu)度網(wǎng)絡(luò)  發(fā)布日期:2009/4/2 瀏覽數(shù)量:1096
    文章導(dǎo)讀:
    <html>
    <head>
    <title>圖片淡入淡出</title>
    <style type="text/css">
    <!--
    body{
     background:#000000;
    }
    img{
     filter:BlendTrans(duration=3);
     border:none;
    }
    -->
    </style>
       </head>
    <body>
    <script language="javascript">
    function img1(x){    // 獲取數(shù)組記錄數(shù)
     this.length=x;
    }
    //申明數(shù)組并給數(shù)組元素賦值,也就是把圖片的相對路徑保存起來
    //若是圖片較多,可增加數(shù)組元素的個數(shù),
    //在這個例子中用了五張圖片,所以數(shù)組元素個數(shù)為“5"。
     iname=new img1(5);
     iname[0]="photo/01.jpg";
     iname[1]="photo/02.jpg";
     iname[2]="photo/03.jpg";
     iname[3]="photo/04.jpg";
     iname[4]="photo/05.jpg";
     var i=0;
    function play1(){    // 演示變換效果
     if (i==4){ i=0; }   //當(dāng)進行到iname[4]時,返回iname[0]
     else{ i++; }
     tp1.filters[0].apply();  //tp為圖像的name,在<img>標(biāo)記中定義
     tp1.src=iname[i];
     tp1.filters[0].play();
     mytimeout=setTimeout("play1()",4000);
     //設(shè)置演示時間,這里是以毫秒為單位的,所以“4000 ”是指每張圖片的演示時間是4秒
     //這個時間值要大于濾鏡中設(shè)置的轉(zhuǎn)換時間值,這樣當(dāng)轉(zhuǎn)換結(jié)束后還能停留一段時間,看清楚圖片。
    }
    </script>
    <p><img src="photo/04.jpg" name="tp1"></p>
    <script language="javascript">//play1();</script>
    </body>
    相關(guān)信息
    • 網(wǎng)絡(luò)營銷培訓(xùn)
    • 微網(wǎng)站
    • 掃二維碼
    • 1
    • 2
    • 3
    • 最新上傳
    • 精品案例
    18973218026
    其他業(yè)務(wù)合作請發(fā)下面郵箱
    郵箱:254596208@qq.com
    地址:湖南省湘潭市岳塘區(qū)霞光東路58號(維也納酒店6樓)
    營銷型網(wǎng)站建設(shè)掃一掃關(guān)注官方微信

    關(guān)注優(yōu)度

    官方微信
    官方微博
    官網(wǎng)首頁
    亚洲日本中文字幕天天跟新,无码综合黄色在线,亚洲人成网站在线观看无码,久久久久亚洲无码
    <thead id="toltr"></thead>
    <progress id="toltr"><strike id="toltr"></strike></progress>

  • <ul id="toltr"><meter id="toltr"></meter></ul>
    <b id="toltr"></b>

    <strike id="toltr"></strike>

    <b id="toltr"></b>