<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script language="JavaScript" type="text/JavaScript" >
function todown(){
alter("禽兽来了");
document.getElementById("one").value=document.getElementById("one").value-1;
}
function toup(){
alter("世界和平");
document.getElementById("one").value=document.getElementById("one").value+1;
}
</script>
<body>
<input type="button" value="-" onclick="todown();"/><br/>
<input type="text" value="1" id="one"/><br/>
<input type="button" value="+" onclick="toup();"/><br/>
</body>
</html>
看来很久,没有问题啊!!但是就是简单的功能都不能实现!!
很久没有写了,大家帮帮看看,哪里错了!!谢谢
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script language="JavaScript" type="text/JavaScript" >
function todown(){
alter("禽兽来了");
document.getElementById("one").value=document.getElementById("one").value-1;
}
function toup(){
alter("世界和平");
document.getElementById("one").value=document.getElementById("one").value+1;
}
</script>
<body>
<input type="button" value="-" onclick="todown();"/><br/>
<input type="text" value="1" id="one"/><br/>
<input type="button" value="+" onclick="toup();"/><br/>
</body>
</html>
看来很久,没有问题啊!!但是就是简单的功能都不能实现!!
很久没有写了,大家帮帮看看,哪里错了!!谢谢