一個圖片輪換效果(Asp.Net+Flash)

來源:互聯網
上載者:User

前台頁面

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                width="600" height="300" VIEWASTEXT>
                <param name="movie" value="http://www.ruochi.com/product/bcastr3/bcastr31.swf">
                <param name="quality" value="high">
                <param name="wmode" value="transparent">
                <param name="FlashVars" value="bcastr_file=<%=pics %>&bcastr_link=<%=links %>&bcastr_title=<%=titles %>&TitleTextColor=0x000000&TitleBgColor=0x0066ff&TitleBgPosition=1&AutoPlayTime=4">
                <embed src="http://www.ruochi.com/product/bcastr3/bcastr31.swf" loop="true" quality="high"
                    pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
                    salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
            </object>

後台定義三個變數,在Page_load裡面給三個變數賦值即可

        public string pics="http://www.ruochi.com/product/bcastr3/pic/a1.jpg|http://www.ruochi.com/product/bcastr3/pic/a2.jpg|http://www.ruochi.com/product/bcastr3/pic/a3.jpg|http://www.ruochi.com/product/bcastr3/pic/a4.jpg";
        public string links="http://www.google.com|http://www.baidu.com|http://www.google.com|http://www.baidu.com'";
        public string titles="'Title 1|Title 2|Title 3|Title 4";

效果:

輪換效果flash用的是Bcastr 3.1 flash 通用圖片輪換播放器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.