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

首頁 > CMS > 織夢DEDE > 正文

織夢提示信息提示框美化教程

2024-07-12 09:01:27
字體:
來源:轉載
供稿:網友

提示效果

 織夢提示信息提示框美化教程

實現教程

打開 /include/common.func.php 找到

function ShowMsg(

{

         中間代碼省略...

}

 

整個改成

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<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/" />";    $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";    $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(/"<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 #009688;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 #019688;border-radius:3px;color:#1AA094;text-decoration:blink;font-size:13px}.tips .content a:hover{background:#1AA094;color:#fff}</style>/");/r/n;";        $rmsg .= "document.write(/"<div class='tips tips-box'>";        $rmsg .= "<div><p>提示信息</p></div>/");/r/n";        $rmsg .= "document.write(/"<div>/");/r/n";        $rmsg .= "document.write(/"".str_replace("/"","“",$msg)."/");/r/n";        $rmsg .= "document.write(/"";          if($onlymsg==0)        {            if( $gourl != 'javascript:;' && $gourl != '')            {                $rmsg .= "<a href='{$gourl}'>點擊跳轉</a>";                $rmsg .= "<br/></div>/");/r/n";                $rmsg .= "setTimeout('JumpUrl()',$litime);";            }            else            {                $rmsg .= "<br/></div>/");/r/n";            }        }        else        {            $rmsg .= "<br/><br/></div>/");/r/n";        }        $msg  = $htmlhead.$rmsg.$htmlfoot;    }    echo $msg;}

 

完成!

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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 文登市| 仙游县| 镇巴县| 金溪县| 湘乡市| 特克斯县| 奎屯市| 抚远县| 宜黄县| 合肥市| 平乐县| 荆州市| 太康县| 汽车| 汽车| 屏东县| 衡东县| 安泽县| 洛南县| 黄冈市| 深水埗区| 六安市| 洛扎县| 克山县| 黔江区| 鲜城| 兴国县| 渝中区| 攀枝花市| 布尔津县| 富蕴县| 普兰县| 赤水市| 恩施市| 大石桥市| 彰化市| 锡林郭勒盟| 万山特区| 桐柏县| 务川| 乌拉特中旗|