0

我在 jsp 文件上有一段 javascript 代码,当我在 tomcat 服务器上运行它时它不起作用!!我不知道为什么,也没有出现错误。当我将它保存在html中并打开时,没关系,但是在tomcat中运行html时,什么也没有显示。这是代码:

   <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="stmenu.js"></script></head>
<body>
<div>
<script type="text/javascript">

stm_bm(["phpjchr",970,"","blank.gif",0,"","",0,0,0,0,500,0,0,0,"","",0,0,1,1,"default","hand","",1,25],this);
stm_bp("p0",[1,4,0,0,1,5,0,0,100,"progid:DXImageTransform.Microsoft.Checkerboard(squaresX=16,squaresY=16,direction=right,enabled=0,Duration=0.40)",10,"",-2,70,2,10,"#e8e8e8","transparent","",0,0,0,"#00B55A"]);
stm_ai("p0i0",[0,"aaa","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#abe271",1,"#abe271",1,"bg_15.gif","bg_20.gif",3,3,0,0,"#00cc00","#00cc00","#003333","#006600","bold 11pt B  Nazanin","bold 11pt B Nazanin",0,0,"","","","",0,0,0],255,36);
stm_aix("p0i1","p0i0",[0,"aaa","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#cccccc",1,"#cccccc",1,"bg_02.gif","bg_02.gif",3,3,0,0,"#cccccc","#999999"],255,0);
stm_aix("p0i2","p0i1",[0,"aaa"],255,0);
stm_aix("p0i3","p0i0",[0,"ddddd ","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#cccccc",1,"#cccccc",1,"bg_02.gif","bg_20.gif",3,3,0,0,"#cccccc","#999999","#003333","#006600","bold 11pt B  Nazanin","italic bold 11pt B Nazanin"],255,0);
stm_aix("p0i4","p0i3",[0,"dddd"],255,0);
stm_ep();
stm_em();

</script>

</p>
</div>
</body>
</html>
4

0 回答 0