求助document.getElementById("").innerHTML的问题
我的代码在IE7下能显示,可是在Firefox不能显示,请帮我解决一下,在网站找了一些资料,还没未能解决
附代码:
<!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>
<body>
<table width="222" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
<tr>
<td height="26" background="images/lmbg.gif" class="td2">
会员登录</td>
</tr>
</table>
<table width="222" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td height="100" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5">
</td>
</tr>
</table>
<!-- start -->
<div id="user_login"></div>
<!-- end -->
</td>
</tr>
</table>
<script language="javascript" type="text/javascript">
document.getElementById("user_login").innerHTML='<table width="100%" height="120" border="0" align="center" cellpadding="0" cellspacing="0"><form name="login" method="post" action=""><tr align="center"><td width="60" height="30">帐号:</td><td width="160"><input name="UserName" id="UserName" type="text" class="input1" size="15"></td></tr><tr align="center"><td height="30">密码:</td><td><input name="Password" id="Password" type="Password" class="input1" size="15"></td></tr><tr align="center"><td height="30" colspan="2"><a href="javascript:login();"><img src="images/login1.gif" border="0"></a> <a href="join.aspx" target="_blank"><img src="images/reg.gif" border="0"></a></td></tr><tr><td> </td><td><img src="images/wh.gif" width="14" height="11"><a href="/forgetPassword.aspx" class="s03" target="_blank">忘记密码了?</a></td></tr></form></table>';
</script>
</body>
</html>