• <small id='hm2jz3ru'></small><noframes id='a67n8y5x'>

    • <bdo id='59y3ys7d'></bdo><ul id='yotrsnal'></ul>

      <legend id='rmocfv86'><style id='qkjy5ixa'><dir id='cae7ucfh'><q id='h332jwtc'></q></dir></style></legend>
        <tfoot id='ozii5er5'></tfoot>
        <i id='winmqhmr'><tr id='gyl9kbhy'><dt id='f3nvu1n7'><q id='f0nm6hnx'><span id='vy5z1t7e'><b id='tq5ciii0'><form id='e4c4pi92'><ins id='8pfn25j5'></ins><ul id='sr4y45jl'></ul><sub id='hynzqaqr'></sub></form><legend id='o4rbejwh'></legend><bdo id='yfbvi2jz'><pre id='y6enoygl'><center id='ymsdvwpn'></center></pre></bdo></b><th id='gu0o3fqs'></th></span></q></dt></tr></i><div id='wn5g086e'><tfoot id='ks9k7byg'></tfoot><dl id='lj4717e6'><fieldset id='p9oirb5l'></fieldset></dl></div>

      1. 精准传达 • 价值共享

        洞悉互联网前沿资讯,探寻网站营销规律

        简单修改代码让织梦dedecms提示信息提示框美化

        作者: 庚午网络 | 2020-11-05 05:44 |点击:

        SEO DEDECMS5.7

      2. <legend id='3k5433il'><style id='nvedhyp6'><dir id='osi2l6pp'><q id='u2wrfu8q'></q></dir></style></legend>

              <tbody id='7wmvc2kn'></tbody>

          1. <tfoot id='m956nylq'></tfoot>

              <small id='439ib3y7'></small><noframes id='gtm86dgj'>

              • <i id='fudp0lc4'><tr id='hikob2z1'><dt id='qnpnhlju'><q id='nzn48cq8'><span id='d5d8oo7e'><b id='9832qner'><form id='mgbzopi8'><ins id='zlg66bis'></ins><ul id='7x6e8t8y'></ul><sub id='vtg3icf3'></sub></form><legend id='86k5jpuy'></legend><bdo id='c8py4ytj'><pre id='9c53w68j'><center id='jl9f6tq8'></center></pre></bdo></b><th id='axfloqpq'></th></span></q></dt></tr></i><div id='iudan4de'><tfoot id='8ftsus8l'></tfoot><dl id='jduvll48'><fieldset id='hg4w5tjh'></fieldset></dl></div>

                  <bdo id='1qdxulax'></bdo><ul id='mb112g8i'></ul>

                  DEDECMS的默认提示信息框不太好看,如下图


                  3333

                  不太好看。

                  美化方法如下:

                  打开 \include\common.func.php 找到

                  function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)

                  大约在229行,一直到291行,全部替换成

                  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 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()',$litime);";
                              }
                              else
                              {
                                  $rmsg .= "<br/></div>\");\r\n";
                              }
                          }
                          else
                          {
                              $rmsg .= "<br/><br/></div>\");\r\n";
                          }
                          $msg  = $htmlhead.$rmsg.$htmlfoot;
                      }
                      echo $msg;
                  }

                  效果如下:

                  2222

                  二度创作,如有侵权请联系删除。如没特殊注明,文章均为庚午网络原创,转载请注明https://www.hngengwu.com/shejiguandian/407.html

                    <small id='fg8k680w'></small><noframes id='dquf3lsd'>

                      <tfoot id='03bp6gka'></tfoot>
                      <legend id='74yvtdv7'><style id='gxh6v1w6'><dir id='y2wp5fdj'><q id='s0yic1uw'></q></dir></style></legend>
                        <bdo id='vel5nrnc'></bdo><ul id='q7scjvq6'></ul>
                    1. <i id='bak8kom1'><tr id='15jhzkht'><dt id='al4vj78c'><q id='hwkqipmx'><span id='fmuii46r'><b id='p3tcvgue'><form id='prkf2ggl'><ins id='mkdk8z92'></ins><ul id='fgbk44s5'></ul><sub id='ydilcz91'></sub></form><legend id='erlltl4w'></legend><bdo id='zvh1jb1r'><pre id='s1cxasov'><center id='cf10dn2h'></center></pre></bdo></b><th id='jr9nzs8r'></th></span></q></dt></tr></i><div id='lnadxo7w'><tfoot id='gpmijicc'></tfoot><dl id='33m844cm'><fieldset id='fcbb14zn'></fieldset></dl></div>
                    2. 多一份策划方案,总有益处。

                      请直接添加技术总监微信联系咨询

                      网站设计 品牌营销

                      多一份参考,总有益处

                      联系庚午网络,获得专属《策划方案》及报价

                      咨询相关问题或预约面谈,可以通过以下方式与我们联系

                      业务热线:18574395938 / 大客户专线:18574395938