tipss.php 1.9 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. </div>
  19. <p class="jump">
  20. 点击 <a title="点击跳转" id="href" href="<?php echo $tips["url"];?>">跳转</a> 等待时间: <b id="wait">30</b>。
  21. </p>
  22. </fieldset>
  23. </div>
  24. <script type="text/javascript">
  25. (function(){
  26. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  27. totaltime=parseInt(wait.innerHTML);
  28. var interval = setInterval(function(){
  29. var time = --totaltime;
  30. wait.innerHTML=""+time;
  31. if(time === 0) {
  32. location.href = href;
  33. clearInterval(interval);
  34. };
  35. }, 1000);
  36. })();
  37. </script>