随笔分类 -  jQuery

jQuery's learning & study
摘要:小技巧 阅读全文
posted @ 2011-05-20 15:00 Reibin 阅读(406) 评论(0) 推荐(0) 编辑
摘要:内容持续滚动;微博将下面的微博先推下去,然后淡入进来;鼠标经过内容暂停滚动;容器底部渐变消失在背景色下。 阅读全文
posted @ 2011-03-25 17:34 Reibin 阅读(3714) 评论(1) 推荐(0) 编辑
摘要:小模块系列均基于jQuery,归纳工作中随时做的可重用的小东西 阅读全文
posted @ 2010-12-21 20:23 Reibin 阅读(1379) 评论(1) 推荐(0) 编辑
摘要:jQuery学习笔记 阅读全文
posted @ 2010-12-08 18:06 Reibin 阅读(1364) 评论(0) 推荐(0) 编辑
摘要:jQuery学习笔记 阅读全文
posted @ 2010-12-07 14:28 Reibin 阅读(1018) 评论(1) 推荐(0) 编辑
摘要:jQuery学习笔记 阅读全文
posted @ 2010-12-06 02:06 Reibin 阅读(906) 评论(1) 推荐(0) 编辑
摘要:jQuery制作返回页面顶部按钮 阅读全文
posted @ 2010-09-16 18:13 Reibin 阅读(10236) 评论(19) 推荐(9) 编辑
摘要:jQuery工具部分在前三篇中已经归纳完毕备查。从本章起本文进入应用范例部分,进入范例部分后,所有的代码我都使用最扼要的方式重写并详细注释,较大的例子按功能拆分成为较小的例子来说明。 一、表单应用 1 获取和失去焦点改变样式(P142) $(function(){$(":input").focus( 阅读全文
posted @ 2010-04-29 06:31 Reibin 阅读(1734) 评论(2) 推荐(2) 编辑
摘要:二、动画 1 show()方法和hide()方法 $("selector").show() 从display:none还原元素默认或已设置的display属性$("selector").hide() 设置元素的display样式为none,等于$("selector").css("display", 阅读全文
posted @ 2010-03-24 14:44 Reibin 阅读(1410) 评论(1) 推荐(2) 编辑
摘要:一、事件 1 加载DOM $(document).ready(function(){...}) // DOM加载完毕后执行,在可重复使用上区别于window.onload=function(){...} $(window).load(function(){...}) // window内所有对象加载 阅读全文
posted @ 2010-03-23 22:48 Reibin 阅读(928) 评论(0) 推荐(0) 编辑
摘要:<style> li{ float:left; list-style:none; padding:3px;} img{ border:#CCC 1px solid;} #tooltip{ display:none; border:#CCC 1px solid; position:absolute;} 阅读全文
posted @ 2010-03-23 10:47 Reibin 阅读(530) 评论(0) 推荐(0) 编辑
摘要:12 设置和获取HTML、文本和值 $("selector").html() 获取html代码 $("selector").html(html) 设置html代码(替换标签中内容),html()方法不可用于XML文档 $("selector").text() 获取纯文本内容 $("selector" 阅读全文
posted @ 2010-03-22 14:03 Reibin 阅读(840) 评论(2) 推荐(0) 编辑
摘要:1 查找元素节点 var $x = $("selector").text() 2 查找属性节点 var $x = $("selector").attr("property") 3 创建节点 var $x = $("html") 4 插入节点 $("selector").append() // 向每个 阅读全文
posted @ 2010-03-19 18:11 Reibin 阅读(726) 评论(0) 推荐(1) 编辑
摘要:1 基本选择器 $(#id) // 根据给定的id匹配一个元素 $(.class) // 根据给定的类名匹配元素 $(element) // 根据给定的元素名匹配元素 $(*) // 匹配所有元素 $(selector1,selector2,...,selectorN) // 将每一个选择器匹配到的 阅读全文
posted @ 2010-03-19 16:24 Reibin 阅读(1008) 评论(4) 推荐(1) 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><input value="请输入用户名" type="text"><input value="请输入密 阅读全文
posted @ 2010-03-19 11:29 Reibin 阅读(3685) 评论(0) 推荐(0) 编辑
摘要:以下两段jQuery是等价的 1 使用toggleClass实现class值的交替 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$("#in1"). 阅读全文
posted @ 2010-03-18 17:30 Reibin 阅读(718) 评论(0) 推荐(0) 编辑

日志版权保留,转载请注明来自http://www.cnblogs.com/bienfantaisie