success.jsp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%
  4. String base = pageContext.getSession().getServletContext().getContextPath();
  5. String resources = base+"/"+"static";
  6. request.setAttribute("base", base);
  7. request.setAttribute("resources", resources);
  8. %>
  9. <!DOCTYPE html>
  10. <html>
  11. <head lang="en">
  12. <meta charset="UTF-8">
  13. <title>操作返回</title>
  14. </head>
  15. <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/css/success.css"/>
  16. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery-1.7.2.min.js"></script>
  17. <script type="text/javascript">
  18. $(function(){
  19. $("#jishi").html(4);
  20. daojishi();
  21. });
  22. var t;
  23. var i = 4;
  24. function daojishi(){
  25. var url = $("#url").val();
  26. i--;
  27. $("#jishi").html(i);
  28. if(i<=0){
  29. i=4;
  30. window.location.href=url;
  31. clearTimeout(t);
  32. return;
  33. }
  34. t = setTimeout("daojishi()",1000);
  35. }
  36. </script>
  37. <body>
  38. <div style="text-align: center;">
  39. <input type="hidden" id="url" value="${url }"/>
  40. <div class="success">
  41. <span class="yes"></span>
  42. <div class="up">
  43. <p>操作成功,请点击...</p>
  44. <p><span id="jishi" style="color:#008DE5;font-size:20px;">3</span>&nbsp;秒后自动跳转到<a href="${url }">${title } ...</a></p>
  45. </div>
  46. <div class="down">
  47. <a href="${url }">${title }</a>
  48. <div class="cl"></div>
  49. </div>
  50. </div>
  51. </div>
  52. </body>
  53. </html>