急求一个产品展示的代码,有大图小图 有产品介绍

cntaosheng 2009-05-12 04:58:40
急求一个产品展示的代码,
两行两列
第一行 左边是大图显示 右边是 产品的介绍
第二行是产品的略缩图滚动 ,点击 略缩图 大图显示,可最后左右移动 。
产品介绍是不变的。

在线等 非常感谢
...全文
564 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
cntaosheng 2009-05-14
  • 打赏
  • 举报
回复
谢谢了
改div+ css 成了
也谢谢 楼上的
ltly_2009 2009-05-14
  • 打赏
  • 举报
回复
shenzhenNBA
正解,
自己整理一下吧
cntaosheng 2009-05-13
  • 打赏
  • 举报
回复

看了
不是我想要的
给你10分吧 谢谢你的帮助
最好是div+css的
如果是其他的 只要效果好看也可以
cntaosheng 2009-05-13
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 xiaojing7 的回复:]
http://bbs.blueidea.com/thread-2838236-1-1.html
??
[/Quote]
看了 貌似不是我想要的 谢谢你了
cntaosheng 2009-05-13
  • 打赏
  • 举报
回复
没谁能帮忙下吗?
guizhoumen 2009-05-13
  • 打赏
  • 举报
回复
用pageadmin企业网站管理系统
shenzhenNBA 2009-05-12
  • 打赏
  • 举报
回复
ASP部分的假如:数据库为ACCESS数据库,
你的产品信息表product的字段结构如下:
pid ProductName BigPic ProductDescription

保存产品的图片信息的表ProductPic字段结构如下:
recid pid ProductPicName


简易的ASP代码如下:注意数据库的路径要放对
===================================================================

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>产品展示</title>
</head>

<body>
<%
dim db,strconn,rs,rs2,xsql,sql2,pid
strconn="DBQ="+server.mappath("你的路径/你的数据库名称.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set db=server.CreateObject("ADODB.CONNECTION")
on error resume next
db.open strconn

pid=trim(request("pid"))
'获取产品的ID号,对应的product表的pid字段,注意pid的数据类型要一致,可以据你需要的修改,建议为自动增加的整型
xsql="select * from product where pic="&pid
set rs=server.createobject("adodb.recordset")
rs.open xsql,db,1,1

%>
<table border="0">
<tr>
<td><img src="<%=rs.fields("BigPic").value%>"></td>
<td><%=rs.fields("ProductName").value%><br><%=rs.fields("ProductDescription").value%></td>
</tr>
<tr>
<td colspan="2">
<marquee direction="right" style="margin:0px; padding:0px; width=100%; overflow:hidden;" scrollamount="2" onmouseover="this.stop()"; onmouseout="this.start()">
<%
xsql2="select * from ProductPic where pid="&id
set rs2=server.createobject("adodb.recordset")
rs2.open xsql,db,1,1
if rs2.bof and rs2.eof then
response.write "该产品还没有图片"
else
do while not rs2.eof
'---------------------START:图片连接----------------
response.write "<a title=点击放大 href=你的图片路径/"
response.write rs2.fields("ProductPicName").value
response.write ">"
'------START:显示图片------
response.write "<img border=0 width=你设定缩略图的宽度 height=你设定缩略图的高度 src="
response.write rs2.fields("ProductPicName").value
response.write ">"
'------END:显示图片--------
response.write "</a> "
'---------------------END:图片连接-----------------
rs2.movenext
loop

%>
</marquee>
</td>
</tr>
</table>
<%
rs.close
set rs=nothing
rs2.close
set rs2=nothing
db.close
set db=nothing
%>
<!--其他部分-->

</body>
</html>

想有分加...呵呵...
xiaojing7 2009-05-12
  • 打赏
  • 举报
回复
http://bbs.blueidea.com/thread-2838236-1-1.html
??
cntaosheng 2009-05-12
  • 打赏
  • 举报
回复
有没有人能帮帮 忙

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧