最新活动:电脑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提示信息提示框美化织梦技巧主要讲述提示信息,提示,织梦网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_8465.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章