零测集 线性变换:请大家帮我看下这个程序哪里错了,请帮忙改下

来源:百度文库 编辑:高校问答 时间:2024/04/27 16:42:05
<html>
<head>
<title>innerHTML and innerText properties</title>
<style type=text/css>
<!--
h1{font-size:15pt;font-weight:bold;font-family:"Comic Sans MS",Arial,sans-serif}
.small {font-size:12pt;font-weight:400;color:RED}
-->
</style>
<script type=text/javascript>
<!--
function setGroupLabelAsText(form){
var content = form.textInput.value;
if(content){
document.getElementById("label1").innerText = content;
}
}
function setGrounpLabelAsHTML(form){
var content = form.HTMLInput.value;
if(content){
document.getElementById("label1").innerHTML=content;
}
}
-->
</script>
</head>
<body>
<form>
<p ><input type="text" name="HTMLInput" value="333" size="50" />
<input type="button" value="Change Heading HTML" onclick="setGrounpLabelAsHTML(this.form)"/></p>
<p><input type="text" name="textInput" value=" fffffffff" size="50" class="small"/>
<input type="button" value="Change Heading Text" onclick="setGrounpLabelAsText(this.form)"/></p>
</form>
<h1 id="label1">
ARTICLE I
</h1>
<p >Congress shall make no law respecting an establishment of religion, or
speech,or of the press; or the right of the people peaceably to
assemblem,and to petition the government for a redress of grievances.</p>
</body>
</html>