高手帮帮忙 崩溃了- -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<script for="botton1" event= "onclick" language="vbscript">
dim salary,miuns,tax
function tax()
document.fr.submit
miuns=s1.value
salary=miuns-1600
if salary>=100000 then
tax=(salary-100000)*0.45+(25+150+450+3000+5000+6000+7000+8000)
else if salary>=80000 then
tax=(salary-80000)*0.40+(25+150+450+3000+5000+6000+7000)
else if salary>=60000 then
tax=(salary-60000)*0.35+(25+150+450+3000+5000+6000)
else if salary>=40000 then
tax=(salary-40000)*0.30+(25+150+450+3000+5000)
else if salary>=20000 then
tax=(salary-20000)*0.25+(25+150+450+3000)
else if salary>=5000 then
tax=(salary-5000)*0.20+(25+150+450)
else if salary>=2000 then
tax=(salary-2000)*0.15+(25+150)
else if salary>=500 then
tax=(salary-500)*0.10+25
else if salary>=0 then
tax=salary*0.05
else if then
tax=0
end if
tax=s2.value
miuns-tax=s3.value
end function
</script>
<form name="fr" method="post" action="#" >
<p>工资: <input oncinname="s1" type="text" size="20"/></p>
<p><input type="submit" name="button1" value="计算" onclick="tax()"/></p>
<p>税款:<input type="text" value="&s2&" size="20"/></p>
<p>税后:<input type="text" value="&s3&" size="20"/></p>
<p><input name="botton2" type="reset" value="重置" /></p>
</form>
</body>
</html>
[[it] 本帖最后由 走一圈 于 2008-10-1 22:53 编辑 [/it]]