濮阳杆衣贸易有限公司

主頁 > 網(wǎng)站建設(shè) > 建站知識 > 超漂亮DEDECMS提示框樣式修改美化

超漂亮DEDECMS提示框樣式修改美化

POST TIME:2017-11-12 23:47

提示:個人建議還是在適當(dāng)?shù)牡胤奖A鬌EDECMS的版權(quán)信息,以支持dedecms管理系統(tǒng)更好的發(fā)展!
修改:include/common.func.php
第178-255行
覆蓋以下代碼:
  1. function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)
  2. {
  3. if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';
  4. $htmlhead= "<html>\r\n<head>\r\n<title>織夢CMS 友情提示</title>\r\n<meta http-equiv=\&;Content-Type\&; content=\&;text/html; charset=gb2312\&; />\r\n";
  5. $htmlhead .= "
  6. <base target='_self'/>\r\n
  7. <style>
  8. html,body,h2,div,p,img{margin:0;padding:0;list-style:none;border:none;font-size:12px;}
  9. a:link,a:visited,a:active{text-decoration:none;font-family:Tahoma,Geneva,sans-serif;}a:hover{text-decoration:underline;}
  10. body{text-align:center;font-family:Tahoma,Geneva,sans-serif;background:#000000;background:#000000\9;padding-bottom:25px;_background:url(about:black) no-repeat fixed;}
  11. html{_background:url(about:black) no-repeat fixed;}
  12. .ts_div{width:500px;overflow:hidden;margin:0 auto;margin-top:150px;border:1px solid #E9E9E9;border-radius:3px;}
  13. .ts_div h2{text-align:left;color:#666;border-bottom:1px dotted #ccc;padding-bottom:10px;font-size:12px;}
  14. .ts_div p{line-height:70px;background:url({$GLOBALS['cfg_plus_dir']}/img/ts_bg.png) no-repeat 0 center;margin:10px auto;font-size:14px;text-align:left;text-indent:70px;}
  15. .ts_border{border:7px solid #efefef;}
  16. .ts_b2{background:#fff;border:1px solid #E9E9E9;padding:10px 20px 10px 20px;}
  17. .ts_tz{margin:10px auto;text-align:right;width:500px;color:#666;}
  18. .ts_tz a{color:#f30;}
  19. </style>
  20. </head>\r\n<body style=\&;background:#f7f7f7;\&;>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n<center>\r\n<script>\r\n";
  21. $htmlfoot= "</script>\r\n</center>\r\n</body>\r\n</html>\r\n";
  22. $litime = ($limittime==0 ? 1000 : $limittime);
  23. $func = '';
  24. if($gourl=='-1')
  25. {
  26. if($limittime==0) $litime = 5000;
  27. $gourl = "javascript:history.go(-1);";
  28. }
  29. if($gourl=='' || $onlymsg==1)
  30. {
  31. $msg = "<script>alert(\&;".str_replace("\&;","“",$msg)."\&;);</script>";
  32. }
  33. else
  34. {
  35. //當(dāng)網(wǎng)址為:close::objname 時, 關(guān)閉父框架的id=objname元素
  36. if(preg_match('/close::/',$gourl))
  37. {
  38. $tgobj = trim(preg_replace('/close::/', '', $gourl));
  39. $gourl = 'javascript:;';
  40. $func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n";
  41. }
  42. $func .= "var pgo=0;
  43. function JumpUrl(){
  44. if(pgo==0){ location='$gourl'; pgo=1; }
  45. }\r\n";
  46. $rmsg = $func;
  47. $rmsg .= "document.write(\&;<div class='ts_div'>";
  48. $rmsg .= "<div class='ts_border'><div class='ts_b2'>'<h2>織夢CMS提示</h2>\&;);\r\n";
  49. $rmsg .= "document.write(\&;<p>\&;);\r\n";
  50. $rmsg .= "document.write(\&;".str_replace("\&;","“",$msg)."\&;);\r\n";
  51. $rmsg .= "document.write(\&;</p></div></div></div>\&;);\r\n";
  52. $rmsg .= "document.write(\&;";
  53. if($onlymsg==0)
  54. {
  55. if( $gourl != 'javascript:;' && $gourl != '')
  56. {
  57. $rmsg .= "<div class='ts_tz'>如果瀏覽器沒有自動跳轉(zhuǎn),請<a href='{$gourl}'>點擊這里</a></div>";
  58. $rmsg .= "\&;);\r\n";
  59. $rmsg .= "setTimeout('JumpUrl()',$litime);";
  60. }
  61. else
  62. {
  63. $rmsg .= "<br/></div>\&;);\r\n";
  64. }
  65. }
  66. else
  67. {
  68. $rmsg .= "<br/><br/></div>\&;);\r\n";
  69. }
  70. $msg= $htmlhead.$rmsg.$htmlfoot;
  71. }
  72. echo $msg;
  73. }
然后下載附件中的圖片。

懶人覆蓋方法,下載common.func.rar附件。解壓后直接覆蓋到include文件夾

common.func.rar




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
印江| 麻栗坡县| 巴中市| 武陟县| 阿图什市| 镇沅| 南木林县| 永宁县| 保靖县| 饶平县| 仪征市| 芦山县| 菏泽市| 甘谷县| 双辽市| 津南区| 丹棱县| 富阳市| 扎囊县| 健康| 葵青区| 静乐县| 宣城市| 罗江县| 大姚县| 永德县| 云龙县| 丹凤县| 达日县| 潞西市| 白水县| 大化| 西安市| 阳城县| 怀集县| 阜新市| 冕宁县| 涿州市| 德安县| 祁阳县| 张掖市|