易截截图软件、单文件、免安装、纯绿色、仅160KB

关于javascript判断文件大小

<script type="text/javascript">  
function getFileSize(filePath) {  
   var image=new Image();  
   image.dynsrc=filePath;  
   alert(image.fileSize);  
}  
</script>  
<body>  
<INPUT TYPE="file" NAME="file" SIZE="30" onchange="getFileSize(this.value)">  
</body>


相关文档:

JavaScript 获取对象的高度和宽度详细说明

scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......

JavaScript中的面向对象 类


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

Javascript检测Media Player版本!

      在web开发过程中,经常会出现因为客户端的某些软件版本问题,而导致种种问题。这来天就因为Media Player版本的问题,引发了一个不大不小的问题。在调用Media Player播放视频的时候,Media Player9竟然播放不了 ...  ...
 
不多说了,还是贴代码吧!
 
<html xmlns="h ......

JavaScript CSS Style属性参考

CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)
border   border
border-bottom   borderBottom
border-bottom-color   borderBottomColor
border-bottom-style   borderBottomStyle
border-bottom-width   borderBottomWidth
border-color   borderColor
border-left   borderLeft ......

javascript中replace的正则表达式语法

replace
方法
以下是javascript
中的例子
下面的示例演示了 replace
方法将第一次出现的单词 "The"
替换为单词 "A"
的用法。
function ReplaceDemo(){
   var r, re;                 & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号