jQuery最后案例
来源:互联网 发布:说话技巧 叶名琛 知乎 编辑:程序博客网 时间:2024/06/08 16:59
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>jQuery动画(最后案例)</title><style type="text/css"> img{ position:relative; } #d1{ border:2px solid red; width:400px; height:200px; position:fixed; top:100px; right:-330px; } #d2{ border:2px solid #CCC; width:200px; height:50px; position:fixed; right:0; bottom:0; background-color:pink; text-align:center; line-height:50px; display:none; }</style><script type="text/javascript" src="../js/jquery-1.11.1.js"></script><script type="text/javascript"> $(function(){$("input:button:eq(0)").click(function(){ $("img").fadeIn(2000);});$("input:button:eq(1)").click(function(){ $("img").fadeOut(2000);});$("input:button:eq(2)").click(function(){ $("img").animate({"left":"200px"},2000) .animate({"top":"200px"},1000) .animate({"left":"0"},1000) .animate({"top":"0"},1000);});//单击时显示删除成功$("input:button:eq(3)").click(function(){ $("#d2").fadeIn(500).fadeOut(2500);});//悬浮弹框 $("#d1").hover( function(){ $(this).animate({"right":"0"},500); }, function(){ $(this).animate({"right":"-330px"},1000); } ); });</script></head><body> <input type="button" value="显示"/> <input type="button" value="隐藏"/> <input type="button" value="图片移动"/> <input type="button" value="删除"/> <p><img src="../images/02.jpg" /></p> <div id="d1">悬浮弹框</div> <div id="d2">删除成功</div></body></html>
0 0
- jQuery最后案例
- jQuery 案例
- jQuery 案例
- jQuery案例
- jquery初学者学习案例
- jQuery Ajax 案例 Demo
- JQuery案例(笔记)
- jquery.formValidator 验证案例
- jquery的选择器案例
- jQuery案例小七个
- jQuery案例----左右移动
- jquery 小案例
- 常用的jquery案例
- jquery插件案例
- JQuery 球队选择案例
- jQuery Autocomplete简单案例
- Jquery Datepicker操作案例
- jquery操作案例版
- python-socket-udp编程
- Unity基础.002Transform场景物体的变换
- svn
- Hibernate-简单完成crud
- 【java】嵌套矩形
- jQuery最后案例
- hdu2065 “红色病毒” 指数型母函数
- Java回炉重造(一)Socket的客户端和服务端通信
- JS字符串对象
- ExpandableListView中item的定位问题
- 数据结构—链表-链式存储
- 初学web前端-20170424
- Android Studio 常用快捷键整理
- 无法插入中文修改mysql表的编码格式