关于ASP代码点击图片链接没有反应的问题 20
我在页面上有一段循环播放图片的代码,有链接,但是点击图片或标题后没有任何反应,不知道什么原因,请各位指点一下。代码如下:<scripttype=text/javascri...
我在页面上有一段循环播放图片的代码,有链接,但是点击图片或标题后没有任何反应,不知道什么原因,请各位指点一下。代码如下:
<script type=text/javascript>
<!--
var focus_width=206
var focus_height=190
var text_height=20
var swf_height = focus_height+text_height
//var pics=""
//var piclinks=""
//var texts=""
<%
set db=conn.execute("select top 5 * from [zixun] order by id desc")
i=0
do while not db.eof
pics=pics&"|"&db("tupian")
piclinks=piclinks&"|"&db("lianjie")
texts=texts&"|"&db("biaoti")
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.macromedia.com/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="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.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
我把代码中的“piclinks”都换成“links”就可以打开连接,但是用links和其他的代码冲突,无法打开网页,请各位指点一下,这段代码应该怎么改? 展开
<script type=text/javascript>
<!--
var focus_width=206
var focus_height=190
var text_height=20
var swf_height = focus_height+text_height
//var pics=""
//var piclinks=""
//var texts=""
<%
set db=conn.execute("select top 5 * from [zixun] order by id desc")
i=0
do while not db.eof
pics=pics&"|"&db("tupian")
piclinks=piclinks&"|"&db("lianjie")
texts=texts&"|"&db("biaoti")
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.macromedia.com/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="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.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
我把代码中的“piclinks”都换成“links”就可以打开连接,但是用links和其他的代码冲突,无法打开网页,请各位指点一下,这段代码应该怎么改? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询