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

HTML图片旋转

<html>
<head>
<title> </title>
<script type="text/javascript">
function rotateImage() {
imageToRotate = document.getElementById('imgRotate');         
imageToRotate.style.filter= "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')";
window.setTimeout("rotate()",100);
}
var imageToRotate;
var degreeToRotate=0;
function rotate(){
var deg2radians = Math.PI * 2 / 360;
degreeToRotate++;
degreeToRotate=degreeToRotate%360;                 
rad = degreeToRotate * deg2radians ;
costheta = Math.cos(rad);
sintheta = Math.sin(rad);
imageToRotate.filters.item(0).M11 = costheta;
imageToRotate.filters.item(0).M12 = -sintheta;
imageToRotate.filters.item(0).M21 = sintheta;
imageToRotate.filters.item(0).M22 = costheta;
window.setTimeout("rotate()",100);
}
</script>
</head>
<body onload="rotateImage();">
<br /> 
<canvas id="canvas" width="800" height="600">
<img id="imgRotate" src="http://www.baidu.com/img/logo-yy.gif" />
</canvas>
</body>
</html>
不用JS则为
<img  style="filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.7071,M12=-0.7071,M21=0.7071,M22=0.7071,sizingMethod='auto expand')"
 id="imgRotate" src=" http://www.baidu.com/img/logo-yy.gif" />


相关文档:

HTML事件


转载:http://jiangzhengjun.javaeye.com/blog/480996
事件
DOM同时支持两种事件模式:捕获型事件和冒泡型事件,但是,捕获型事件先发生。两种事件流会触及DOM中的所有对象,从document对象开
始,也在document对象结束(大部分兼容标准的浏览会继续将事件捕获/冒泡延续至window对象),DOM中的元素都会连续收到两次事 ......

修复HTML图标关联

HTML和HTM文件在一次杀毒后都变成了可执行文件图标的样式。在网上搜索了若干方法都不得其解。最后查了一下资料,原来是注册表中有个可有可无的键值的存在造成的,这个就是:
HKEY_CLASSES_ROOT\htmlfile\ShellEx\lconHandler
删除lconHandler后,所有HTML和HTM文件都变成了未知文件的样式,还需要再到“控制面板&rdq ......

html增行

<script   language="javascript">  
  function   newRow()  
  {  
    var   tbl   =   document.all("mytbl");  
    var   row   = &nb ......

html 中cursor的样式


鼠标的多种样式...
<P>&lt;a href="help.htm" style="cursor:hand"&gt;手&lt;/a&gt;
&lt;a href="help.htm" style="cursor:text"&gt;文本&lt;/a&gt;
&lt;a href="help.htm" style="cursor:MOVE"&gt;四个方向的箭头&lt;/a&gt;
&lt;a href="help.htm" st ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号