zoukankan
html css js c++ java
Jq图片渐隐
主要知识点:animate的运用,hover的两个处理
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>豪情</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> *{margin:0;padding:0;font-size:12px;} body{background:#000;} img{cursor:pointer;} </style> <script> $(function(){ $('img').each(function(){ $(this).css('opacity', '0.6'); }).hover(function(){ $(this).animate({opacity:1}); }, function(){ $(this).animate({opacity:0.6}); }); }); </script> </head> <body> <img src="http://www.google.com/intl/en_com/images/srpr/logo1w.png" alt="" /><br /> <img src="http://www.google.com/chrome/intl/zh-CN/images/dlpage_alt.jpg" alt="" /><br /> <img src="http://hiphotos.baidu.com/baidu/pic/item/d27d51afd32062c0fbed508d.jpg" alt="" /> </body> </html>
运行代码
查看全文
相关阅读:
转载、收藏
AndroidStudio 问题收集
android4.4 添加快捷开关(以截屏为例)
打开USB调试功能
关于Http通信
【原创】JMS生产者和消费者【PTP同步接收消息】
【学习】JMS通信模式
【原创】Unable to read TLD "META-INF/c.tld" from JAR file 解决方法
【原创】websphere部署war包报错
【转载】tom的RUNSTATS测试工具
原文地址:https://www.cnblogs.com/jikey/p/1744987.html
最新文章
字符串
带参的方法
类的无参方法
类和对象
字符串
带参数的方法(下)
带参数的方法(上)
人机猜拳(根据自己的想法及逻辑编写的,自行参考!)
类的无参方法!
类和对象
热门文章
反射
单例设计模式
设计模式6大原则
数据结构
链表—单链表
二进制
集合(Collection解析 Set List Map三大集合运用)
深入了解String和intern
String常量池和intern方法
IO流与NIO流
Copyright © 2011-2022 走看看