久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網站+自適應網頁多模板選擇-建站388元起價?。?!
當前位置:主頁 > 網站建設 > 織夢dedecms提示信息提示框美化織夢技巧

織夢dedecms提示信息提示框美化織夢技巧

時間:2023-05-25 12:05:25 閱讀: 文章分類: 網站建設 作者: 網站技術員

導讀:織夢技巧織夢技巧你是否已經看膩了織夢官方默認的提示信息窗口?來,今天織夢幫讓你的眼睛閃亮一下,質感美化版的提示信息窗口來了! 提示效果 實現教程 打開 /include/com如何seo優化推廣網站建設網站公司。

如何seo優化推廣網站建設網站公司你是否已經看膩了織夢官方默認的提示信息窗口?來,今天SEOUC讓你的眼睛閃亮一下,質感美化版的提示信息窗口來了! 提示效果 實現教程 打開 /include/common.func.php 找到 大概在278行的 function ShowMsg ( {中間代碼省略...} 復制 把整個函數改成 function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0){ if(empty($GLOBALS[cfg_plus_dir])) $GLOBALS[cfg_plu […]

你是否已經看膩了織夢官方默認的提示信息窗口?來,今天SEOUC讓你的眼睛閃亮一下,質感美化版的提示信息窗口來了!

提示效果

實現教程

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

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 #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;"; $rmsg .= "document.write(\"<div class='tips tips-box'>"; $rmsg .= "<div class='title'><p>提示信息</p></div>\");\r\n"; $rmsg .= "document.write(\"<div class='content'>\");\r\n"; $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n"; $rmsg .= "document.write(\""; if($onlymsg==0) { if( $gourl != 'javascript:;' && $gourl != '') { $rmsg .= "<a href='{$gourl}' class='go'>點擊跳轉</a>"; $rmsg .= "<br/></div>\");\r\n"; $rmsg .= "setTimeout('JumpUrl()&#網站seo優化診斷工具39;,$litime);"; } 公司網站建設 else { $rmsg .= "<br/></div>\");\r\n"; } } else { $rmsg .= "<br/><br/></div>\");\r\n"; } 網站seo優化 $msg = $htmlhead.$rmsg.$htmlfoot; } echo $msg; }復制

關鍵詞標簽: 提示 織夢 提示信息

聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-25 ,文章織夢dedecms提示信息提示框美化織夢技巧主要講述提示信息,提示,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_8465.html

我的IDC 網站建設技術SEOUC.COM
專注網站建設,SEO優化,小程序設計制作搭建開發定制網站等,數千家網站定制開發案例,網站推廣技術服務。
  • 5000+合作客服
  • 8年從業經驗
  • 150+覆蓋行業
  • 最新熱門源碼技術文章

    主站蜘蛛池模板: 崇义县| 高雄市| 溆浦县| 呼玛县| 娄烦县| 贵南县| 涿州市| 正定县| 临沧市| 房山区| 班玛县| 嘉荫县| 铁岭市| 蓬安县| 广饶县| 峨眉山市| 云安县| 聂荣县| 商都县| 徐汇区| 阳西县| 乃东县| 大厂| 安新县| 海宁市| 桦川县| 嘉定区| 泽州县| 和龙市| 石门县| 太康县| 金乡县| 上高县| 安义县| 濉溪县| 佛坪县| 平和县| 平遥县| 博白县| 环江| 湄潭县|