摘要: function scroll() { //alert(typeof document.getElementById('xx').style.height); document.getElementById('xx').style.height = document.documentElement.clientHeight+"px"; } window.onload = scroll; window.onresize = scroll;跟随浏览器的大小来调整xx元素的高度,在FF3.6和3.6SE,IE8中通过。IE 中: document. 阅读全文
posted @ 2012-09-27 17:22 学永不止步 阅读(2096) 评论(0) 推荐(0) 编辑
摘要: window.top.location=url 可以在iframe中的页面在父窗口刷新打开window.open方法可控制的样式丰富,比如我们可以控制窗口显示的大小,窗口显示的内容,以及位置等等。都是使用js中的window.open有一个缺点就是容易被浏览器屏蔽。本文介绍了js中打开新窗口的各种方法。1,打开新窗口全屏<html><head><title>blue</title><SCRIPT>function ow(owurl){var tmp=window.open("about:blank","& 阅读全文
posted @ 2012-09-27 17:10 学永不止步 阅读(2120) 评论(0) 推荐(0) 编辑