资源简介
userstatus.php 解决全站静态化后 顶部登陆状态不显示问题
在footer.html 中 加入如下脚本即可
//load
jQuery(function () {
jQuery.ajax({
url:'/userstatus.php',
type:'GET',
cache:false,
success:function(msg)
{
msg=msg.replace("returnUrl","returnUrl=" encodeURIComponent(location.href) "&xxreturnurl=");
if(jQuery("span[class='fright f14']"))jQuery("span[class='fright f14']").parent().html(msg);
}
});
});
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12232 2014-10-14 11:40 footer.htm
文件 261 2014-10-14 09:26 userstatus.php
----------- --------- ---------- ----- ----
文件 12232 2014-10-14 11:40 footer.htm
文件 261 2014-10-14 09:26 userstatus.php

评论
共有 条评论