千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
<HTML>
<HEAD>
<TITLE>Dynaimic Html</TITLE>
<script language=javascript>
function ChangeText()
{
document.all.MyHeading.style.color="read";------ 这里报错,说是没有这个属性
(all),例子是这么写的...
document.all.MyText.innerText="动态改变字体";
}
</script>
<META NAME="GENERATOR" Content="Microsoft Visual Studio">
<META HTTP-EQUIV="Content-Type" content="text/html">
</HEAD>
<BODY ms_positioning="GridLayout" onclick="ChangeText()">
<h3 id=MyHeading>动态html效果</h3>
<hr>
<p id=MyText>在窗口中任意处点击鼠标</p>
<table height=35 cellspacing=0 cellpadding=0 width=529 border=0
ms_2d_layout="TRUE">
<tr valign=top>
<td width=10 height=15></td>
<td width=519></td></tr>
<tr valign=top>
<td height=20></td>
<td>
<p>&nbsp;</p></td></tr></table>
</BODY>
</HTML>
<HEAD>
<TITLE>Dynaimic Html</TITLE>
<script language=javascript>
function ChangeText()
{
document.all.MyHeading.style.color="read";------ 这里报错,说是没有这个属性
(all),例子是这么写的...
document.all.MyText.innerText="动态改变字体";
}
</script>
<META NAME="GENERATOR" Content="Microsoft Visual Studio">
<META HTTP-EQUIV="Content-Type" content="text/html">
</HEAD>
<BODY ms_positioning="GridLayout" onclick="ChangeText()">
<h3 id=MyHeading>动态html效果</h3>
<hr>
<p id=MyText>在窗口中任意处点击鼠标</p>
<table height=35 cellspacing=0 cellpadding=0 width=529 border=0
ms_2d_layout="TRUE">
<tr valign=top>
<td width=10 height=15></td>
<td width=519></td></tr>
<tr valign=top>
<td height=20></td>
<td>
<p>&nbsp;</p></td></tr></table>
</BODY>
</HTML>