| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 362 人关注过本帖
标题:asp显示数据图片的问题
只看楼主 加入收藏
hwc201411
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2010-8-10
结帖率:57.14%
收藏
已结贴  问题点数:20 回复次数:1 
asp显示数据图片的问题

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<SCRIPT src="js/ScrollPic.js" type=text/javascript></SCRIPT>
<style>
body{ font-size:12px;}
a{ color:#0033FF; text-decoration:none;}
.photo{clear:both;}
.photol, .photor{width:15px;}
.photoc{ width:920px; height:135px; background:url(images/photobgc.gif) left top repeat-x; overflow:hidden; }
.photoc ul{margin:8px 0; padding:0; list-style:none; height:120px; overflow:hidden;}
.photoc li{ float:left;width:160px;text-align:center;}
.photoc li img{ border:1px solid #CCC; padding:2px;}
.photo .title{ height:25px; line-height:25px; margin:0 0 7px 0; padding-left:25px; background:url(images/alltitle.gif) left 0px no-repeat; font-size:14px;}
</style>
<div class="photo marginT" style="width:950px; margin:0 auto;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="photol" id="LeftArr"><img src="images/photobtl.gif" style="CURSOR: hand"/></td>
    <td class="photoc">
<ul id="ISL_Cont_1">
          <a href="products.asp?id=<%=rs("bookid")%>" ><img src="<%=trim(rs("bookpic"))%>" alt="<%=rs("bookname")%>" width="122" height="122" border="0" align="absmiddle" /></a>
    </ul>
</td>

    <td class="photor" id="RightArr"><img src="images/photobtr.gif" style="CURSOR: hand"/></td>
  </tr>
</table>
<SCRIPT language=javascript type=text/javascript>
        <!--//--><![CDATA[//><!--
        var scrollPic_02 = new ScrollPic();
        scrollPic_02.scrollContId   = "ISL_Cont_1"; //内容容器ID
        scrollPic_02.arrLeftId      = "LeftArr";//左箭头ID
        scrollPic_02.arrRightId     = "RightArr"; //右箭头ID

        scrollPic_02.frameWidth     = 920;//显示框宽度
        scrollPic_02.pageWidth      = 152; //翻页宽度

        scrollPic_02.speed          = 10; //移动速度(单位毫秒,越小越快)
        scrollPic_02.space          = 20; //每次移动像素(单位px,越大越快)
        scrollPic_02.autoPlay       = true; //自动播放
        scrollPic_02.autoPlayTime   = 2; //自动播放间隔时间(秒)

        scrollPic_02.initialize(); //初始化
                           
        //--><!]]>
</SCRIPT>
</div>
我从网上下个图片拉动代码,用红色那段代码显示我现在网站数据库的图片,但是只显示一张图片,而且没有那种效果
搜索更多相关主题的帖子: asp 数据 
2010-08-10 11:23
hams
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:18
帖 子:912
专家分:3670
注 册:2008-7-30
收藏
得分:20 
看一下你浏览器出来的HTML源代码

俺不高手,俺也是来学习的。
俺的意见不一定就对,当你不认同时请点忽视按钮。
当走到十字路口不知该如何走时,可在论坛问下路,但你若希望别人能一路把你送到目的地,显然是不现实的,因为别人也有自己要走的路。
2010-08-10 11:54
快速回复:asp显示数据图片的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016333 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved