请大家看一下html哪错了为什么调用不了javascript正确的该咋写

来源:百度知道 编辑:UC知道 时间:2024/05/27 12:09:43
<!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>
</head>
<script language="JavaScript">
<!--
function chang(c)
{

document.body.bgcolor=c;
}-->
</script>
<body>
<input type="radio" name="1" value="red" onclick="chang('red')"/>红色
<input type="radio" name="1" value="green" onclick="chang(

<!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>
</head>
<script language="JavaScript">
<!--
function chang(c)
{
document.body.bgColor=c;
}
-->
</script>
<body>
<input type="radio" name="1" value="red" onclick="chang('#FF0066')"/>红色
<input type="radio" name="1" value="green" oncl