show.php 2.0 KB

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