修改后的效果如下图所示:
(此图片来源于网络,如有侵权,请联系删除! )
打开 /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 = "/r/n/r/n提示信息 /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
{
//当网址为: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(/"/");/r/n;";
$rmsg .= "document.write(/"
";
$rmsg .= "/");/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 .= "点击跳转";
$rmsg .= "
/");/r/n";
$rmsg .= "setTimeout('JumpUrl()',$litime);";
}
else
{
$rmsg .= "
/");/r/n";
}
}
else
{
$rmsg .= "
/");/r/n";