弹出网页没有下拉条怎么制作
发布网友
发布时间:2022-04-24 02:13
我来回答
共1个回答
热心网友
时间:2023-10-21 06:59
<script language="javascript1.1">
function window.onload()
{
var redirectUrl = "/homepage/indexs.ASP" ;
var width = screen.width ;
var height = screen.height ;
if (height == 768 ) height -= 75 ;
if (height == 600 ) height -= 60 ;
var szFeatures = "top=0," ;
szFeatures +="left=0," ;
szFeatures +="width="+width+"," ;
szFeatures +="height="+height+"," ;
szFeatures +="directories=no," ;
szFeatures +="status=yes," ;
szFeatures +="menubar=no," ;
if (height <= 600 ) szFeatures +="scrollbars=yes," ;
else szFeatures +="scrollbars=no," ;
szFeatures +="resizable=yes" ;
var newwin = window.open(redirectUrl,"",szFeatures) ;
if(newwin==null) {
var helpurl='/help/sys/help.html'
var yn = confirm("弹出窗口被阻止,无法正常进入系统!\n按【确定】查看帮助,按【取消】以普通模式进入系统。");
if(!yn) location.href = redirectUrl;
if(yn) location.href = helpurl;
}
else {
window.opener='tongcan';
window.open('','_self');
window.close();
}
}
</script>
热心网友
时间:2023-10-21 06:59
<script language="javascript1.1">
function window.onload()
{
var redirectUrl = "/homepage/indexs.ASP" ;
var width = screen.width ;
var height = screen.height ;
if (height == 768 ) height -= 75 ;
if (height == 600 ) height -= 60 ;
var szFeatures = "top=0," ;
szFeatures +="left=0," ;
szFeatures +="width="+width+"," ;
szFeatures +="height="+height+"," ;
szFeatures +="directories=no," ;
szFeatures +="status=yes," ;
szFeatures +="menubar=no," ;
if (height <= 600 ) szFeatures +="scrollbars=yes," ;
else szFeatures +="scrollbars=no," ;
szFeatures +="resizable=yes" ;
var newwin = window.open(redirectUrl,"",szFeatures) ;
if(newwin==null) {
var helpurl='/help/sys/help.html'
var yn = confirm("弹出窗口被阻止,无法正常进入系统!\n按【确定】查看帮助,按【取消】以普通模式进入系统。");
if(!yn) location.href = redirectUrl;
if(yn) location.href = helpurl;
}
else {
window.opener='tongcan';
window.open('','_self');
window.close();
}
}
</script>
热心网友
时间:2023-10-21 06:59
<script language="javascript1.1">
function window.onload()
{
var redirectUrl = "/homepage/indexs.ASP" ;
var width = screen.width ;
var height = screen.height ;
if (height == 768 ) height -= 75 ;
if (height == 600 ) height -= 60 ;
var szFeatures = "top=0," ;
szFeatures +="left=0," ;
szFeatures +="width="+width+"," ;
szFeatures +="height="+height+"," ;
szFeatures +="directories=no," ;
szFeatures +="status=yes," ;
szFeatures +="menubar=no," ;
if (height <= 600 ) szFeatures +="scrollbars=yes," ;
else szFeatures +="scrollbars=no," ;
szFeatures +="resizable=yes" ;
var newwin = window.open(redirectUrl,"",szFeatures) ;
if(newwin==null) {
var helpurl='/help/sys/help.html'
var yn = confirm("弹出窗口被阻止,无法正常进入系统!\n按【确定】查看帮助,按【取消】以普通模式进入系统。");
if(!yn) location.href = redirectUrl;
if(yn) location.href = helpurl;
}
else {
window.opener='tongcan';
window.open('','_self');
window.close();
}
}
</script>