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>
运行代码
查看全文
相关阅读:
[MySQL]You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
mysql的索引
Mysql中的Btree与Hash索引
Tomcat集群的session共享
Linux常用命令总结
docker elk
docker+mysql+zabix-server环境搭建
centos7系统服务管理
Linux vim常用命令
linux系统日志查看
原文地址:https://www.cnblogs.com/jikey/p/1744987.html
最新文章
〔转载〕深度学习中的几种激活函数
Keras学习笔记1--基本入门
(转)使用Excel批量给数据添加单引号和逗号
python 文字转语音包pyttsx安装出错解决方法
selenium.common.exceptions.ElementNotVisibleException: Message: element not visible处理方法:selenium针对下拉菜单事件的处理
python中的generator, iterator, iterabel
工作一月总结
“死锁” 与 python多线程之threading模块下的锁机制
同步,异步,阻塞,非阻塞以及几种常见的服务器模型
【翻译】使用nginx作为反向代理服务器,uWSGI作为应用服务器来部署flask应用
热门文章
python3下的super()
《scraping with python》
python面对对象编程----------7:callable(类调用)与context(上下文)
python面对对象编程---------6:抽象基类
python面对对象编程-------5:获取属性的四种办法:@property, __setattr__(__getattr__) ,descriptor
storm的acker机制
【数据挖掘基础算法】KNN最近邻分类算法
消息队列
FreeMarker使用之比较if
[Spring Data JPA问题]Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException
Copyright © 2011-2022 走看看