用JS代码使浏览器窗口全屏怎么做? window.open("xxx.asp","desktop","fullscreen=1") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function Page_Load(){var agent = navigator.userAgent;var opentUrl = "index.aspx"; if (agent.lastIndexOf('Windows NT 5.2') != -1 || agent.lastIndexOf('Windows NT 5.1') != -1) { //win2003 | WinXP var w=window.open(opentUrl,"","location=no,menubar=no,toolbar=no,status=no"); w.moveTo(-10,-50); w.resizeTo(screen.width+10,screen.height+50); parent.opener = null; parent.close(); } else if (agent.lastIndexOf('Windows NT 5.0') != -1 || agent.lastIndexOf('Windows 98') != -1) { //Win2000|Win98 window.open(opentUrl,'','fullscreen=1'); parent.opener = null; parent.close(); }} <script><!--function fullwin(targeturl){window.open(targeturl,"","fullscreen,scrollbars")}//--></script> js弹层问题,急。。。 写了个渐变图片轮播,有个隐蔽的BUG。 checkbox属性设为disabled,在层中,当鼠标一移checkbox就触发onmouseout事件,仅在于火狐。 请问我這段代码怎么与相像中的结果不一致呢? 不用open弹出窗口,能实现open的效果,比如去掉菜单栏,和控制窗口大小 哪位高手用过往模态对话框里输入参数吗?急。 怎么判断一个字符串是否是日期? 我要提出字符串...好头痛! 一個比較簡單的問題,請給以解決 js里,这样的代码怎么解密? javascript如何分割字符串?类似asp中的split 使用javascipt的奇怪问题?
{
var agent = navigator.userAgent;
var opentUrl = "index.aspx";
if (agent.lastIndexOf('Windows NT 5.2') != -1 || agent.lastIndexOf('Windows NT 5.1') != -1) { //win2003 | WinXP
var w=window.open(opentUrl,"","location=no,menubar=no,toolbar=no,status=no");
w.moveTo(-10,-50);
w.resizeTo(screen.width+10,screen.height+50);
parent.opener = null;
parent.close();
}
else if (agent.lastIndexOf('Windows NT 5.0') != -1 || agent.lastIndexOf('Windows 98') != -1) { //Win2000|Win98
window.open(opentUrl,'','fullscreen=1');
parent.opener = null;
parent.close();
}
}
<!--function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}
//-->
</script>