织梦(dedecms)提示信息页样式修改方法

(dedecms)的一些跳转提示信息会出现“ 提示信息!”这几个字样。

很多朋友都想对他进行修改,改为自己网站的提示信息。

具体修改方法是编辑打开include/common.func.php文件,查找“DEDECMS”,你会发现有两次DEDECMS提示信息,在那两处提示信息的位置修改为你想要的提示信息即可。这样子,但是这样也只是改掉提示的,样式人家一看还是那样,大家还想改成自己的怎么办呢!如下图:

织梦(dedecms)提示信息页样式修改方法
 

方法是:

打开include/common.func.php。在178行左右,替换掉下面的代码,然后保存(记得备份)

function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0) 
{ 
    if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; 
   
    $htmlhead  = "<html>\r\n<head>\r\n<title>织梦吧提示信息</title>\r\n
        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n"; 
    $htmlhead .= "<base target='_self'/>\r\n<style> 
    .ts_div{width:500px;overflow:hidden;margin:0 auto;margin-top:150px;
        border:1px solid #E9E9E9;border-radius:3px;} 
    .ts_border{border:7px solid #efefef;} 
    .ts_b2{background:#fff;border:1px solid #E9E9E9;padding:10px 20px 10px 20px;} 
    .ts_div p{line-height:70px;background:url(/images/ts_bg.png) no-repeat 0 center;
        margin:10px auto;font-size:14px;text-align:left;text-indent:70px;} 
    .ts_tz{margin:10px auto;text-align:right;width:500px;color:#666;font-size:12px;} 
    .ts_tz a{color:#f30;}a.history{background:#fff url(/images/bga.png) no-repeat 0 -120px; 
        text-indent:-9999px;float:left;margin:-27px 0 0 115px;margin-top:-29px\9;display:inline;
        width:13px;height:15px}a:hover.history{background-position:-15px -120px;} 
    .wts{text-align:left;line-height:28px;padding:10px 0 0px 60px;font-size:12px;
        background:url(/images/ts_bg.png) no-repeat 0 center;color:#060}
    .wts a{color :#333;}ul#history em{display:block;margin-top:8px;color:#333;font-style:normal;
        text-indent:5px;}
      </style></head>\r\n
   <body leftmargin='0' topmargin='0'  color='#f7f7f7'>
   ".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n<center>\r\n<script>\r\n"; 
   $htmlfoot  = "</script>\r\n</center>\r\n</body>\r\n</html>\r\n"; 
   $litime = ($limittime==0 ? 1000 : $limittime); 
   $func = ''; 
    if($gourl=='-1') 
    { 
        if($limittime==0) $litime = 5000; 
        $gourl = "javascript:history.go(-1);"; 
    } 
   
    if($gourl=='' || $onlymsg==1) 
    { 
        $msg = "<script>alert(\"".str_replace("\"","“",$msg)."\");</script>"; 
    } 
    else
    { 
        //当网址为:close::objname 时, 关闭父框架的id=objname元素 
        if(preg_match('/close::/',$gourl)) 
        { 
            $tgobj = trim(preg_replace('/close::/', '', $gourl)); 
            $gourl = 'javascript:;'; 
            $func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n"; 
        } 
          
        $func .= "      var pgo=0; 
      function JumpUrl(){ 
        if(pgo==0){ location='$gourl'; pgo=1; } 
      }\r\n"; 
        $rmsg = $func; 
        $rmsg .= "document.write(\"<div class='ts_div'>  <div class='ts_border'>"; 
        $rmsg .= "<div class='ts_b2'><h2>织梦吧提示信息!</h2>\");\r\n"; 
        $rmsg .= "document.write(\"<p>\");\r\n"; 
        $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n"; 
        $rmsg .= "document.write(\""; 
          
        if($onlymsg==0) 
        { 
            if( $gourl != 'javascript:;' && $gourl != '') 
            { 
                $rmsg .= "</p></div>  </div></div><div class='ts_tz'>
                如果你的浏览器没反应,<a href='{$gourl}'>请点击这里...</a>"; 
                $rmsg .= "</div>\");\r\n"; 
                $rmsg .= "setTimeout('JumpUrl()',$litime);"; 
            } 
             else
            { 
                $rmsg .= "</div>\");\r\n"; 
            }            
        } 
        else
        { 
            $rmsg .= "</div>\");\r\n"; 
        } 
        $msg  = $htmlhead.$rmsg.$htmlfoot; 
    } 
    echo $msg; 
}

然后打开这个图片,保存到网站根目录images文件夹里面就可以了,大家可以试试吧。