我正在做一个车辆管理的,其中涉及到了图片。已经将图片上传上去,图片是上传保存在文件夹中。一条车辆信息,可以上传多张图片。图片的相关信息是存在另外一张表中。
在信息所有车辆信息的GridView里的每一行,我想增加一个按钮查看该车辆的所有图片。
跳转到另外一个页面,这个页面一次只显示一张图片,有前翻和后翻可以翻阅图片。这样的页面该怎么写,我刚接触NET,请大家赐教
在信息所有车辆信息的GridView里的每一行,我想增加一个按钮查看该车辆的所有图片。
跳转到另外一个页面,这个页面一次只显示一张图片,有前翻和后翻可以翻阅图片。这样的页面该怎么写,我刚接触NET,请大家赐教
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body onload="setTimeout('elady1_nextAd()', 5000)">
<div> <script language="JavaScript" type="text/javascript">
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;
e_tplink[0]="#";
e_tp[0]="images/pic2.jpg"; e_tplink[1]="#";
e_tp[1]="images/pic3.jpg"; e_tplink[2]="#";
e_tp[2]="images/pic4.jpg"; e_tplink[3]="#";
e_tp[3]="images/pic5.jpg"; e_tplink[4]="#";
e_tp[4]="images/pic6.jpg"; e_tplink[5]="#";
e_tp[5]="images/pic7.jpg"; function elady1_set()
{
if (document.all)
{
document.all.e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
document.all.e_tprotator.filters.revealTrans.apply();
}
}
function elady1_playCo()
{
if (document.all)
document.all.e_tprotator.filters.revealTrans.play()
}
function elady1_nextAd()
{
if(adNum_elady1<e_tp.length-1)
adNum_elady1++;
else
adNum_elady1=0;
elady1_set();
document.images.e_tprotator.src=e_tp[adNum_elady1];
elady1_playCo();
theTimer=setTimeout("elady1_nextAd()", 4000);
}
function elady1_linkurl()
{
jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank';
if (jumpUrl != '')
{
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
function elady1_listMsg()
{
status=e_tplink[adNum_elady1];
document.returnValue = true;
} </script> <div id='elady1_divimg' style='position: relative'>
<a onmouseover="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()"
target="_self">
<img style="filter: revealTrans(duration=2,transition=20)" height="125" src="images/pic1.jpg"
width="151" border="0" name="e_tprotator"></a>
</div>
</div>
</body>
</html>
select top 1 * from Tb_Image where 1=1 and XTBH<5 order by AddTime desc
select top 1 * from Tb_Image where 1=1 and XTBH>5 order by AddTime
通过按钮查询上一张下张图片
,在页面显示
或用js实现图片翻转
http://www.zainanbao.com