【网页随机背景源码】【购买街app源码】【追求神器源码】asp 图片源码

2024-11-08 05:46:02 来源:flter源码 分类:热点

1.ASP图片广告代码

asp 图片源码

ASP图片广告代码

       <script type="text/javascript">

        <!--

        var focus_width=;

        var focus_height=;

        var text_height=0;

        var swf_height = focus_height+text_height;

        var pics='../images/index1.jpg|../images/index2.jpg|../images/index3.jpg|../images/index4.jpg|../images/index5.jpg'

        var links='../images/index1.jpg|../images/index2.jpg|../images/index3.jpg|../images/index4.jpg|../images/index5.jpg'

        document.write('<object ID="focus_flash" classid="clsid:dcdb6e-ae6d-cf-b8-" codebase="/pub/shockwave/cabs/flash/swflash.cab#version=6,片源网页随机背景源码0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');

        document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../swf/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');

        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');

        document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');

        document.write('<embed src="../swf/focus.swf" ID="focus_flash" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="/go/getflashplayer" />');

        document.write('</object>');

        //-->

        </script>

       åœ¨ä½ è¦è¾“出的地方输出这段js就可以,pics是你那几张图片的路径,links是你

       ç‚¹å‡»å›¾ç‰‡è¿žæŽ¥åˆ°çš„路径,是一一对应的。如果你想从数据库里读取图片,只需

       è¦åœ¨åŽå°å†™ä»£ç è¾“出这段js就行,里面的值传入你想从数据库里读的数据即

       å¯ã€‚

本文地址:http://5o.net.cn/news/99f59099310.html 欢迎转发