图片放大缩小代码
2007-05-15 11:43
239 查看
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片缩放演示</title>
<script language="javascript">
function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
</script>
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<img onmousewheel="return bbimg(this)" src="winxp.gif" width="466" height="129"> '在IMG中添加onmousewheel="return bbimg(this)"属性 </td>
</tr>
</table>
</body>
</html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片缩放演示</title>
<script language="javascript">
function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
</script>
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<img onmousewheel="return bbimg(this)" src="winxp.gif" width="466" height="129"> '在IMG中添加onmousewheel="return bbimg(this)"属性 </td>
</tr>
</table>
</body>
</html>
相关文章推荐
- js实现用滚动条来放大缩小图片的代码
- JS实现鼠标滚轮缩小放大拖动图片代码
- j2me 放大缩小图片代码
- 网页中图片放大缩小代码
- 鼠标在图片上滚动放大或者缩小图片的代码
- hammer使用: 代码:捏合、捏开、图片放大 的一个手机图片“放大缩小可拖动”的小效果
- 图片放大缩小的区域点击事件代码例子
- Android中imageView图片放大缩小及旋转功能示例代码
- iPhone 开发中如何将制作图片放大缩小代码实现案例
- 通过Java代码实现图片的放大和缩小
- JS实现控制图片放大缩小代码
- 鼠标在图片上滚动放大或者缩小图片的代码
- IOS 图片放大缩小移动,使用block精简代码
- 通过Java代码实现图片的放大和缩小
- 图片放大缩小的区域点击事件代码例子
- iPhone 上图片放大缩小的代码例子
- (纯代码)图片移动放大缩小:
- javascript 图片放大缩小功能实现代码