a327979517 2015-03-19 11:04 采纳率: 0%
浏览 2874
已结题

Syntax error on token"if",(expected adfer 求个大神来解答下

 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <title>后台管理工作平台</title>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/chili-1.7.pack.js"></script>
    <script type="text/javascript" src="js/jquery.easing.js"></script>
    <script type="text/javascript" src="js/jquery.dimensions.js"></script>
    <script type="text/javascript" src="js/jquery.accordion.js"></script>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->

    <STYLE type="text/css">
        A:link { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
        A:visited { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
        A:hover { COLOR: #006CD9; FONT-SIZE: 12px; TEXT-DECORATION: none}
        BODY { 
            margin:0px;
            padding:0px;
            font-size: 12px;
        }
        TD { FONT-SIZE: 12px; line-height: 150%}
    </style>
    <script language="JavaScript">
    <!--
    function showitem(id,name)
    {
        return ("<span><a href='"+id+"' target='rightFrame'>"+name+"</a></span><br>")
    }
    function switchoutlookBar(number)
    {
     var i = outlookbar.opentitle;
     outlookbar.opentitle=number;
     var id1,id2,id1b,id2b
     if (number!=i && outlooksmoothstat==0){
      if (number!=-1)
      {
       if (i==-1){
        id2="blankdiv";
        id2b="blankdiv";
       }
       else{
        id2="outlookdiv"+i;
        id2b="outlookdivin"+i;
        document.all("outlooktitle"+i).style.border="1px none navy";
        document.all("outlooktitle"+i).style.background=outlookbar.maincolor;
        document.all("outlooktitle"+i).style.color="#ffffff";
        document.all("outlooktitle"+i).style.textalign="center";
       }
       id1="outlookdiv"+number
       id1b="outlookdivin"+number
       document.all("outlooktitle"+number).style.border="1px none white";
       document.all("outlooktitle"+number).style.background=outlookbar.maincolor; //title
       document.all("outlooktitle"+number).style.color="#ffffff";
       document.all("outlooktitle"+number).style.textalign="center";
       smoothout(id1,id2,id1b,id2b,0);
      }
      else
      {
       document.all("blankdiv").style.display="";
       document.all("blankdiv").sryle.height="100%";
       document.all("outlookdiv"+i).style.display="none";
       document.all("outlookdiv"+i).style.height="0%";
       document.all("outlooktitle"+i).style.border="1px none navy";
       document.all("outlooktitle"+i).style.background=outlookbar.maincolor;
       document.all("outlooktitle"+i).style.color="#ffffff";
       document.all("outlooktitle"+i).style.textalign="center";
      }
     }
    }
    function smoothout(id1,id2,id1b,id2b,stat)
    {
     if(stat==0){
      tempinnertext1=document.all(id1b).innerHTML;
      tempinnertext2=document.all(id2b).innerHTML;
      document.all(id1b).innerHTML="";
      document.all(id2b).innerHTML="";
      outlooksmoothstat=1;
      document.all(id1b).style.overflow="hidden";
      document.all(id2b).style.overflow="hidden";
      document.all(id1).style.height="0%";
      document.all(id1).style.display="";
      setTimeout("smoothout('"+id1+"','"+id2+"','"+id1b+"','"+id2b+"',"+outlookbar.inc+")",outlookbar.timedalay);
     }
     else
     {
      stat+=outlookbar.inc;
      if (stat>100)
       stat=100;
      document.all(id1).style.height=stat+"%";
      document.all(id2).style.height=(100-stat)+"%";
      if (stat<100)
       setTimeout("smoothout('"+id1+"','"+id2+"','"+id1b+"','"+id2b+"',"+stat+")",outlookbar.timedalay);
      else
      {
       document.all(id1b).innerHTML=tempinnertext1;
       document.all(id2b).innerHTML=tempinnertext2;
       outlooksmoothstat=0;
       document.all(id1b).style.overflow="auto";
       document.all(id2).style.display="none";
      }
     }
    }
    function getOutLine()
    {
     outline="<table "+outlookbar.otherclass+">";
     for (i=0;i<(outlookbar.titlelist.length);i++)
     {
      outline+="<tr><td name=outlooktitle"+i+" id=outlooktitle"+i+" ";
      if (i!=outlookbar.opentitle)
       outline+=" nowrap align=center style='cursor:hand;background-color:"+outlookbar.maincolor+";color:#ffffff;height:20;border:1 none navy' ";
      else
       outline+=" nowrap align=center style='cursor:hand;background-color:"+outlookbar.maincolor+";color:white;height:20;border:1 none white' ";
      outline+=outlookbar.titlelist[i].otherclass
      outline+=" onclick='switchoutlookBar("+i+")'><span class=smallFont>";
      outline+=outlookbar.titlelist[i].title+"</span></td></tr>";
      outline+="<tr><td name=outlookdiv"+i+" valign=top align=center id=outlookdiv"+i+" style='width:100%"
      if (i!=outlookbar.opentitle)
       outline+=";display:none;height:0%;";
      else
       outline+=";display:;height:100%;";
      outline+="'><div name=outlookdivin"+i+" id=outlookdivin"+i+" style='overflow:auto;width:100%;height:100%'>";
      for (j=0;j<outlookbar.itemlist[i].length;j++)
       outline+=showitem(outlookbar.itemlist[i][j].key,outlookbar.itemlist[i][j].title);
      outline+="</div></td></tr>"
     }
     outline+="</table>"
     return outline
    }
    function show()
    {
     var outline;
     outline="<div id=outLookBarDiv name=outLookBarDiv style='width=100%;height:100%'>"
     outline+=outlookbar.getOutLine();
     outline+="</div>"
     document.write(outline);
    }
    function theitem(intitle,instate,inkey)
    {
     this.state=instate;
     this.otherclass=" nowrap ";
     this.key=inkey;
     this.title=intitle;
    }
    function addtitle(intitle)
    {
     outlookbar.itemlist[outlookbar.titlelist.length]=new Array();
     outlookbar.titlelist[outlookbar.titlelist.length]=new theitem(intitle,1,0);
     return(outlookbar.titlelist.length-1);
    }
    function additem(intitle,parentid,inkey)
    {
     if (parentid>=0 && parentid<=outlookbar.titlelist.length)
     {
      outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length]=new theitem(intitle,2,inkey);
      outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length-1].otherclass=" nowrap align=left style='height:5' ";
      return(outlookbar.itemlist[parentid].length-1);
     }
     else
      additem=-1;
    }
    function outlook()
    {
     this.titlelist=new Array();
     this.itemlist=new Array();
     this.divstyle="style='height:100%;width:100%;overflow:auto' align=center";
     this.otherclass="border=0 cellspacing='0' cellpadding='0' style='height:100%;width:100%'valign=middle align=center ";
     this.addtitle=addtitle;
     this.additem=additem;
     this.starttitle=-1;
     this.show=show;
     this.getOutLine=getOutLine;
     this.opentitle=this.starttitle;
     this.reflesh=outreflesh;
     this.timedelay=50;
     this.inc=10;
     this.maincolor = "#336699"
    }
    function outreflesh()
    {
     document.all("outLookBarDiv").innerHTML=outlookbar.getOutLine();
    }
    function locatefold(foldname)
    {
     if (foldname=="")
      foldname = outlookbar.titlelist[0].title
     for (var i=0;i<outlookbar.titlelist.length;i++)
     {
      if(foldname==outlookbar.titlelist[i].title)
      {
       outlookbar.starttitle=i;
       outlookbar.opentitle=i;
      }
     }
    }
    var outlookbar=new outlook();
    var tempinnertext1,tempinnertext2,outlooksmoothstat
    outlooksmoothstat = 0;

    var t;
    <s:iterator value="#menus" id="menu">
        <s:if test="(modules==null)">
            t>=outlookbar.addtitle('${name}')
        </s:if>
        <s:else>
            outlookbar.additem('${name}',t,'${url}')
        </s:else>
    </s:iterator>
    //-->
    </script>   
  </head>
   <body>
<table id=mnuList style="WIDTH:147px;HEIGHT: 100%" cellspacing=0 cellpadding=0 align=center border=0>
 <tr>
  <td bgcolor=#F0F0E5 id=outLookBarShow style="HEIGHT: 100%" valign=top align=middle name="outLookBarShow">
   <script language="JavaScript">
   <!--
   locatefold("")
   outlookbar.show()
   //-->
   </script>
  </td>
 </tr>
</table>

  </body>
</html>


  • 写回答

6条回答

  • a327979517 2015-03-19 11:06
    关注
    <s:iterator value="#menus" id="menu">
        <s:if test="(modules==null)">
            t>=outlookbar.addtitle('${name}')
        </s:if>
        <s:else>
            outlookbar.additem('${name}',t,'${url}')
        </s:else>
    </s:iterator>
    //-->
    </script>   
    






    <br> &lt;!--<br> locatefold(&quot;&quot;)<br> outlookbar.show()<br> //--&gt;<br> 以上是出错部分代码</p>
    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB怎么通过柱坐标变换画开口是圆形的旋转抛物面?
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿