JS 图片三行五列平铺效果
来源:互联网 发布:矩阵一致性检验 编辑:程序博客网 时间:2024/05/17 00:16
<!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>
<title></title>
<script language="javascript" type="text/javascript">
// 定时器
var timeDelay;
// 图片自动浏览时的时间间隔
var timeInterval = 8000;
//中间滚动图片dt
var Imagedt;
//中间滚动图片数组
var Imageimage;
//中间滚动图片序号
var ImageNum;
function LoadMiddleImage() {
var ds = AjaxMethod.GetMiddlePhoto().value;
if (ds) {
Imagedt = ds.Tables[0];
Imageimage = new Array();
for (var i = 0; i < Imagedt.Rows.length; i++) {
Imageimage.push(Imagedt.Rows[i].DefaultPicUrl);
}
var ImageimagePreload = new Array();
for (var i = 0; i < Imageimage.length; i++) {
ImageimagePreload[i] = new Image();
ImageimagePreload[i].src = Imageimage[i];
}
ImageNum = -1;
Image_auto();
}
}
function Image_auto() {
ImageNum++;
document.getElementById("img1").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
document.getElementById("img2").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
document.getElementById("img3").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
document.getElementById("img4").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
document.getElementById("img5").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img6").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img7").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img8").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img9").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img10").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img11").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img12").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img13").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img14").src = Imageimage[ImageNum];
ImageNum %= Imageimage.length;
ImageNum++;
timeDelay = setTimeout("Image_auto()", timeInterval);
document.getElementById("img15").src = Imageimage[ImageNum];
ImageNum++;
}
</script>
</head>
<body>
<table style="width:665px;height:170px;" cellpadding="5px" cellspacing="5px">
<tr>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img1" alt="" src="scenery/1.jpg" width="250px"height="200px"/>" </td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img2" alt="" src="scenery/2.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;"> <img id="img3" alt="" src="scenery/3.jpg" width="250px"height="200px"/> /></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;"> <img id="img4" alt="" src="scenery/4.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img5" alt="" src="scenery/5.jpg" width="250px"height="200px"/></td>
</tr>
<tr>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img6" alt="" src="scenery/6.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img7" alt="" src="scenery/7.jpg"width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img8" alt="" src="scenery/8.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img9" alt="" src="scenery/9.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img10" alt="" src="scenery/10.jpg" width="250px"height="200px"/></td>
</tr>
<tr>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img11" alt="" src="scenery/11.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img12" alt="" src="scenery/12.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img13" alt="" src="scenery/13.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img14" alt="" src="scenery/14.jpg" width="250px"height="200px"/></td>
<td style="border-style: solid; border-width: 1px; text-align:center; vertical-align:middle;">
<img id="img15" alt="" src="scenery/15.jpg" width="250px"height="200px"/></td>
</tr>
</table>
</body>
</html>
- JS 图片三行五列平铺效果
- Android 图片平铺效果bitmap
- Android 图片平铺效果bitmap
- Android 图片平铺效果bitmap
- Android 图片水平平铺效果
- Delphi给图片添加平铺水印效果
- UIImage 的图片平铺实现效果
- 图片平铺
- 平铺图片
- android程序中怎么图片的实现平铺效果
- 设置Bitmap平铺效果
- ImageView的平铺效果
- div+css三行三列
- div+css三行+三列
- 用js 给Repeater每三行加一张图片,3组图片循环
- 如何平铺图片
- android图片平铺
- 20100918_Dawning_图片平铺
- 优秀程序员无他,善假于物也
- JS table 创建相册
- AppCan VS PhoneGap - 对比两大移动开发平台
- MFC原创:三层架构03(人事管理系统)源程序发布 .
- 解读高德纳:最伟大计算机程序员是如何诞生的
- JS 图片三行五列平铺效果
- 引入jQUERY
- 《C++ primer》第9章 顺序容器
- Qt实现复杂的列表控件
- (转)基于PhoneGap与Java开发的Android应用的性能对比
- Hud 敌兵布阵 --线段树的插点问线
- 常用java排序
- JS Radio 改变图片轮换
- 10步让你成为更优秀的程序员