花魁直播高品质美女在线视频互动社区 - 花魁直播官方版

 歡迎來到素材無憂網(wǎng),按 + 收藏我們
登錄 注冊(cè) 退出 找回密碼

超漂亮DEDECMS提示框樣式修改美化

時(shí)間: 2019-05-13 10:30 閱讀: 作者:素材無憂網(wǎng)

提示:個(gè)人建議還是在適當(dāng)?shù)牡胤奖A鬌EDECMS的版權(quán)信息,以支持dedecms管理系統(tǒng)更好的發(fā)展!
修改:include/common.func.php
第178-255行
覆蓋以下代碼:
 
  1. function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)
  2. {
  3.     if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';
  4.     $htmlhead  = "<html>\r\n<head>\r\n<title>織夢(mèng)CMS 友情提示</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n";
  5.     $htmlhead .= "
  6.     <base target='_self'/>\r\n
  7.     <style>
  8. html,body,h2,p,p,img{margin:0;padding:0;list-style:none;border:none;font-size:12px;}
  9. a:link,a:visited,a:active{text-decoration:none;font-family:Tahoma,Geneva,sans-serif;}a:hover{text-decoration:underline;}
  10. body{text-align:center;font-family:Tahoma,Geneva,sans-serif;background:#000000;background:#000000\9;padding-bottom:25px;_background:url(about:black) no-repeat fixed;}
  11. html{_background:url(about:black) no-repeat fixed;}
  12. .ts_p{width:500px;overflow:hidden;margin:0 auto;margin-top:150px;border:1px solid #E9E9E9;border-radius:3px;}
  13. .ts_p h2{text-align:left;color:#666;border-bottom:1px dotted #ccc;padding-bottom:10px;font-size:12px;}
  14. .ts_p p{line-height:70px;background:url({$GLOBALS['cfg_plus_dir']}/img/ts_bg.png) no-repeat 0 center;margin:10px auto;font-size:14px;text-align:left;text-indent:70px;}
  15. .ts_border{border:7px solid #efefef;}
  16. .ts_b2{background:#fff;border:1px solid #E9E9E9;padding:10px 20px 10px 20px;}
  17. .ts_tz{margin:10px auto;text-align:right;width:500px;color:#666;}
  18. .ts_tz a{color:#f30;}
  19.     </style>
  20.     </head>\r\n<body style=\"background:#f7f7f7;\">".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n<center>\r\n<script>\r\n";
  21.     $htmlfoot  = "</script>\r\n</center>\r\n</body>\r\n</html>\r\n";
  22.  
  23.     $litime = ($limittime==0 ? 1000 : $limittime);
  24.     $func = '';
  25.  
  26.     if($gourl=='-1')
  27.     {
  28.         if($limittime==0) $litime = 5000;
  29.         $gourl = "javascript:history.go(-1);";
  30.     }
  31.  
  32.     if($gourl=='' || $onlymsg==1)
  33.     {
  34.         $msg = "<script>alert(\"".str_replace("\"","“",$msg)."\");</script>";
  35.     }
  36.     else
  37.     {
  38.         //當(dāng)網(wǎng)址為:close::objname 時(shí), 關(guān)閉父框架的id=objname元素
  39.         if(preg_match('/close::/',$gourl))
  40.         {
  41.             $tgobj = trim(preg_replace('/close::/', '', $gourl));
  42.             $gourl = 'javascript:;';
  43.             $func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n";
  44.         }
  45.         
  46.         $func .= "      var pgo=0;
  47.       function JumpUrl(){
  48.         if(pgo==0){ location='$gourl'; pgo=1; }
  49.       }\r\n";
  50.         $rmsg = $func;
  51.         $rmsg .= "document.write(\"<p class='ts_p'>";
  52.         $rmsg .= "<p class='ts_border'><p class='ts_b2'>'<h2>織夢(mèng)CMS提示</h2>\");\r\n";
  53.         $rmsg .= "document.write(\"<p>\");\r\n";
  54.         $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n";
  55.         $rmsg .= "document.write(\"</p></p></p></p>\");\r\n";
  56.         $rmsg .= "document.write(\"";
  57.         
  58.         if($onlymsg==0)
  59.         {
  60.             if( $gourl != 'javascript:;' && $gourl != '')
  61.             {
  62.                 $rmsg .= "<p class='ts_tz'>如果瀏覽器沒有自動(dòng)跳轉(zhuǎn),請(qǐng)<a href='{$gourl}'>點(diǎn)擊這里</a></p>";
  63.                 $rmsg .= "\");\r\n";
  64.                 $rmsg .= "setTimeout('JumpUrl()',$litime);";
  65.             }
  66.             else
  67.             {
  68.                 $rmsg .= "<br/></p>\");\r\n";
  69.             }
  70.         }
  71.         else
  72.         {
  73.             $rmsg .= "<br/><br/></p>\");\r\n";
  74.         }
  75.         $msg  = $htmlhead.$rmsg.$htmlfoot;
  76.     }
  77.     echo $msg;
  78. }
然后下載附件中的圖片。

懶人覆蓋方法,下載common.func.rar附件。解壓后直接覆蓋到include文件夾

common.func.rar


版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!

轉(zhuǎn)載請(qǐng)注明: 超漂亮DEDECMS提示框樣式修改美化

標(biāo)簽: $gourl  
相關(guān)文章
模板推薦