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>
运行代码
查看全文
相关阅读:
在Xampp中添加memache扩展
使用PHP中的curl发送请求
php开启openssl扩展
chisel初见2
chisel初见
数字IC设计之DC(二):DC设置、库和对象
数字IC设计之DC(一):DC简介
IC基础(八):数字电路设计中常用的算法
IC基础(七):FPGA为什么与ASIC频率差异巨大?
IC基础(六):时序分析过程需要的相关计算以及处理方法
原文地址:https://www.cnblogs.com/jikey/p/1744987.html
最新文章
Daily scrum 12.19
Daily scrum 12.18
Daily scrum 12.17
Daily scrum 12.16
模拟镜像服务器磁盘问题的两个测试【转】
转python mysql 转义
冯唐
喜欢的诗
影响SQL Server数据库应用性能的几个常见因素
转MySQL 批量提交优化
热门文章
begin--end和go
ServerName不一致的处理
SSMS客户端报错BUG
备份恢复遇到的bug
MYSQL性能调优
windows安装memcached
Laravel输出sql语句
js判断当前浏览器
mysql查询最新一组数据
有用链接
Copyright © 2011-2022 走看看