<script type="text/javascript"><!--
//more javascript from http://www.smallrain.netvar pic_width=260 //图片宽度var pic_height=205 //图片高度var text_height=20 //文字高度var swfpath = 'img/picviewer.swf' //swf文件路径地址var swf_height = pic_height+text_height<%
dim rs1,sql,i,pp,li,tex
sql = "select * from news where new_icot = '1' ORDER BY new_id DESC"
set rs1 = bk.execute(sql)
i=0
do while not rs1.eof<>0 and i<3
pp[i]=""&rs1("new_ico1")&""
li[i]=""&rs1("new_id")&""
tex[i]=""&rs1("new_name")&""
i=i+1
rs1.MoveNext
loop
%>var pics=''"+pp[0]+"'|'"+pp[1]+"'|'"+pp[2]+"''var links=''"+li[0]+"'|'"+li[1]+"'|'"+li[2]+"''var texts=''"+tex[0]+"'|'"+tex[1]+"'|'"+tex[2]+"''document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><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+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');//--> </script>
这段代码中的这段输出:
<%
dim rs1,sql,i,pp,li,tex
sql = "select * from news where new_icot = '1' ORDER BY new_id DESC"
set rs1 = bk.execute(sql)
i=0
do while not rs1.eof<>0 and i<3
pp[i]=""&rs1("new_ico1")&""
li[i]=""&rs1("new_id")&""
tex[i]=""&rs1("new_name")&""
i=i+1
rs1.MoveNext
loop
%>var pics=''"+pp[0]+"'|'"+pp[1]+"'|'"+pp[2]+"''var links=''"+li[0]+"'|'"+li[1]+"'|'"+li[2]+"''var texts=''"+tex[0]+"'|'"+tex[1]+"'|'"+tex[2]+"''
我不知道可不可以这样
总是报错。说类型不匹配
请帮改改
//more javascript from http://www.smallrain.netvar pic_width=260 //图片宽度var pic_height=205 //图片高度var text_height=20 //文字高度var swfpath = 'img/picviewer.swf' //swf文件路径地址var swf_height = pic_height+text_height<%
dim rs1,sql,i,pp,li,tex
sql = "select * from news where new_icot = '1' ORDER BY new_id DESC"
set rs1 = bk.execute(sql)
i=0
do while not rs1.eof<>0 and i<3
pp[i]=""&rs1("new_ico1")&""
li[i]=""&rs1("new_id")&""
tex[i]=""&rs1("new_name")&""
i=i+1
rs1.MoveNext
loop
%>var pics=''"+pp[0]+"'|'"+pp[1]+"'|'"+pp[2]+"''var links=''"+li[0]+"'|'"+li[1]+"'|'"+li[2]+"''var texts=''"+tex[0]+"'|'"+tex[1]+"'|'"+tex[2]+"''document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><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+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');//--> </script>
这段代码中的这段输出:
<%
dim rs1,sql,i,pp,li,tex
sql = "select * from news where new_icot = '1' ORDER BY new_id DESC"
set rs1 = bk.execute(sql)
i=0
do while not rs1.eof<>0 and i<3
pp[i]=""&rs1("new_ico1")&""
li[i]=""&rs1("new_id")&""
tex[i]=""&rs1("new_name")&""
i=i+1
rs1.MoveNext
loop
%>var pics=''"+pp[0]+"'|'"+pp[1]+"'|'"+pp[2]+"''var links=''"+li[0]+"'|'"+li[1]+"'|'"+li[2]+"''var texts=''"+tex[0]+"'|'"+tex[1]+"'|'"+tex[2]+"''
我不知道可不可以这样
总是报错。说类型不匹配
请帮改改
解决方案 »
- jquery选择器
- jsp ssh项目:
- 请问取beizhu字段的内容传递到doit(yxs1)函数的参数中,输入beizhu字段的内容如是单行的那么程序运行正常,如输入时用回车换行了,则函数
- 急急急急非常急~~~帮帮忙啊
- 动态定义(不是绑定)JS事件内容,求教有什么好的思路么?
- 如何创建一个自定义的对象,此对象的属性里含有另一自定义对象?
- 有关网页内容检查的script的问题,烦请指教
- 这个问题大家帮帮忙吧
- listbox的简单问题!!!
- 用jQuery中的mouseEnter控制asp中Timer控件的开关,不好使。求大神看看哪有问题
- 求一本javascript入门的中文好书!!!!!!
- jsp初学者,遇到500错误,急等解决
dim rs1,sql,i,pp,li,tex
sql = "select * from news where new_icot = '1' ORDER BY new_id DESC"
set rs1 = bk.execute(sql)
i=0
do while not rs1.eof<>0 and i<3
pp[i]=""&rs1("new_ico1")&""
li[i]=""&rs1("new_id")&""
tex[i]=""&rs1("new_name")&""
i=i+1
rs1.MoveNext
loop
%>这是.NET语言么?没见过
如果是服务器语言,它的变量声明和脚本是两回事