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>
运行代码
查看全文
相关阅读:
保罗·多兰《设计幸福》阅读笔记
依梦随忆(她)
科技与人性的交汇处----人和机器人的边际在哪里?
luogu 5月月赛 #A
luogu P3916 图的遍历
数论基础之组合数&计数问题
洛谷——P3173 [HAOI2009]巧克力
洛谷——P1748 H数
洛谷——P1404 平均数
POJ2454——Jersey Politics
原文地址:https://www.cnblogs.com/jikey/p/1744987.html
最新文章
重新整理过去的板子
Luogu P1091 合唱队形
Luogu P2661 信息传递
Luogu P1052 过河
POJ P2096 Collecting Bugs
Luogu P1063 能量项链
开坑---动态规划大法吼
Luogu P2822 组合数问题
Luogu P2341 [HAOI2006]受欢迎的牛
Luogu P4549 裴蜀定理 / Min
热门文章
裴蜀(贝祖)定理及其证明
luogu 1113 杂务--啥?最长路?抱歉,我不会
整理几个牛人博客以及OJ
语言保留字
倍增实现LCA
高斯消元详解
欧几里得与扩展
CentOS 安装Python3.x常见问题
[转]CentOS 7安装Python3.6过程(让linux系统共存Python2和Python3环境)
约瑟夫坎贝尔 《千面英雄》阅读笔记
Copyright © 2011-2022 走看看