这里有一个对窗口的控制函数,你再改一改。function openwin4scroll(url,winName,width,height) {
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 )) {
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
theproperty= "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
//window.open( url,winName,theproperty );
newwin=window.open('','',theproperty );
newwin.location.href =url;
return false;
}
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 )) {
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
theproperty= "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
//window.open( url,winName,theproperty );
newwin=window.open('','',theproperty );
newwin.location.href =url;
return false;
}
var tmp=window.open("about:blank","","fullscreen=1")
tmp.moveTo(100,100)
tmp.resizeTo(600,400)
tmp.focus()
tmp.location="http://www.csdn.net"
</script>
window.open("", "", "fullscreen=3; width=200; height=150");
上面三位大虾的方法我都尝试了一下
第一位 我把此函数加上后 说网页有错误
第二位 是一个无边筐窗口
第三位 是一个没有系统按钮的有边框窗口
谢谢三位 非常感激
但我希望是拥有一个 有系统按钮 但是无效状态 即变灰另 能否有让alt+f4失效的方法?我记得以前有个恶作剧网页 可以使浏览者不停的按确定 但是不能关闭窗口 alt + f4 也不能关闭 ?拜托了。 谢谢
<script language=Javascript>
function document.onkeydown()
{
if ((window.event.altKey)&&(window.event.keyCode==115)){
window.showModalDialog("","","dialogWidth:1px;dialogheight:1px");
return false;}
}
</script>
leeeel(三角比三星差?)
能说的具体点吗? 谢谢了
我不是做jsp 开发的 临时要用一下 不是很熟
麻烦了
除非用windows编程方法改IE窗口,就象腾讯浏览器一样
你说微软有这么笨吗?所以提问前先思考是个总的原则..