tips.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <style type="text/css">
  2. *{ padding: 0; margin: 0; }
  3. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  4. .system-message{ width:500px;height:auto; margin:auto;border:6px solid #999;text-align:center; position:relative;top:50px;}
  5. .system-message legend{font-size:24px;font-weight:bold;color:#999;margin:auto;width:100px;}
  6. .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  7. .system-message .jump{ padding-right:10px;height:25px;line-height:25px;font-size:14px;position:relative;bottom:0px;left:0px;background-color:#e6e6e1 ; display:block;width:490px;text-align:right;}
  8. .system-message .jump a{ color: #333;}
  9. .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 15px ;word-break:break-all;}
  10. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; }
  11. #href{color:gray;font-weight:bold;}
  12. </style>
  13. <div class="content">
  14. <fieldset class="system-message">
  15. <legend style="margin-left:20px;">提示信息</legend>
  16. <div style="text-align:left;padding-left:10px;height:auto;width:490px;">
  17. <p class="error"><?php echo $tips["title"].":".$tips["result"];?></p>
  18. <p class="error"><?php echo $tips["content"];?></p>
  19. </div>
  20. <p class="jump">
  21. 点击 <a title="点击跳转" id="href" href="<?php echo $tips["url"];?>">跳转</a> 等待时间: <b id="wait">30</b>。
  22. </p>
  23. </fieldset>
  24. </div>
  25. <script type="text/javascript">
  26. (function(){
  27. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  28. totaltime=parseInt(wait.innerHTML);
  29. var interval = setInterval(function(){
  30. var time = --totaltime;
  31. wait.innerHTML=""+time;
  32. if(time === 0) {
  33. location.href = href;
  34. clearInterval(interval);
  35. };
  36. }, 1000);
  37. })();
  38. </script>