Top.jsp~655~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:8k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="../WEB-INF/Letter.tld" prefix="l" %>
- <script type="text/javascript">
- function Search(){
- var form = document.getElementById("form1");
- form.action = "<%=request.getContextPath()%>/Index.do?todo=SearchIndex";
- form.submit();
- }
- function CreateMenu(obj,id){
- var url = '<%=request.getContextPath()%>/Index.do?todo=ShowMenu&key=' + id;
- var xmlhttp;
- if(typeof XMLHttpRequest == "undefined" && window.ActiveXObject){
- xmlhttp = new ActiveXObject("Microsoft.xmlHTTP");
- }else{
- xmlhttp = new XMLHttpRequest();
- }
- xmlhttp.open("post",url,true);
- xmlhttp.onreadystatechange = function(){
- CreateMenu_CallBack(xmlhttp,obj,id);
- };
- xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
- xmlhttp.send(null);
- }
- function ShowMenu(obj,id){
- if(document.getElementById("F" + id) != null){
- document.getElementById("F" + id).style.display = "";
- }else{
- CreateMenu(obj,id);
- }
- }
- function CreateMenu_CallBack(xmlhttp,obj,id){
- if(xmlhttp.readyState == 4){
- if(xmlhttp.status == 0){
- }else if(xmlhttp.status == 200 && xmlhttp.statusText == "OK"){
- var al = eval(xmlhttp.responseText);
- var top = getTop(obj);
- var left = getLeft(obj);
- var fdiv = document.createElement("div");
- fdiv.id = "F" + id;
- fdiv.style.cssText = "";
- for(var i=0;i<al.length;i++){
- var div = document.createElement("div");
- div.style.cssText = "width:82px;height:20px;font-size:12px;background:#F4F4E1;text-align:center;";
- div.innerHTML = "<a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&fMenuID=" + al[i].fId + "&cMenuID=" + al[i].cId + "" class="Div_Links">" + al[i].name + "</a>";
- fdiv.appendChild(div);
- }
- fdiv.onmouseout = function(){
- HidMenu(id);
- };
- fdiv.onmouseover = function(){
- ShowMenu(obj,id);
- };
- document.getElementById("form1").appendChild(fdiv);
- fdiv.style.left = left;
- fdiv.style.top = top + 21;
- fdiv.style.position = "absolute";
- }
- }
- }
- function HidMenu(obj,id){
- var div = document.getElementById("F" + id);
- if(div != null){
- div.style.display = "none";
- }else{
- CreateMenu(obj,id);
- }
- }
- function getTop(e){
- var t = e.offsetTop
- while(e = e.offsetParent){
- t += e.offsetTop;
- }
- return t;
- }
- function getLeft(e){
- var l = e.offsetLeft
- while(e = e.offsetParent){
- l += e.offsetLeft;
- }
- return l;
- }
- </script>
- <table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="86" rowspan="2"><img src="<%=request.getContextPath()%>/images/Index_Symbol.jpg" width="86" height="79" alt="" /></td>
- <td width="212"><img src="<%=request.getContextPath()%>/images/Index_Symbol_Word.jpg" width="153" height="48" alt="" /></td>
- <td width="542" valign="bottom" style="padding:0 0 5px 190px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="30%">
- <a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndex&Language=EN'><l:out CNLetter="English" ENLetter="英文版"/></a> |
- <a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndex&Language=CN'><l:out CNLetter="中文版" ENLetter="Chinese"/></a> </td>
- <td width="70%"><table width="262" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="66" class="LoginTitle"><l:out CNLetter="站内搜索" ENLetter="Search"/>:</td>
- <td width="170"><input name="condition" type="text" class="input" /></td>
- <td width="26"><img src="<%=request.getContextPath()%>/images/home_06.gif" width="26" height="17" alt="" onclick="Search();" /></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndex"><img src="<%=request.getContextPath()%>/images/Index_Home.jpg" width="62" height="21" border="0" alt="" /></a></td>
- <td><a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="QYXXCN" ENLetter="QYXXEN" />'><img id="menu01" onmouseover="ShowMenu(this,'QYXX');" onmouseout="HidMenu(this,'QYXX');" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu01.jpg" width="82" height="21" border="0" alt="" /></a></td>
- <td><a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="QYWHCN" ENLetter="QYWHEN" />'><img id="menu02" onmouseover="ShowMenu(this,'QYWH');" onmouseout="HidMenu('QYWH')" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu02.jpg" width="79" height="21" border="0" alt="" /></a></td>
- <td><a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="XWGGCN" ENLetter="XWGGEN" />"><img id="menu03" onmouseover="ShowMenu(this,'XWGG');" onmouseout="HidMenu('XWGG')" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu03.jpg" width="80" height="21" border="0" alt="" /></a></td>
- <td><a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="GDTDCN" ENLetter="GDTDEN" />'><img id="menu04" onmouseover="ShowMenu(this,'GDTD');" onmouseout="HidMenu('GDTD')" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu04.jpg" width="76" height="21" border="0" alt="" /></a></td>
- <td><a href='<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="SCJYCN" ENLetter="SCJYEN" />'><img id="menu05" onmouseover="ShowMenu(this,'SCJY');" onmouseout="HidMenu('SCJY')" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu05.jpg" width="75" height="21" border="0" alt="" /></a></td>
- <td><a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="LLZYCN" ENLetter="LLZYEN" />"><img id="menu06" onmouseover="ShowMenu(this,'LLZY');" onmouseout="HidMenu('LLZY')" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu06.jpg" width="72" height="21" border="0" alt="" /></a></td>
- <td><a href=""><img src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu07.jpg" width="72" height="21" border="0" alt="" /></a></td>
- <td><a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="WZDTCN" ENLetter="WZDTEN" />"><img id="menu07" src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu08.jpg" width="73" height="21" border="0" alt="" /></a></td>
- <td><a href="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&key=<l:out CNLetter="LXWMCN" ENLetter="LXWMEN" />"><img src="<%=request.getContextPath()%>/<l:out CNLetter="images" ENLetter="enImages" />/Index_Menu09.jpg" width="75" height="21" border="0" alt="" /></a></td>
- <td><img src="<%=request.getContextPath()%>/images/Index_Menu_Last.jpg" width="8" height="21" alt="" /></td>
- </tr>
- <tr>
- <td colspan="11"><img src="<%=request.getContextPath()%>/images/Index_Menu_Down.jpg" width="754" height="10" alt="" /></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="840" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:5px;">
- <tr>
- <td height="3" bgcolor="A40000"></td>
- </tr>
- </table>