| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1621 人关注过本帖
标题:菜鸟求救!一个关于flash图片轮翻广告的困惑!
只看楼主 加入收藏
along5117
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-9-27
收藏
 问题点数:0 回复次数:2 
菜鸟求救!一个关于flash图片轮翻广告的困惑!
本人有个学习用的程序,主页上有个flash轮翻广告显示不知道是那里错误了 不能调用网址连接,点图片都没有反映的,望高手能帮助解答一下 看看是哪里出错了!
演示网站地址:http://www.
调用的数据库结构

首页的轮翻代码:
<script type=text/javascript>
        
        
        var focus_width=206//图片宽
        var focus_height=190//图片高
        var text_height=20//设置显示文字标题高度,最佳为20(如果不显示标题值设为0即可)
        var swf_height = focus_height+text_height
        
        //var pics=""
        //var piclinks=""
        //var texts=""
        <%
        set db=conn.execute("select top 6 * from [jle_ad1] order by id desc")
            i=0
            do while not db.eof
                 pics=pics&"|"&db("imgPath")
                 piclinks=piclinks&"|"&db("link")
                 texts=texts&"|"&db("title")
                db.moveNext
                i=i+1
            loop
response.write "var pics='"&right(pics,len(pics)-1)&"'"&vbcrlf
response.write "var piclinks='"&right(piclinks,len(piclinks)-1)&"'"&vbcrlf
response.write "var texts='"&right(texts,len(texts)-1)&"'"&vbcrlf
        %>
        document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
        document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="img/adplay.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+'&piclinks='+piclinks+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
        document.write('<embed ID="focus_flash" src="img/adplay.swf" wmode="opaque" FlashVars="pics='+pics+'&piclinks='+piclinks+'&texts='+texts+'&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="http://www. />');document.write('</object>');
        
      

</script>

帮我看看那里错了 需要怎么改啊!

[[it] 本帖最后由 along5117 于 2008-9-27 12:52 编辑 [/it]]
搜索更多相关主题的帖子: 广告 flash 困惑 
2008-09-27 12:45
along5117
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-9-27
收藏
得分:0 
有人帮着看看吗!!!?
2008-09-28 10:32
along5117
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-9-27
收藏
得分:0 
添加这个不掉用数据库的就很正常:
<script type="text/javascript">
imgUrl1="images/01.jpg";
imgtext1="蔬菜广告创意01"
imgLink1=escape("http://www.);
imgUrl2="images/02.jpg";
imgtext2="蔬菜广告创意02"
imgLink2=escape("http://www.);
imgUrl3="images/03.jpg";
imgtext3="蔬菜广告创意03"
imgLink3=escape("http://www.);
imgUrl4="images/04.jpg";
imgtext4="蔬菜广告创意04"
imgLink4=escape("http://www.);
imgUrl5="images/05.jpg";
imgtext5="蔬菜广告创意05"
imgLink5=escape("http://www.);

 var focus_width=206
 var focus_height=190
 var text_height=20
 var swf_height = focus_height+text_height
 
 var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
 
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#c5c5c5">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('</object>');
 </script>
2008-09-30 11:30
快速回复:菜鸟求救!一个关于flash图片轮翻广告的困惑!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015480 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved