国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > ThinkPHP > 正文

ThinkPHP中自定義錯誤頁面和提示頁面

2024-09-09 15:19:40
字體:
來源:轉載
供稿:網友
  1. <html> 
  2. <head> 
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  4. <title>提示消息 - ThinkPHP</title> 
  5.  
  6. <style type="text/css"
  7. body { font: 75% Arail; text-align: center; } 
  8. #notice { width: 300px; background: #FFF; border: 1px solid #BBB; background: #EEE; padding: 3px; 
  9. position: absolute; left: 50%; top: 50%; margin-left: -155px; margin-top: -100px; } 
  10. #notice div { background: #FFF; padding: 30px 0 20px; font-size: 1.2em; font-weight:bold } 
  11. #notice p { background: #FFF; margin: 0; padding: 0 0 20px; } 
  12. a { color: #f00} a:hover { text-decoration: none; } 
  13. </style> 
  14. </head> 
  15. <body> 
  16. <div id="notice"
  17. <div style="width:100%;text-align:left;padding-left:10px;padding-right:10px"
  18. <?php echo $e['message']; ?> 
  19. </div> 
  20. <p style="font: italic bold 2cm cursive,serif; color:red"
  21. × 
  22. </p> 
  23.  
  24. <p> 
  25. 在( <span id="sec" style="color:blue;font-weight:bold">3</span> )秒后自動跳轉,或直接點擊 <a href="javascript:window.location='<?php echo __APP__;?>'">這里</a> 跳轉<br> 
  26. <span style="display:block;text-decoration:underline;cursor:pointer;line-height:25px" onclick="stop(this)">停止</span> 
  27. </p> 
  28. </div> 
  29. <script> 
  30. var seco=document.getElementByIdx_x("sec"); 
  31. var time=3; 
  32. var tt=setInterval(function(){ 
  33. time--; 
  34. seco.innerHTML=time; 
  35. if(time<=0){ 
  36. window.location='<?php echo __APP__;?>' 
  37. return
  38. }, 1000); 
  39. function stop(obj){ 
  40. clearInterval(tt); 
  41. obj.style.display="none"
  42. </script> 
  43. </body> 
  44. </html> 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 盐池县| 沂水县| 望都县| 清河县| 沽源县| 甘孜县| 襄垣县| 凯里市| 永登县| 普兰县| 河北省| 梧州市| 老河口市| 安顺市| 夹江县| 香格里拉县| 桑日县| 共和县| 江油市| 佛山市| 瑞金市| 包头市| 玉田县| 贵港市| 台山市| 革吉县| 台北市| 辛集市| 深州市| 临高县| 永昌县| 延长县| 西宁市| 巴楚县| 杂多县| 无棣县| 周至县| 哈密市| 巴里| 普兰县| 漯河市|