sdlklhd 发表于 2007-3-16 13:23

网页图片特效

<P>小弟我想要一个图片特效:图片随鼠标滚珠的上下滚动而变化大小.<BR></P>
<P>怎么实现,大家帮帮忙!</P>

sdlklhd 发表于 2007-3-16 14:28

<P>看样子是没人理了,<BR></P>
<P>还好,我已经找到了.[em01][em01]</P>

melack 发表于 2007-3-23 08:35

能分享吗?

cyyu_ryh 发表于 2007-3-23 12:12

就是可以分享吗?<BR>我找了很久没找到,郁闷

sdlklhd 发表于 2007-3-24 07:54

<P>        &lt;script language = "JavaScript"&gt;<BR>            function bbimg(o){<BR>                var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;<BR>                if(zoom&gt;0) o.style.zoom=zoom+'%';<BR>                return false;}<BR>        &lt;/script&gt;<BR></P>
<P>&lt;IMG src="images/lhd/xianjin2006/wmdw.jpg" width="350" height="234" align="textTop" border="0" onmousewheel="return bbimg(this)" onload="javascript:if(this.width&gt;screen.width-600)<BR>this.style.width=screen.width-600;"&gt;</P>

sdlklhd 发表于 2007-3-24 07:54

不知道是不是大家需要的

页: [1]

编程论坛