【产品追源码】【netty源码读写】【源码剖析学习】图文广告公司网站源码

时间:2024-11-23 07:01:21 分类:layim即时聊天源码 来源:解密解码源码

1.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就行,里面的值传入你想从数据库里读的数据即

       å¯ã€‚