您的位置:首页 > 其它

2010reys.com遇到的问题 reader关闭问题 刷新页面有的内容被遮盖 ckeditor获取根目录问题

2011-04-24 15:00 344 查看

一部分内容被遮盖


正常的样子

在本机的IIS和VS2008里多次刷新会偶尔出现几次这种情况,外网刷新页面没有出现。(reader每次用完都关闭了),怀疑是不是刷新时前一次尚未关闭,然后新的请求又进来导致的该问题?

///获取网站根目录 IIS里 return (prePath);

function getRootPath() {
var strFullPath = window.document.location.href;
var strPath = window.document.location.pathname;
var pos = strFullPath.indexOf(strPath);
var prePath = strFullPath.substring(0, pos);
var postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);
// if (postPath == "") {

// alert(postPath +"1");
// return (prePath);

// }
// else {
// alert(postPath + "2");
return (prePath);
// }

}

var webpath = getRootPath();

///获取网站根目录 VS里 return (prePath+postPath );
function getRootPath() {
var strFullPath = window.document.location.href;
var strPath = window.document.location.pathname;
var pos = strFullPath.indexOf(strPath);
var prePath = strFullPath.substring(0, pos);
var postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);
// if (postPath == "") {

// alert(postPath +"1");
// return (prePath);

// }
// else {
// alert(postPath + "2");
return (prePath+postPath );
// }

}

var webpath = getRootPath();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐