html中JAVASCRIPT问题

来源:百度知道 编辑:UC知道 时间:2024/06/27 15:40:09
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function openwindow( ){
window.status="系统当前状态:你正在注册用户.......";
if(window.screen.width==1024 && window.screen.height==768)
window.open("2222.html");
else
window.alert("请设置分辨率为1024×768,然后再打开");
}
function closewindow(){
if (window.confirm("你确认要推出系统吗?"))
window.close();
}
</script>

</head>

<body bgcolor="#cccccc">
<table border="0" align="center" bgcolor="#ffffff">
<tr>
<td><img src="0.jpg"></td></tr>
<tr><td>
<img src="1.jpg" align="top">
<input type="b

你的括号有的是中文的。你把下面这个复制过去即可。我已经修正过了。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function openwindow(){
alert('a');
window.status="系统当前状态:你正在注册用户.......";
if(window.screen.width==1024 && window.screen.height==768)
window.open("2222.html");
else
window.alert("请设置分辨率为1024×768,然后再打开");
}
function closewindow(){
if (window.confirm("你确认要推出系统吗?"))
window.close();
}
</script>

</head>

<body bgcolor="#cccccc">
<table border="0" align="center" bgcolor="#ffffff">
<tr>
<td><img src="0.jpg"></td></tr>
<tr><td>
<img src="1.jpg" align