昨天我记得把代码帖上来了啊,怎么没有?
他的代码
====================
<script language="javascript">
<!--
function startLogin()
{
var current=window.top;
if (current.opener!=null){
current.opener.location="Login.aspx";
current.close();
}
else{
/*while (current.opener!=null){
var parentWindow=current.opener;
current.close();
current=parentWindow.top;
}*/
var nDialogWidth=422;
var nDialogHeight=280;
var nLeft=(window.screen.availWidth-nDialogWidth)/2;
var nTop=(window.screen.availHeight-nDialogHeight)/2;
window.moveTo(-9999,-9999);
var sFeatures="dialogLeft:"+nLeft+"px;dialogTop:"+nTop+"px;dialogHeight:"+nDialogHeight+"px;dialogWidth:"+nDialogWidth+"px;help:no;status:no";
var bLogged=window.showModalDialog("AnonymousAccessibleForms/Login.htm",window,sFeatures);