<script>
<!-- fnSetRotation function -->
var deg2radians = Math.PI * 2 / 360;
var nowDeg=0
function fnSetRotation(oObj, deg)
{ nowDeg=nowDeg+deg
rad = nowDeg * deg2radians ;
costheta = Math.cos(rad);
sintheta = Math.sin(rad);
oObj.filters.item(0).M11 = costheta;
oObj.filters.item(0).M12 = -sintheta;
oObj.filters.item(0).M21 = sintheta;
oObj.filters.item(0).M22 = costheta;
}
</script><table>
<tr>
<td style="width: 31px" bordercolor="lightblue">
<img id="ImageLeft" onmouseover="swapImage(this)" title="逆时针旋转90度" onclick="fnSetRotation( oDiv,-90)"
onmouseout="unswapImage(this)" height="31" src="../images/showimgtools/turnLeft.jpg"
width="31" runat="server">
</td>
<td> </td>
</tr>
<tr>
<td>
<div id="oDiv" style="z-index: 101; filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand');
position: absolute; top: 0px">
<div id="oDiv1" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px;
padding-top: 5px; background-color: lightblue">
<img id="Image_pvis" src="" align="middle" runat="server" />
</div>
</div>
</td>
</tr>
</table>
<!-- fnSetRotation function -->
var deg2radians = Math.PI * 2 / 360;
var nowDeg=0
function fnSetRotation(oObj, deg)
{ nowDeg=nowDeg+deg
rad = nowDeg * deg2radians ;
costheta = Math.cos(rad);
sintheta = Math.sin(rad);
oObj.filters.item(0).M11 = costheta;
oObj.filters.item(0).M12 = -sintheta;
oObj.filters.item(0).M21 = sintheta;
oObj.filters.item(0).M22 = costheta;
}
</script><table>
<tr>
<td style="width: 31px" bordercolor="lightblue">
<img id="ImageLeft" onmouseover="swapImage(this)" title="逆时针旋转90度" onclick="fnSetRotation( oDiv,-90)"
onmouseout="unswapImage(this)" height="31" src="../images/showimgtools/turnLeft.jpg"
width="31" runat="server">
</td>
<td> </td>
</tr>
<tr>
<td>
<div id="oDiv" style="z-index: 101; filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand');
position: absolute; top: 0px">
<div id="oDiv1" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px;
padding-top: 5px; background-color: lightblue">
<img id="Image_pvis" src="" align="middle" runat="server" />
</div>
</div>
</td>
</tr>
</table>
解决方案 »
- jquery 判断两个字符串是否相似
- 深入浅出ExtJS 第二版 第二章最后一个实例autoload出不来
- 为什么这个if语句不能执行
- js控制表格
- 返回函数的 ture or flase 如何判断??
- JS打开[保存文件对话框]出错:Automation server can't create object
- 一共有3个文字链接,怎样点击其中的一个链接后文字变粗,另两个不变粗?反之亦然?
- 求大哥们,jquery一个name选择器的写法。
- 谁知道鼠标应用在网页中的新技术!(40分)
- 一个简单问题!关于下拉列表框!
- 各位大哥帮帮忙呀,关于用javascript导出数据到excel中的问题
- 关于checkbox的个数的问题,急急!!
unswapImage(this)
这两个函数没有定义,去丢看看...