1)在login.aspx文件中:
<body onload="JavaScript:moveTo(宽度,高度)">2)做一个favorite.ico文件,放到网站的根目录里就可以了。如果不用这个文件名的话,就要在网页中加入这句<link rel="SHORTCUT ICON" href="aa.ico">。ico的制作工具,搜一下就有,一大把。
<body onload="JavaScript:moveTo(宽度,高度)">2)做一个favorite.ico文件,放到网站的根目录里就可以了。如果不用这个文件名的话,就要在网页中加入这句<link rel="SHORTCUT ICON" href="aa.ico">。ico的制作工具,搜一下就有,一大把。
下次不要這樣了!
这一句是加在<head>里的
并且不要抱太大希望,这东西时灵时不灵,不一定会显示的。
以后是可以解决这个问题,但是呢,那个login.aspx页面就不能自动关闭了,非要等我吧showModellessDialog这个网页对话框关闭了才一起关闭。看起来很不舒服。]有没有高手知道这个问题怎么解决呢?
function window_onload()
{
window.open("Login.aspx","_Login",窗口大小自己填);
window.opener=null;
window.close();
};就可以了。要给分噢!!!
window._open=window.open;
window.open=window_new_open;
function window_new_open( a,b,c )
{
var win;
if( c )
win=window._open( a,b,c );
else if( b )
win=window._open( a,b );
else
win=window._open( a );
if( win!=null&&!win.closed )
return win; var option='status:0;help:0;dialogleft:10000px;dialogtop:10000px;dialogheight:0px;dialogwidth:0px'; win=showModalDialog( 'open.htm',[a,b,c],option ); return win;
}
</script>
<script>var win=window.open( 'http://www.lostinet.com/' );win.close( );</script>其中 open.htm 为:<title> </title>
<script>
function window.onload( )
{
var args=window.dialogArguments;
var a=args[0];
var b=args[1];
var c=args[2]
var win;
if( c )
win=window.open( a,b,c );
else if( b )
win=window.open( a,b );
else
win=window.open( a );
window.returnValue=win;
window.close( );
}
</script>
你仔细看看我的要求好吗,,
我用C#开发一个MIS 的管理系统(B/S)结构的,,我在登陆页面确认成功以后需要关闭当前这个login.aspx,然后打开新的window.open()页面,我换了showModellessDialog
以后是可以解决这个问题,但是呢,那个login.aspx页面就不能自动关闭了,非要等我吧showModellessDialog这个网页对话框关闭了才一起关闭。看起来很不舒服。]
至于主页面窗口的大小样式,就由你自己修改以下js了。:)<script language="javascript">
if(screen.width>=1024 && document.body.offsetHeight>565) document.body.scroll="no";
//if(screen.width<=800) document.all.dynamicspacer.width="740";if(screen.width>1024 && "true"=="false"){
var sb=700;
var sw=1024;
var sh=600;
window.resizeTo(sw,sb);
sb=sb-document.body.offsetHeight
//if(sb<0) sb=sb*(-1);
sh=sh+sb+1;
window.resizeTo(sw,sh);
moveTo((screen.width-sw)/2,(screen.height-sh)/3);
}
else
{
if(window.document.body.offsetWidth!=window.screen.availWidth) max.Click();
}
</script>
我也遇到过这个问题,把拦截广告,拦截flash等都关了就好了