不是高手别说话!!!IE全自动关闭! 问题!

一平1 2003-09-15 11:54:36
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language=javascript>

function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr)
{
var contents="<html>"+
"<head>"+
"<title>"+titleWord+"</title>"+
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">"+
"<object id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+
"</head>"+
"<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false'>"+
" <table height=100% width=100% cellpadding=0 cellspacing=1 bgcolor="+titleBg+" id=mainTab>"+
" <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
" <td >"+
" <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+
" </td>"+
" </tr>"+
" </table>"+
"</body>"+
"</html>";

pop=window.open("","_bank","fullscreen=yes");
pop.resizeTo(w,h);
pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
pop.document.writeln(contents);


}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>cavtc</title>
</head>

<body onLoad="noBorderWin('index.swf','screen.width','screen.height','','','','cavtc','no')">

<script language="javascript">
window.setTimeout("ccc()",2000);
function ccc()
{
self.close();
}
</script>



</body>
</html>


提问:
1.以上代码为什么在个别机子上的不能全屏? 只有一个小小的窗口.你可以试一下!多试几台机子!
2.它自动关闭时为什么要弹一个对话框呀!(不要它弹出来!)
...全文
55 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
一平1 2003-09-17
  • 打赏
  • 举报
回复
activex
谁会呀! 急呀!!!
liuruhong 2003-09-16
  • 打赏
  • 举报
回复
偶也闭嘴了啊,不然怕被打 ^=^
李世垚 2003-09-16
  • 打赏
  • 举报
回复
小菜一碟
可是 由于你的“不是高手不说话” 我就不告诉你了 我最讨厌故弄玄虚的人了
chinahuman 2003-09-16
  • 打赏
  • 举报
回复
应该是由于版本不同引起的,IE6以下的版本不提示就关闭不容易,除非自己作了一些activex控件来实现
lansquenet 2003-09-16
  • 打赏
  • 举报
回复
1.screen.availHeight
screen.availWidth

2.<script language='javascript'>
window.opener=null;
window.close();
</script>
随风奔跑 2003-09-15
  • 打赏
  • 举报
回复
我不说话,我只打字。
关闭窗口的提示,版本不同是不一样的。

俺没有说话的,打字有效的也只有一份。
一平1 2003-09-15
  • 打赏
  • 举报
回复
楼上的,
谢谢了!
我去试!!
blues-star 2003-09-15
  • 打赏
  • 举报
回复
2.<script language='javascript'>
window.operen=null;
window.close();
</script>

window.opener = null;
awaysrain 2003-09-15
  • 打赏
  • 举报
回复
好,我不说话
lansquenet 2003-09-15
  • 打赏
  • 举报
回复
1.screen.availHeight
screen.availWidth

2.<script language='javascript'>
window.operen=null;
window.close();
</script>

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧