惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
H
Help Net Security
I
Intezer
G
Google Developers Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Troy Hunt's Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
J
Java Code Geeks
S
Security Affairs
T
The Blog of Author Tim Ferriss
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
The GitHub Blog
The GitHub Blog
F
Full Disclosure
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs
腾讯CDC
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
T
Threatpost
D
DataBreaches.Net
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
L
LINUX DO - 最新话题
Google Online Security Blog
Google Online Security Blog
S
Schneier on Security
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Help Net Security
Help Net Security
P
Proofpoint News Feed
Project Zero
Project Zero
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗

博客园 - 站得更高,看得更远

使用ServletContextListener在服务器启动和关闭时创建和关闭缓存 Tomcat的class加载的优先顺序一览 汉字转拼音缩写 - 站得更高,看得更远 - 博客园 tomcat 中解决打开xls文件的乱码问题 弹出窗口居中 弹出窗口大全(js) 网页常用小技巧(JavaScript) - 站得更高,看得更远 - 博客园 Javascript 小技巧集 LookupDispatchAction, MappingDispatchAction深入分析 Strus 2的新表单标志的使用 Struts 2与AJAX(第二部分) Struts 2与AJAX(第一部分) Struts 2中的OGNL 常用的Struts 2.0的标志(Tag)介绍 在Struts 2.0中国际化(i18n)您的应用程序 在Struts 2.0中实现表单数据校验(Validation) 在Struts 2中实现IoC 在Struts 2中实现文件上传 转换器(Converter)——Struts 2.0中的魔术师
鼠标在图片上滚动放大或者缩小图片的代码 - 站得更高,看得更远 - 博客园
站得更高,看得更远 · 2008-11-11 · via 博客园 - 站得更高,看得更远

<HTML>
<HEAD>


<TITLE>onMouseWheel Event Sample</TITLE>

<!-- <LINK REL="stylesheet" HREF="/workshop/basicSDKIE4.css" TYPE="text/css"> -->

<STYLE>
BODY
{
 background
:#FFFFFF;
 color
:black;
 font-size
:.75em;
 font-family
:verdana;
 
}

H1 
{
 color
:#3366CC;
 font-size
:1.5em;
 
}

IMG 
{ 
    border
:2px solid #000000;
    margin
:10px;
 
}
 
A  
{
 color
:#3366CC;
 text-decoration
:none;
 
}
   
</STYLE>
<SCRIPT>
var count = 10;

function Picture()
{
 count 
= Counting(count);
 Resize(count);
 
return false;
}


function Counting(count){   
        
if (event.wheelDelta >= 120)
                count
++;
        
else if (event.wheelDelta <= -120)
                count
--;   
   
return count; 
}

function Resize(count){
    
       oImage.style.zoom 
= count + '0%';
    oCounter.innerText 
= count + '0%';    
}

</SCRIPT>

</HEAD>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<BODY>

<h1>onmousewheel event</h1>
<P>
This sample uses the onmousewheel event to expand or contract the picture below. 
<br><br>

Move the cursor over the picture and roll the mouse wheel up and down.
</P>
<span style="font-weight:bold">Size = 
<span id="oCounter" style="color:red;">100%</span></span>
<br>
<img id="oImage" src="/workshop/graphics/sprinter.jpg" onmousewheel="return Picture();" >

<br>
<br>
<br>
<CLASS="clsIncCpyRt" HREF="http://www.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top">&copy; 2006 Microsoft Corporation. All rights reserved. Terms of use</A>.
</BODY>
</HTML>

posted on 2008-11-11 21:57  站得更高,看得更远  阅读(671)  评论(0)    收藏  举报