我用HttpWatch查到了弹窗的网页源码,发上来大家看看,看怎么入手解决这个问题。HTTP/1.1 200 OK
Date: Sun, 04 Sep 2011 01:00:29 GMT
Server: Apache/2.2.15 (Unix)
Accept-Ranges: bytes
Content-Length: 2018
Last-Modified: Tue, 30 Aug 2011 16:58:56 GMT
P3P: CP=CAO PSA OUR
X-Powered-By: Servlet/2.5 JSP/2.1
Keep-Alive: timeout=5, max=97
Connection: Keep-Alive
Content-Type: text/html
<!-- add by yq -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- META HTTP-EQUIV="Refresh"
CONTENT="0;URL=/unibss/loginAction.go"-->
</head>
<body>
<h3>
Loading.............
</h3>
<script language="javascript"
type="text/javascript">
<!--
//取随机数作为窗口名称
function getRndNum(lbound,ubound) {
return (Math.floor
(Math.random()*(ubound-lbound)+lbound));
}
function getResult(n) {
var str="qwertyuiopasdfghjklmnbvcxz1234567890";
var sp_str=str.split("");
var rnd="";
for (var i=0;i<n ;i++ )
{
rnd+=sp_str[getRndNum
(1,36)];
}
return rnd;
}
//-->
function full_window(){
try{
var windowOldName=top.window.name;
var frameWindowName="";
if(windowOldName.indexOf("frameWindowName_")==0){
frameWindowName=windowOldName;
}else{
frameWindowName="frameWindowName_"+getResult(10);
}
newwindow=window.open ("/unibss/loginAction.go", frameWindowName, "toolbar=no, menubar=no, scroll=auto , resizable=no, location=no, status=yes")
newwindow.moveTo(0,0);
newwindow.resizeTo(screen.width,screen.height-3);
try{
newwindow.focus();
if(frameWindowName!=windowOldName){//避免反复登录时关闭所有窗口
window.close();
}
}catch(e){;}
}catch(e){;}
}
try{//这里要捕获一下异常,因为在crm1/crm2互相包含的框架页面里面可能会出js错误
if
(top.location != self.location){
top.location=self.location;
window.location.reload();
}
full_window();
}catch(e){;}
</script>
</body>
</html>
|