新微赢技术网

标题: [求助]我写的脚本那里出错了? [打印本页]

作者: ████    时间: 2010-1-17 07:52
标题: [求助]我写的脚本那里出错了?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>imageError</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<base target="_self">
</HEAD>
<script language="JavaScript">
var bannerAD=new Array();
var adNum=0;
bannerAD[0]=20060907163648.jpg;
bannerAD[1]=20060907164815.jpg;
bannerAD[2]=20060907165743.jpg;
bannerAD[3]=20060907170744.jpg;
</script>
<script language=javascript>
function initImg()
{
Error.scr="imaError/"+bannerAD[0];
}
function upImg()
{
if(adNum==0)
{
document.upBtu.disabled="disabled";
}
else
{
document.Error.scr="imaError/"+bannerAD[adNum];
adNum=adNum-1;
}
}

function downImg()
{
if(adNum==bannerAD.length-1)
{
document.downBtu.disabled="disabled";
}
else
{
document.Error.scr="imaError/"+bannerAD[adNum];
adNum=adNum+1;
}
}
</script>
<body MS_POSITIONING="GridLayout">
<div>
<p><img name="Error" src="imaError/20060907163648.jpg"> </p>
<table width="30%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><input type="button" name="upBtu" value="上一页" onClick="upImg()"></td>
<td><input type="button" name="downBtu" value="下一页" onClick="downImg()"></td>
<td><select name="select">
</select>
</td>
<td><input type="submit" name="Submit3" value="提交"></td>
</tr>
</table>
</div>
</body>
</HTML>




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2