幻灯片中的图片 链接数据库

本文介绍了一种使用Flash技术实现的动态焦点图展示组件。该组件通过JavaScript动态加载后台获取的数据,能够展示最多五张轮播图片,并附带图片链接及描述文字。适用于网站内容的动态展示,提升了用户体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<table width="345" height="290" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="280" align="center" class="jiaodian"><a target="_self" href="javascript:goUrl()"> <span class="f14b">
      <script type="text/javascript">

<%dim sql,rs,strimg,rsimg,imgpath,i
sql="select top 5 * from Sys_new where typeid=4 and visible=1 order by contentorder "
set rs=objdb.runsql_return_rs(sql)
ImgPath=GetImagesCat(4,rs("contentid"),ObjDB,strImg,rsImg)
for i=1 to rs.recordcount
%>

     
imgUrl<%=i%>="./uploadfile/menu/<%=ImgPath%>";
imgtext<%=i%>="<%=rs("contentname")%>"
imgLink<%=i%>=escape("#");

<%
rs.movenext
next
rs.close
set rs=nothing
%>

 

 var focus_width=345
 var focus_height=270
 var text_height=18
 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.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="focus.swf"><param name="quality" value="high"><param name="wmode" value="transparent" />');
 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('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" 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>
    </span></a><span id="focustext" class="f14b"> </span> </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"></td>
  </tr>
</table>

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值