Y_Top.jsp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <%-------------------------------------------鼠标提示信息ajax------------------------------------%>
  2. <script type="text/javascript">
  3. function quanxian(){
  4. alert('无此权限,如有疑问请和管理员联系');
  5. }
  6. var myInfoXmlHttp;
  7. //创建联接
  8. function myInfocreateXmlHttpRequest(){
  9. //根据不同浏览器创建
  10. if(window.ActiveXObject){
  11. myInfoXmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  12. }else if(window.XMLHttpRequest){
  13. myInfoXmlHttp=new XMLHttpRequest();
  14. }
  15. }
  16. //拼提交语句
  17. function myInfoXmlHttpCreateQueryString(){
  18. //防止缓存
  19. var queryString="timeStamp="+new Date().getTime();
  20. return queryString;
  21. }
  22. function myInfoXmlHttpDoRequest(id){
  23. myInfocreateXmlHttpRequest();
  24. var queryString="/yuntong/y_getInfo.do?infoid="+id+"&";
  25. queryString=queryString+myInfoXmlHttpCreateQueryString();
  26. //状态改变时
  27. myInfoXmlHttp.onreadystatechange=myInfoStateChange;
  28. myInfoXmlHttp.open("get",queryString,true);
  29. myInfoXmlHttp.send(null);
  30. }
  31. function myInfoStateChange(){
  32. if(myInfoXmlHttp.readyState==4){
  33. //alert(xmlHttp.status+"");
  34. if(myInfoXmlHttp.status==200){
  35. myInfoParseResults();
  36. }
  37. }
  38. }
  39. //更新
  40. function myInfoParseResults(){
  41. //如果没有提示信息返回
  42. if(document.getElementById("Y_tishi")==null){
  43. return;
  44. }
  45. var divid=document.getElementById("Y_tishi");
  46. //如果有子接点
  47. if(divid.hasChildNodes()){
  48. divid.removeChild(divid.childNodes[0]);
  49. }
  50. //创建新接点
  51. var text=document.createTextNode(myInfoXmlHttp.responseText);
  52. divid.appendChild(text);
  53. //divid.innerHTML=myInfoXmlHttp.responseText;
  54. }
  55. </script>
  56. <%-------------------------------------------鼠标提示信息ajax------------------------------------%>
  57. <%@ page language="java" pageEncoding="UTF-8"%>
  58. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  59. <c:if test="${sessionScope.userLoginInfo==null}">
  60. <c:set var="ckerror" value="请先合法登陆!" scope="session"></c:set>
  61. <jsp:forward page="/y_GoLoginPage.do"></jsp:forward>
  62. </c:if>
  63. <table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=1 WIDTH="984" HEIGHT="91" BACKGROUND="/yuntong/picture/topbk.jpg" >
  64. <tr>
  65. <td width="733" background="/yuntong/picture/header.jpg" >
  66. </td>
  67. <td>
  68. <font style="font-size:x-small" color="#fffaed"><br><br>
  69. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#804060">当前用户:${sessionScope.userLoginInfo.userName} </
  70. </font>
  71. </td>
  72. </tr>
  73. </table>