如何出现一个没有菜单栏、没有工具、栏宽高都为100的 主页(不是后来弹出来的) window.open("xx.asp","zyc","width=100,height=100,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,location=no,directories=no"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language="javascript">window.open("index.htm","","width=100,height=100");window.opener=null; //有这句就不出现提示窗口了window.close();</script> to: jinhong618(BCB水手) 不幸啊老大,那个对话框还是出来啊 <HTML XMLNS:IE><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><IE:Download ID="include" STYLE="behavior:url(#default#download)" /><title>cs</title><SCRIPT LANGUAGE="JScript">var CW_width = 400;var CW_height = 250;var CW_top = (screen.width-CW_width)/2;var CW_left = (screen.height-CW_height)/2;var CW_url = "/";var New_CW = window.createPopup();var CW_Body = New_CW.document.body;var content = "";var cont="";var CSStext = "margin:1px;color:black; border:2px outset;border-style:expression(onmouseout=onmouseup=function(){this.style.borderStyle='outset'}, onmousedown=function(){if(event.button!=2)this.style.borderStyle='inset'});background-color:buttonface;width:16px;height:14px;font-size:12px;line-height:11px;cursor:Default;";//Build Windowinclude.startDownload(CW_url, function(source){content=source});function insert_content(){var temp = "";//=========================================================================CW_Body.style.overflow = "hidden";CW_Body.style.backgroundColor = "white";CW_Body.style.border = "solid black 1px";content = content.replace(/<a ([^>]*)>/g,"<a onclick='parent.open(this.href);return false' $1>");temp += "<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>";temp += "<tr style=';font-size:12px;background:#EFEFEF;height:25;cursor:default' onmouseup='parent.drag_up(event)' onmousemove='parent.drag_move(event)' onmousedown='parent.drag_down(event)' onselectstart='return false' oncontextmenu='return false'>";temp += "<td style='padding-left:5px;' valign='top'><img src=oa.gif></td>";temp += "<td style='color:#000000;padding-left:-115px;' > <B>办公自动化系统--用户登录</B></td>";temp += "<td style='color:#ffffff;padding-right:5px;' align=right>";temp += "<span id=Min onclick='parent.New_CW.hide();parent.blur()' style=\""+CSStext+"font-family:Webdings;\" title='Minimum'>0</span>";temp += "<span id=Max onclick=\"this.innerText=this.innerText=='1'?'2':'1';parent.if_max=!parent.if_max;parent.show_CW();\" style=\""+CSStext+"font-family:Webdings;\" title='Maximum' disabled>1</span>";temp += "<span id=Close onclick='parent.opener=null;parent.close()' style=\""+CSStext+"font-family:System;padding-right:2px;\" title='Close'>x</span>";temp += "</td></tr><tr><td colspan=3><input type=text name=sss value=ss>";temp += "<div id=include style='overflow:scroll;overflow-x:hidden;overflow-y:auto; HEIGHT: 100%; width:"+CW_width+"'>";temp += cont;temp += "</div>";temp += "</td></tr></table>";CW_Body.innerHTML = temp;}setTimeout("insert_content()",1000);var if_max = true;function show_CW(){window.moveTo(10000, 10000);if(if_max){New_CW.show(CW_top, CW_left, CW_width, CW_height);if(typeof(New_CW.document.all.include)!="undefined"){New_CW.document.all.include.style.width = CW_width;New_CW.document.all.Max.innerText = "1";}}else{New_CW.show(0, 0, screen.width, screen.height);New_CW.document.all.include.style.width = screen.width;}}window.onfocus = show_CW;window.onresize = show_CW;// Move Windowvar drag_x,drag_y,draging=falsefunction drag_move(e){if (draging){New_CW.show(e.screenX-drag_x, e.screenY-drag_y, CW_width, CW_height);return false;}}function drag_down(e){if(e.button==2)return;if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height)return;drag_x=e.clientX;drag_y=e.clientY;draging=true;e.srcElement.setCapture();}function drag_up(e){draging=false;e.srcElement.releaseCapture();if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height) return;CW_top = e.screenX-drag_x;CW_left = e.screenY-drag_y;}</SCRIPT><body></body></HTML> jiangzheng3(歪歪) 的这段代码强,就是有些地方看不懂。哪位达人能看懂帮忙注释一下?还有那个输入框里的内容好象不能修改 http://community.csdn.net/Expert/topic/3229/3229329.xml?temp=.8698999我也没解决 index.htm--------------------------------------------------------<script language="javascript">window.open("index-1.htm","","width=100,height=100");window.opener=null; //有这句就不出现提示窗口了window.close();</script>我这里正常呀,没有错误,你那里是不是还有其它代码呀,按你的要求,这五行就是一个文件,别的什么也不用呀,把这个文件设为主文档,一登录就打开他,由他打开另一个你要求的主页。你可以在google里搜一下window.close试试,应该有答案的。如果在你那里还是不行,我也没办法了。 IE8 Jquery 跨窗体问题 CheckBox问题 js 正则表达式的问题 界面设计 请问这是什么意思啊var p = [ ['test',null],]; 求大神分析一下代码 如何用js控制文本框的只读属性 如何实现连续打印 有关提交表单脚本的问题! 大神们这个js怎么用转为jq啊,弟弟急 请问如何使自定义函数返回对象 一个页面跳转的问题,急!
window.open("index.htm","","width=100,height=100");
window.opener=null; //有这句就不出现提示窗口了
window.close();
</script>
不幸啊老大,那个对话框还是出来啊
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<IE:Download ID="include" STYLE="behavior:url(#default#download)" />
<title>cs</title><SCRIPT LANGUAGE="JScript">var CW_width = 400;
var CW_height = 250;
var CW_top = (screen.width-CW_width)/2;
var CW_left = (screen.height-CW_height)/2;
var CW_url = "/";
var New_CW = window.createPopup();
var CW_Body = New_CW.document.body;
var content = "";
var cont="";var CSStext = "margin:1px;color:black; border:2px outset;border-style:expression(onmouseout=onmouseup=function(){this.style.borderStyle='outset'}, onmousedown=function(){if(event.button!=2)this.style.borderStyle='inset'});background-color:buttonface;width:16px;height:14px;font-size:12px;line-height:11px;cursor:Default;";//Build Window
include.startDownload(CW_url, function(source){content=source});function insert_content(){
var temp = "";
//=========================================================================CW_Body.style.overflow = "hidden";
CW_Body.style.backgroundColor = "white";
CW_Body.style.border = "solid black 1px";
content = content.replace(/<a ([^>]*)>/g,"<a onclick='parent.open(this.href);return false' $1>");
temp += "<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>";
temp += "<tr style=';font-size:12px;background:#EFEFEF;height:25;cursor:default' onmouseup='parent.drag_up(event)' onmousemove='parent.drag_move(event)' onmousedown='parent.drag_down(event)' onselectstart='return false' oncontextmenu='return false'>";
temp += "<td style='padding-left:5px;' valign='top'><img src=oa.gif></td>";
temp += "<td style='color:#000000;padding-left:-115px;' > <B>办公自动化系统--用户登录</B></td>";
temp += "<td style='color:#ffffff;padding-right:5px;' align=right>";
temp += "<span id=Min onclick='parent.New_CW.hide();parent.blur()' style=\""+CSStext+"font-family:Webdings;\" title='Minimum'>0</span>";
temp += "<span id=Max onclick=\"this.innerText=this.innerText=='1'?'2':'1';parent.if_max=!parent.if_max;parent.show_CW();\" style=\""+CSStext+"font-family:Webdings;\" title='Maximum' disabled>1</span>";
temp += "<span id=Close onclick='parent.opener=null;parent.close()' style=\""+CSStext+"font-family:System;padding-right:2px;\" title='Close'>x</span>";
temp += "</td></tr><tr><td colspan=3><input type=text name=sss value=ss>";
temp += "<div id=include style='overflow:scroll;overflow-x:hidden;overflow-y:auto; HEIGHT: 100%; width:"+CW_width+"'>";temp += cont;temp += "</div>";
temp += "</td></tr></table>";
CW_Body.innerHTML = temp;
}setTimeout("insert_content()",1000);var if_max = true;
function show_CW(){
window.moveTo(10000, 10000);
if(if_max){
New_CW.show(CW_top, CW_left, CW_width, CW_height);
if(typeof(New_CW.document.all.include)!="undefined"){
New_CW.document.all.include.style.width = CW_width;
New_CW.document.all.Max.innerText = "1";
}}else{
New_CW.show(0, 0, screen.width, screen.height);
New_CW.document.all.include.style.width = screen.width;
}
}window.onfocus = show_CW;
window.onresize = show_CW;// Move Window
var drag_x,drag_y,draging=falsefunction drag_move(e){
if (draging){
New_CW.show(e.screenX-drag_x, e.screenY-drag_y, CW_width, CW_height);
return false;
}
}function drag_down(e){
if(e.button==2)return;
if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height)return;
drag_x=e.clientX;
drag_y=e.clientY;
draging=true;
e.srcElement.setCapture();
}function drag_up(e){
draging=false;
e.srcElement.releaseCapture();
if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height) return;
CW_top = e.screenX-drag_x;
CW_left = e.screenY-drag_y;
}</SCRIPT>
<body></body>
</HTML>
还有那个输入框里的内容好象不能修改
--------------------------------------------------------
<script language="javascript">
window.open("index-1.htm","","width=100,height=100");
window.opener=null; //有这句就不出现提示窗口了
window.close();
</script>
我这里正常呀,没有错误,你那里是不是还有其它代码呀,按你的要求,这五行就是一个文件,别的什么也不用呀,把这个文件设为主文档,一登录就打开他,由他打开另一个你要求的主页。
你可以在google里搜一下window.close试试,应该有答案的。
如果在你那里还是不行,我也没办法了。