-
js 荧屏 宽度 高度 信息 获得
js屏幕宽度高度信息获得 <script.language="javascript"> functionscreenInfo(){ vars=""; s+="\r\n网页可见区域宽:"+document.body.clientWidth; s+="\r\n网页可见区域高:"+document.body.clientHeight; s+="\r\n网页可见区域宽:"+docum...
450
热度 -
JS失去当前窗口的所有大小值
JS得到当前窗口的所有大小值 JS得到当前窗口的所有大小值 s=""; s+="\r\n网页可见区域宽:"+document.body.clientWidth; s+="\r\n网页可见区域高:"+document.body.clientHeight; s+="\r\n网页可见区域宽:"+document.body.offsetWidth+"(包括边线和滚动条的宽)"; s+="\r\n网页可见...
99
热度 -
javascript 获取荧屏及浏览器大小和坐标等
javascript获取屏幕及浏览器大小和坐标等 网页可见区域宽:document.body.clientWidth?网页可见区域高:document.body.clientHeight?网页可见区域宽:document.body.offsetWidth(包括边线的宽)?网页可见区域高:document.body.offsetHeight(包括边线的宽)?网页正文全文宽:document.body...
113
热度 -
javascript 获取网页阔高。信息
javascript获取网页宽高。。信息 document.body.clientWidth网页可见区域宽 document.body.clientHeight网页可见区域高 document.body.offsetWidth网页可见区域宽(包括边线的宽) document.body.offsetHeight网页可见区域高(包括边线的宽) document.body.scrollWidth网页正文...
147
热度 -
获取滚动条搬动的距离
获取滚动条移动的距离 <script> window.onscroll=function(){ document.getElementById('num_para').value='top:'+document.body.scrollTop+'left:'+document.body.scrollLeft; } </script> <inputtype="text...
221
热度 -
js获得屏幕高度与宽度
js取得屏幕高度与宽度 网页可见区域高:document.body.clientHeight 网页可见区域高:document.body.offsetHeight(包括边线的高) 网页正文全文高:document.body.scrollHeight 屏幕分辨率的高:window.screen.height 屏幕可用工作区高度:window.screen.availHeigh...
70
热度 -
封闭窗口无提示
关闭窗口无提示 <html><body><script>window.opener=null;window.open('','_self');window.close()</script></body></html>
302
热度 -
判断页面是不是有window、messager显示
判断页面是否有window、messager显示 判断页面是否有window、message显示 ? ? ? /** *页面是否已经打开window框 */ functionhasWindow(){ varlen=$(".messager-body").length; if(len==0){ returnfalse; }else{ returntrue; } }...
141
热度 -
网页惯用的各种尺寸
网页常用的各种尺寸 //各种尺寸s?+=?"\r\n网页可见区域宽:"+?document.body.clientWidth;??s?+=? "\r\n网页可见区域高:"+?document.body.clientHeight;??s?+=?"\r\n网页可见区域高:"+? document.body.offsetWidth?+"?(包括边线的宽)";??s?+=?"\r\n网页可见区域高:"+?...
116
热度 -
大局出发写网页
全局出发写网页 <SCRIPTLANGUAGE="JavaScript"><!-- vars="";s+="网页可见区域宽:"+document.body.clientWidth;s+=" 网页可见区域高:"+document.body.clientHeight;s+="网页可见区域宽:"+ document.body.offsetWidth+"(包括边线和滚动条的宽)";s+=...
166
热度 -
iframe 背景透明,让iframe页面和当前的页面的背景色保持一致的方法
iframe背景透明,让iframe页面跟当前的页面的背景色保持一致的方法 1.设置iframe的这个属性allowtransparency="true"2.把嵌入iframe中的页面<body>改为:<bodystyle="background-color:transparent">完成
30
热度 -
清一纸空文件选择框<input type="file">的方法
清空文件选择框<inputtype="file">的方法 functionclearFileInput(file){ varform=document.createElement('form'); document.body.appendChild(form); varpos=file.nextSibling; form.appendChild(file)...
122
热度 -
Opera与Firefox的一个差别
Opera与Firefox的一个区别. varf=document.createElement("FORM"); ... ... ... document.body.appendChild(f); f.submit();document.body.appendChild(f);如果少了这一行的话,Firefox下提交是不成功的.而Opera则可以提交.
120
热度 -
各种网页的宽度跟高度
各种网页的宽度和高度 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth(包括边线的宽)网页可见区域高:document.body.offsetHeight(包括边线的宽)网页正文全文宽:document.body.scrollWidth网页正文全文...
79
热度 -
回车登录 鼠标焦点到某个具体对象下
回车登录鼠标焦点到某个具体对象上 <scriptlanguage="javascript"> functiondocument.onkeydown(){ if(event.keyCode==13){ document.getElementById("enter").click(); returnfalse; } } </script> <body> <in...
117
热度 -
Jquery获取当前荧屏的宽度、高度
Jquery获取当前屏幕的宽度、高度 <scripttype="text/javascript">$(document).ready(function(){alert($(window).height());//浏览器当前窗口可视区域高度alert($(document).height());//浏览器当前窗口文档的高度alert($(document.body).height());...
321
热度 -
怎么获取全屏高度包括滚动条
如何获取全屏高度包括滚动条如何获取全屏高度包括滚动条document.body.offsetWidth只能获取不包括滚动条的高度color='#e78608'>------解决方案--------------------document.body.scrollHeight
249
热度 -
客户端js 结构<a > 下载文件
客户端js构造<a>下载文件 //动态创建一个连接元素添加到body里面,并通过js控制执行click事件下载文件--发现这个很吊 varnewElement=document.createElement('a'); newElement.setAttribute("href","data.zip") document.body.appendChild(newElement); new...
303
热度 -
html自动刷新代码解决方法
html自动刷新代码整个页面载入完成以后自动刷新的代码color='#e78608'>------解决方案-------------------- <bodyonload="window.location.reload()">or<bodyonload="setTimeout('window.location.reload()',6000)"...
50
热度 -
急一个简单有关问题:javascript属性或事件!
急,一个简单问题:javascript属性或事件!!!点击窗体(body)里的一个按钮时,不触发body的onclick事件,我记得是有一个属性或什么事件的请帮助!!!color='#e78608'>------解决方案-------------------- event.cancelBubble=true
74
热度