首页 > PHP资讯 > PHP培训技术 > ThinkPHP中自定义错误页面和提示页面

ThinkPHP中自定义错误页面和提示页面

PHP培训技术
  1.  
  2.  
  3. "Content-Type" content="text/html; charset=utf-8" /> 
  4. 提示消息 - ThinkPHP 
  5.  
  6. "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.  
  14.  
  15.  
  16. "notice"
  17. "width:100%;text-align:left;padding-left:10px;padding-right:10px"
  18. echo $e['message']; ?> 
 
  • "font: italic bold 2cm cursive,serif; color:red"
  • × 
  •  
  •  
  •  

  • 在( "sec" style="color:blue;font-weight:bold">3 )秒后自动跳转,或直接点击   跳转
     
  • "display:block;text-decoration:underline;cursor:pointer;line-height:25px" onclick="stop(this)">停止 
  •  
  •  
  • 《script》 
  • var seco=document.getElementByIdx_x("sec"); 
  • var time=3; 
  • var tt=setInterval(function(){ 
  • time--; 
  • seco.innerHTML=time; 
  • if(time<=0){ 
  • window.location='' 
  • return
  • }, 1000); 
  • function stop(obj){ 
  • clearInterval(tt); 
  • obj.style.display="none"
  • 《script》 
  •  
  •  
  • 上一篇:到底如何选择PHP框架?Yii、ThinkPHP、laravel、CI.
    下一篇:ThinkPHP中Ajax返回

    PHP培训技术

    本文由欣才IT学院整理发布,未经许可,禁止转载。
    支持14不支持0