87,910
社区成员
发帖
与我相关
我的任务
分享
以前这么写没问题
<TR>
<TD align=middle width="100%" style="height:24px;line-height:24px;"> <A
onClick="return initguide('addBedroom.html')" href="#"
>添加寝室信息</A> </TD>
</TR>
现在这么写 就不能触发事件
<li><A onClick="initguide('addBedroom.html')" href="#">添加寝室信息</A></li>
<!---->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>寝室管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<link style="text/css" href="images/style.css" rel="stylesheet" />
<!-- Add-On Settings -->
<script type="text/JavaScript">
qmad=new Object();qmad.bvis="";qmad.bhide="";
/******* Menu 0 Add-On Settings *******/
var a = qmad.qm0 = new Object();
// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 15;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 2;
a.tree_expand_step_size = 15;
a.tree_collapse_animation = 3;
a.tree_collapse_step_size = 20;
</script>
<!-- Core QuickMenu Code -->
<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style><script type="text/javascript">qmad=new Object();qmad.bvis="";qmad.bhide="";</script>
<!-- Add-On Settings -->
<script type="text/JavaScript">
/******* Menu 0 Add-On Settings *******/
var a = qmad.qm0 = new Object();
// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 15;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 2;
a.tree_expand_step_size = 15;
a.tree_collapse_animation = 3;
a.tree_collapse_step_size = 20;
</script>
<!-- Core QuickMenu Code -->
<SCRIPT language=javascript type=text/javascript>
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu")
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
function killErrors() {
return true;
}
window.onerror = killErrors;
</SCRIPT>
</head>
<body scroll="no" onkeydown="keyCodes('menu',event);">
<DIV id=menubg style="display:none"></DIV>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2" height="80" valign="top">
<div id="header">
<div class="logo fl">
<div class="png"><a href="#"></a></div>
<div class="lun">
<a href="">华奥软件</a>
–
<a href="">寝室管理</a></div>
<!--重点导航-->
<!--头部信息导航-->
<!--头部信息导航结束-->
</div>
</td></tr>
<tr><td valign="top" id="main-fl">
<div id="left">
<H1>常用选项</H1>
<div style="border-bottom:1px solid #91c900;color:#376585; z-index:1; position:absolute; padding-top:20px; width:75px"> </div>
<div style="padding-top:20px"><br> </div>
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="javascript:void(0);" style="height:24px">寝室管理</a>
<ul>
<li> <A href="javascript:display('seleBdiv')">查看寝室信息</A> </li>
<li><A onClick="initguide('addBedroom.html')" href="#">添加寝室信息</A></li>
</ul>
</li>
<li><a class="qmparent" href="javascript:void(0);">房间管理</a>
<ul>
<li><A
onClick="return initguide('addroom.html')" href="#">房间信息管理</A>
</li>
</ul></li>
<li><a class="qmparent" href="javascript:void(0);">床位管理</a>
<ul>
<li><A href="javascript:display('selebadDiv')">查看床位信息</A> </li>
<li><A onClick="return initguide('addcw.html')" href="#" >添加床位信息</A></li>
</ul></li>
<li><a class="qmparent" href="javascript:void(0);">学生入住</a>
<ul>
<li> <A onClick="return initguide('???????????')" href="#">XXXXXXX</A></li>
<li><A onClick="return initguide('???????????')" href="#" >XXXXXXX</A></li>
</ul></li>
<li class="qmclear"> </li></ul>
<!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click ('all', 'main' or 'lev2'), Right to Left, Horizontal Subs, Flush Left, Flush Top) -->
<script type="text/javascript">qm_create(0,true,0,500,'all',false,false,false,false);</script>
<!--@华奥S2 80802班-->
</div>
<td valign="top" id="mainright">
<!--右边开始-->
<iframe id="mian" src="" name="main" width="100%" height="100%" frameborder="0" scrolling="yes" style=" overflow:visible"></iframe>
</td>
</tr>
</table>
<iframe name="notice" frameborder="0" style="height:0;width:0;" ></iframe>
<div id="menu" style="display:none"></div><div id="showmenu" style="display:none"></div>
<script language="JavaScript">
function initguide(url)
{
alert();
document.getElementById('mian').src=url;
return true;
}
function closes(id)
{
document.getElementById(id).style.display="none";
document.getElementById("menubg").style.display="none";
if(id=='seleBdiv')
{
return true;
}
if(id=='selebadDiv')
{
return true;
}
}
function close(id)
{
document.getElementById(id).style.display="none";
document.getElementById("menubg").style.display="none";
}
function display(id)
{
document.getElementById(id).style.display="";
document.getElementById("menubg").style.display="";
}
</script>
<jsp:include page="divselectB.jsp" />
<jsp:include page="divselectbed.jsp" />
</body>
</html>
<!---->
<li><A onClick="alert('aaa');" href="#">添加寝室信息</A></li>
就连这么写都没反应