Home > Web Front-end > JS Tutorial > JS image scaling effect code_image special effects

JS image scaling effect code_image special effects

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 18:25:22
Original
1104 people have browsed it
复制代码 代码如下:




onMouseWheel
<SCRIPT> <br>var count = 10; <br>function Picture() <br>{ <br>count = Counting(count); <br>Resize(count); <br>return false; <br>} <br>function Counting(count){ <br>if (event.wheelDelta >= 120) <br>count ; <br>else if (event.wheelDelta <= -120) <BR>count--; <BR>return count; <BR>} <BR>function Resize(count){ <BR>oImage.style.zoom = count '0%'; <BR>oCounter.innerText = count '0%'; <BR>} <BR></SCRIPT>



Size =
100%





Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template