Js树在IE里面正常,在火狐下面不显示,附HTML源码,和JS 代码
js和html.rar
(4.09 KB)
我对于js接触的很少,本来以为是CSS的问题,但是把css去掉之后仍然是在IE里面可以显示,在火狐里面不能显示
<table width="93%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td> <span id="LblTree"><script language="javascript" type="text/jscript"> ImgDir = "leftimage/"; SetFolderIcon("desktop.gif");treeMenuAddItem(0, " 系统功能操作菜单"); SetFolderIcon(); var MenuColor=top.MenuColor; var MenuTextColor="#000000"; treeMenuAddItem(1, "系统管理"); treeMenuAddItem(2, "部门管理", "System/DeptManage.aspx?moduid=2", document.getElementById("tabWin"),"l4.gif"); treeMenuAddItem(2, "用户管理", "System/User.aspx?moduid=3", document.getElementById("tabWin"),"l4.gif"); treeMenuAddItem(2, "角色管理", "System/Role.aspx?moduid=4", "tabWin","l4.gif"); treeMenuAddItem(2, "菜单管理", "System/MenuGL.aspx?moduid=5", "tabWin","l4.gif"); treeMenuAddItem(2, "参数设置", "System/ParamSet.aspx?moduid=120", "tabWin","l4.gif"); treeMenuAddItem(1, "出差管理"); treeMenuAddItem(2, "出差管理", "Comod/TypeManage.aspx?moduid=18", "tabWin","l4.gif"); treeMenuAddItem(1, "项目管理"); treeMenuAddItem(2, "项目管理", "Services/ServiceGuest.aspx?moduid=130", "tabWin","l4.gif"); treeMenuAddItem(1, "计划日志"); treeMenuAddItem(2, "日志管理", "PSLog/LogManage.aspx?moduid=140", "tabWin","l4.gif"); treeMenuAddItem(2, "月计划管理", "MPlan/MPLanManage.aspx?moduid=144", "tabWin","l4.gif"); treeMenuAddItem(2, "季度计划管理", "JPlan/MPLanManage.aspx?moduid=146", "tabWin","l4.gif"); treeMenuAddItem(2, "年计划管理", "YPlan/MPLanManage.aspx?moduid=148", "tabWin","l4.gif"); treeMenuAddItem(1, "员工管理"); treeMenuAddItem(2, "员工设置", "Wage/Staff.aspx?moduid=150", "tabWin","l4.gif"); treeMenuAddItem(2, "职务管理", "Wage/WorkTitle.aspx?moduid=151", "tabWin","l4.gif"); treeMenuAddItem(1, "个人设置"); treeMenuAddItem(2, "修改密码", "System/EditUserPas.aspx", "tabWin","l4.gif"); </script> <script language="JavaScript" type="text/jscript"> initializeDocument(); </script> </span> </td> </tr> </table> <!----------------------------------MENU END----------------------------------> </td> </tr> <tr> <td> </td> </tr> </table>这个是你的源文件,一般来说,<Script>文件是放在body前面的.用来设置和定义脚本语言,编译时可转换运行语言.如果是这样的话,那就是楼主调用文件的时候位置有误而导致的!检测看看!