如何判断Text1.value
热门软件下载:
如何判断当text1.value值大于某值时停止运行??
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<script language="javascript">
<!--
function img1_onclick()
{
text1.value= text1.value/1 + 1;
img1.src = text1.value + ".jpg";
}
//-->
</script>
</head>
<body ms_positioning="gridlayout">
<font face="宋体"><input id="text1" style="z-index: 101; left: 234px; visibility: hidden; position: absolute; top: 236px" type="text" name="text1" value="1">
<img id="img1" style="z-index: 102; left: 8px; position: absolute; top: 8px" alt="" src="1.jpg" language="javascript" onclick="return img1_onclick()"></font>
</body>
</html>
推荐阅读
<script language="javascript">
<!--
function img1_onclick()
{
text1.value= text1.value/1 + 1;
if(text1.value<=10)
{img1.src = text1.value + ".jpg";}
else {return false;}
}
//-->
</script>
相关评论