注册 登录
编程论坛 ASP技术论坛

ASP首页调用SQL数据库图片不显示

cqy701 发布于 2010-06-01 20:43, 544 次点击
<script>
titleBgPosition=2
var swf_width="230"
var swf_height="140"   
var files='<%=(h1.Fields.Item("hpic").Value)%>|<%=(h2.Fields.Item("hpic").Value)%>|<%=(h3.Fields.Item("hpic").Value)%>'
var links='<%=(h1.Fields.Item("hurl").Value)%>|<%=(h2.Fields.Item("hurl").Value)%>|<%=(h3.Fields.Item("hurl").Value)%>'
var texts='<%=(h1.Fields.Item("hmc").Value)%>|<%=(h2.Fields.Item("hmc").Value)%>|<%=(h3.Fields.Item("hmc").Value)%>'
document.write('<object classid="clsid:d27cdb6e-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+swf_width+'"height="'+swf_height+'">');
document.write('<param name="movie" value="swf.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="flashvars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&menu="false""quality="high" width="'+swf_width+'"height="'+swf_height+'" type="application/x-shockwave-flash"pluginspage="http://www.');
document.write('</object>');
      </script>
 
以上为首页幻灯片显示的代码,但运行后图片位置出现叉号,查看源文件,红色代码部分为:var links='||'
请问是怎么回事
 
4 回复
#2
cnfarer2010-06-02 08:02
说明hurl字段的值没取到(hurl存放的是链接地址吧?)
#3
2010-06-02 09:01
应该是属于 OLE Object 的一种吧?
坦白说,我不是很懂,
但是觉得把图片全部放在Database 里面很象不是很好。

可能,太多图片可能会影响database 的运作?
#4
cqy7012010-06-02 14:15
关键是我又不要静态的,我要在后台更新图片资料.
#5
cqy7012010-06-05 21:23
没有高手能详细帮我解答一下么?
1