鼠标离开事件!!在线等 谢谢
「已注销」 2008-12-13 09:55:34 <!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=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function price()
{
var num=document.myform.num.value;
var price=document.myform.price.value;
var last=num*price;
document.myform.price.value=last;
}
</script>
</head>
<body>
<form name="myform">
<input type="text" value="1" name="num" onblur="price()">
<input type="text" value="1" name="price">
</form>
</body>
</html>
很简单的一个计算价格 本来写在JSP页面中,但是老报错,无奈用HTML格式写写,也报错。原理应该没错啊~
求各位懂的大哥大姐们给个答案!!