激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

DEDECMS|帝國CMS|Discuz|PHPCMS|Wordpress|ZBLOG|ECSHOP|蘋果CMS|極致CMS|CMS系統(tǒng)|

服務(wù)器之家 - 建站程序 - DEDECMS - 織夢DEDECMS提示信息提示框美化

織夢DEDECMS提示信息提示框美化

2019-08-29 18:31dedehtml DEDECMS

你是否已經(jīng)看膩了織夢官方默認(rèn)的提示信息窗口?來,讓你的眼睛閃亮一下,質(zhì)感美化版的提示信息窗口來了! 提示效果 實(shí)現(xiàn)教程 打開 /include/common.func.php 找到 大概在278行的 function ShowMsg( { 中間代碼省略... } 把整個函數(shù)改成 functi

你是否已經(jīng)看膩了織夢官方默認(rèn)的提示信息窗口?來,讓你的眼睛閃亮一下,質(zhì)感美化版的提示信息窗口來了!

提示效果

織夢DEDECMS提示信息提示框美化

實(shí)現(xiàn)教程

打開 /include/common.func.php 找到 大概在278行的

  1. function ShowMsg( 
  2.     中間代碼省略... 

 

把整個函數(shù)改成

  1. function ShowMsg($msg$gourl$onlymsg=0, $limittime=0) 
  2.     if(emptyempty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'
  3.  
  4.     $htmlhead  = "<html>\r\n<head>\r\n<title>提示信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">\r\n<meta name=\"renderer\" content=\"webkit\">\r\n<meta http-equiv=\"Cache-Control\" content=\"no-siteapp\" />"
  5.     $htmlhead .= "<base target='_self'/>\r\n<style>div{line-height:160%;}</style></head>\r\n<body leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n<center>\r\n<script>\r\n"
  6.     $htmlfoot  = "</script>\r\n</center>\r\n</body>\r\n</html>\r\n"
  7.  
  8.     $litime = ($limittime==0 ? 1000 : $limittime); 
  9.     $func = ''
  10.  
  11.     if($gourl=='-1'
  12.     { 
  13.         if($limittime==0) $litime = 5000; 
  14.         $gourl = "javascript:history.go(-1);"
  15.     } 
  16.  
  17.     if($gourl=='' || $onlymsg==1) 
  18.     { 
  19.         $msg = "<script>alert(\"".str_replace("\"","“",$msg)."\");</script>"
  20.     } 
  21.     else 
  22.     { 
  23.         //當(dāng)網(wǎng)址為:close::objname 時, 關(guān)閉父框架的id=objname元素 
  24.         if(preg_match('/close::/',$gourl)) 
  25.         { 
  26.             $tgobj = trim(preg_replace('/close::/'''$gourl)); 
  27.             $gourl = 'javascript:;'
  28.             $func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n"
  29.         } 
  30.  
  31.         $func .= "      var pgo=0; 
  32.       function JumpUrl(){ 
  33.         if(pgo==0){ location='$gourl'; pgo=1; } 
  34.       }\r\n"; 
  35.         $rmsg = $func
  36.         $rmsg .= "document.write(\"<style>body{background:#F6F6F6}.tips-box{margin-top:50px;padding:0;width:450px;border:10px solid #E8E8E8;background:#fff;color:#444;font-family:微軟雅黑}.tips .title{margin:0 20px;padding:15px 0;border-bottom:1px dotted #DDD;text-align:left;font-size:15px}.tips .title p{padding-left:10px;height:18px;border-left:2px solid #268B26;font-weight:600;line-height:18px;margin: 0;}.tips .content{position:relative;padding:30px;height:120px;background:#fff;color:#666;font-size:15px}.tips .content p.tip{color:#999;font-size:1px}.tips .content a.go{display:block;margin:15px auto 0;padding:6px 10px;width:80px;border:1px solid #268B26;border-radius:3px;color:#268B26;text-decoration:blink;font-size:13px}.tips .content a:hover{background:#268B26;color:#fff}</style>\");\r\n;"
  37.         $rmsg .= "document.write(\"<div class='tips tips-box'>"
  38.         $rmsg .= "<div class='title'><p>提示信息</p></div>\");\r\n"
  39.         $rmsg .= "document.write(\"<div class='content'>\");\r\n"
  40.         $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n"
  41.         $rmsg .= "document.write(\""
  42.  
  43.         if($onlymsg==0) 
  44.         { 
  45.             if$gourl != 'javascript:;' && $gourl != ''
  46.             { 
  47.                 $rmsg .= "<a href='{$gourl}' class='go'>點(diǎn)擊跳轉(zhuǎn)</a>"
  48.                 $rmsg .= "<br/></div>\");\r\n"
  49.                 $rmsg .= "setTimeout('JumpUrl()',$litime);"
  50.             } 
  51.             else 
  52.             { 
  53.                 $rmsg .= "<br/></div>\");\r\n"
  54.             } 
  55.         } 
  56.         else 
  57.         { 
  58.             $rmsg .= "<br/><br/></div>\");\r\n"
  59.         } 
  60.         $msg  = $htmlhead.$rmsg.$htmlfoot
  61.     } 
  62.     echo $msg

完成!

注意:如果你有改過這個函數(shù),記得備份一個你的再嘗試!

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 国内久久久久 | 欧美激情在线播放 | 成人毛片在线 | 视频一区 在线 | 精品亚洲综合 | 九九热免费精品 | 国产一级在线看 | 一区二区久久电影 | 海角在线观看91一区二区 | 91看片在线观看视频 | 深夜毛片免费看 | 日本a大片 | 久久99精品国产99久久6男男 | 黄色av免费网站 | 欧美成人视 | 国产亚洲精品视频中文字幕 | 亚洲成人在线免费 | 国产成人av免费 | 亚欧在线免费观看 | 久啪视频 | 黄色网址你懂的 | 国产精品久久久久久久久粉嫩 | 深夜影院一级毛片 | 国产精品亚洲欧美一级在线 | 制服下着マ○コ航空5 | 国产色视频一区 | a视频网站 | 久久在现视频 | 欧美日韩精品不卡一区二区三区 | 久久99精品久久久久久久久久久久 | 污片视频网站 | 黄色网战入口 | 538任你躁在线精品视频网站 | www.54271.com| 在线播放免费av | 国产成人综合在线 | 国产亚洲精品视频中文字幕 | 日本爽快片100色毛片视频 | 欧美精品免费一区二区三区 | 亚洲精品永久视频 | 国产精品视频一区二区三区四 |