当前位置:网站首页>Dream weaving prompt information prompt box beautification
Dream weaving prompt information prompt box beautification
2022-08-02 20:02:00 【website building shadow】
The tutorial is as follows
Open /include/common.func.php and find about line 278
function ShowMsg({Intermediate code omitted...}
Change the entire function to
function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0){if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';$htmlhead = "\r\n\r\nInformation \r\n\r\n\r\n\r\n";$htmlhead .= " \r\n\r\n".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n\r\n\r\n \r\n
\r\n\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 = "";}else{//When the URL is: close::objname, close the id=objname element of the parent frameif(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(\"\");\r\n;";$rmsg .= "document.write(\"";$rmsg .= "Information
\");\r\n";$rmsg .= "document.write(\"\");\r\n";$rmsg .= "document.write(\"".str_replace("\"",""",$msg)."\");\r\n";$rmsg .= "document.write(\"";if($onlymsg==0){if( $gourl != 'javascript:;' && $gourl != ''){$rmsg .= "Click to jump";$rmsg .= "
\");\r\n";$rmsg .= "setTimeout('JumpUrl()',$litime);";}else{$rmsg .= "
\");\r\n";}}else{$rmsg .= "
Note: If you have changed this function, remember to make a backup copy of yours and try again!
边栏推荐
猜你喜欢
随机推荐
golang源码分析(5):sync.Once
golang源码分析(6):sync.Mutex sync.RWMutex
阿波罗 planning代码-modules\planning\lattice\trajectory_generation\PiecewiseBrakingTrajectoryGenerator类详解
Simulink脚本自动创建Autosar Parameter Port及Mapping
Wechat Gymnasium Appointment Mini Program Graduation Design Finished Work (5) Task Book
ES: Promise的基本用法
我用这一招让团队的开发效率提升了 100%!
启航
H5网页播放器EasyPlayer.js播放器界面的加载效果无法消失是什么原因?
文件上传很难搞?10分钟带你学会阿里云OSS对象存储
二叉查找树的查找
Mysql和Redis如何保证数据一致性
FP6606CLP5 SOP-8 USB Type-C和PD充电控制器
0725-面试记录
ffmpeg编译后找不到libx264
MySQL常见面试题汇总(建议收藏!!!)
小程序毕设作品之微信体育馆预约小程序毕业设计成品(8)毕业设计论文模板
Pytest study notes
Red and blue against experience sharing: CS from kill posture
二舅“反转”了?