
js
冬虫999
专注移动30年
展开
-
JS中offsetTop、clientTop、scrollTop、offsetTop各属性介绍
JS中offsetTop、clientTop、scrollTop、offsetTop各属性介绍这里是javascript中制作滚动代码的常用属性页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);转载 2013-02-06 08:46:43 · 676 阅读 · 0 评论 -
IE6 以下 png图片 不透明问题
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((versi转载 2013-02-25 11:12:13 · 372 阅读 · 0 评论 -
js将onclick 放到js文件中
js将onclick 放到js文件中无标题文档 <!-- function testOnclick(){ var myAboutus=document.getElementByIdx('productsActuator'); myAboutus.onclick = function (){转载 2013-03-08 13:09:02 · 1989 阅读 · 0 评论 -
Javascript中document.execCommand()的用法
Javascript中document.execCommand()的用法document.execCommand()方法处理Html数据时常用语法格式如下:document.execCommand(sCommand[,交互方式, 动态参数])其中:sCommand为指令参数(如下例中的”2D-Position”),交互方式参数如果是true的话将显示对话框,如果转载 2013-03-18 11:06:58 · 1059 阅读 · 0 评论