会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
TomSun
享受编程的快乐!Attitude is everything!
导航
博客园
首页
新随笔
联系
订阅
管理
公告
利用鼠标中键缩放图片
Posted on
2005-09-26 10:27
TomSun
阅读(
544
) 评论(
0
)
编辑
收藏
举报
<
html
>
<
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
>
<
center
><
img
src
="uploadfile/2005115214625668.JPG"
onload
="if(this.width>200)this.width=200"
onmousewheel
= "bbimg(this);"
></
center
>
</
body
>
</
html
>
会员力量,点亮园子希望
刷新页面
返回顶部
Powered by:
博客园
Copyright © 2024 TomSun
Powered by .NET 8.0 on Kubernetes