asp代码点击图片链接无法进入他站
发布网友
发布时间:2022-04-24 19:21
我来回答
共3个回答
热心网友
时间:2023-10-06 23:17
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('<param name="FlashVars" value="pics='+pics+'&links='+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+'&links='+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" />');
试试看
热心网友
时间:2023-10-06 23:18
do while not db.eof
pics=pics&"|"&db("tupian")
piclinks=piclinks&"|"&db("lianjie")
texts=texts&"|"&db("biaoti")
db.moveNext
i=i+1
loop
##########输出的数据结果错误##########
我写过一个相同功能函数给你参考!!!!
<% sub Show_FlashPic(classname,Num,Flag) %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<% sql="select top "&Num&" Url,Img,Title from [ATP] where Flag='"&Flag&"' and delflag=False order by OrderFlag asc"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn2,1,1
if rs.eof and rs.bof then
response.write "<tr><td>"
response.write "对不起,请您先到系统后台添加文章。"
response.write "</td></tr>"
else
%> <tr><td valign="top">
<%
i=0
pics = rs("Img")
links= rs("Url")
texts= rs("Title")
i=i+1
rs.movenext
do while not rs.eof
pics=pics & "|" & rs("Img")
links=links & "|" & rs("Url")
texts=texts & "|" & rs("Title")
i=i+1
if i>=Num then exit do
rs.movenext
if rs.eof then exit do
loop
rs.close
set rs=nothing
%>
<script type="text/javascript">
<!--
var focus_width=430
var focus_height=240
var text_height=15
var swf_height = focus_height+text_height
var a = "center"
var b = "b"
var pics='<%=pics%>'
var links='<%=links%>'
var texts='<%=texts%>'
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain">');
document.write('<param name="movie" value="flashpic/flashpic.swf">');
document.write('<param name="quality" value="high">');
document.write('<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='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&a='+a+'&isb='+b+'">');
document.write('<embed src="flashpic/flashpic.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&a='+a+'&isb='+b+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
--></script><% end if %></td></tr></table>
<%end sub%>
########还有问题hi我###########
热心网友
时间:2023-10-06 23:18
//var pics=""
//var piclinks=""
//var texts=""
第一个是路径
第二个是连接
第三个是文字
这样 先定义一个 字符串变量 的 pics 和 piclinks 试验一次
如果图片显示出来了 表示数据库 没有读出来 或者读出来的类型不对
可以 先屏蔽部分调用 逐步试验