"景先生毕设|www.jxszl.com

织梦dedecms提示信息提示框美化

2022-10-29 16:29编辑: www.jxszl.com景先生毕设
修改后的效果如下图所示:
织梦dedecms提示信息提示框美化
打开/include/common.func.php找到大概在IIVIIVIII行的


functionShowMsg(
{
中间代码省略…
}


 更多精彩就在: 51免费论文网|www.jxszl.com 
/>把整个函数改成:


functionShowMsg($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?I.000:$limittime);
$func=;
if($gourl==-I.)
{
if($limittime==0)$litime=V000;
$gourl="javascript:history.go(-I.);";
}
if($gourl==||$onlymsg==I.)
{
$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.="varpgo=0;
functionJumpUrl(){
if(pgo==0){location=$gourl;pgo=I.;}
}/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";
}
$msg=$htmlhead.$rmsg.$htmlfoot;
}
echo$msg;
}


注意:如果你有改过这个函数,记得先备份好这个文件!


原文链接:http://www.jxszl.com/biancheng/dedecms/75340.html
最新推荐
热门阅读
随机阅读