IE也有吧,完全控制啊!!
通过window对象的open方法啊???
不知有没有误会大哥您的意思?????????????
通过window对象的open方法啊???
不知有没有误会大哥您的意思?????????????
解决方案 »
- 问个框架问题
- <script type="text/javascript" src="../chatcheck/li 直接在js文件里咋写
- 为何该脚本在ie中可显示但是在firefox中该flash显示不出图片呢?
- ATGrid WEB报表控件打印插件
- 菜鸟问问题
- 如何禁止在输入框中输入中文?
- Input 中的 onKewDown 如何区分输入字符和控制字符? 用 event.keyCode 返回值,包括输入中文
- 为什么不输入用户名,表单还是会提交???在线等
- 哪位大侠有Jbuild的注册号。
- 不能实时显示秒数
- 满分求教如何用javascript编写加密算法
- MARQUEE 问题 100分求教
to einyu:得到本页的窗口大小,:_)
CRect rect;
GetClientRect(&rect);rect.left,rect.right,rect.top,rect.bottomhoho,就来了,当然,需要ActiveX支持,嘿嘿,我也无聊,变态一把,陪fason玩。虽然这家伙一直不LIAO我,亏的我给好玩的让他看,哼!
<script>
function getSize(){
var sHtml='<object id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="MAXIMIZEm"></object>';
if(!document.getElementById("max"))document.body.insertAdjacentHTML("AfterEnd",sHtml);
max.Click();
var w=screen.width-document.body.clientWidth;
var h=screen.height-document.body.clientHeight;
max.Click();
alert("Width:"+(document.body.clientWidth+w)+"\n"+"Height:"+(document.body.clientHeight+h))
}
</script>
<button onClick="getSize()">Test</button>不过觉得open一个容器测试它的边框工具栏和菜单所占的尺寸比较保险
var w=200,h=200,h1=document.body.offsetHeight,w1=document.body.offsetWidth;
window.resizeTo(w,h);
var nw=w-(document.body.offsetWidth-w1),nh=w-(document.body.offsetHeight-h1);
window.resizeTo(nw,nh);
alert("Window Width:"+nw+"\n\nWindow Height:"+nh);
</script>
<script defer>
function showWH(){
if (document.all){
cW=document.body.offsetWidth
cH=document.body.offsetHeight
window.resizeTo(500,500)
barsW=500-document.body.offsetWidth
barsH=500-document.body.offsetHeight
wW=barsW+cW
wH=barsH+cH
window.resizeTo(wW,wH)
}
else {
wW=window.outerWidth
wH=window.outerHeight
}
alert(wW+' '+wH)
}
showWH();
</script>