随笔分类 -  jQuery

摘要:使用方法: 1、下载wookmark.js 2、构建html 3、直接js调用则 如果是jquery调用则: 参数说明: align – "left", "right", 和"center" autoResize – 如果为 "true", 浏览器改变大小后更新图层 resizeDelay – 默认 阅读全文
posted @ 2016-09-05 22:29 tinyphp 阅读(1579) 评论(0) 推荐(0) 编辑
摘要:js框架很多的情况下,很容易出现冲突,建议使用noConflict代替$//消除$对jquery缩写$.noConflict();//使用了noConflict后,用$就会无效,应用jQueryjQuery(document).ready(function(){ console.log("sd... 阅读全文
posted @ 2015-10-12 18:15 tinyphp 阅读(221) 评论(0) 推荐(0) 编辑
摘要:有时候需要在jQuery基础上做属于自己的功能 Document myquery.js 扩展文件// $.myjq=function(){// alert("myjQuery");// }$.fn.myjq=function(){ $(thi... 阅读全文
posted @ 2015-10-12 17:41 tinyphp 阅读(232) 评论(0) 推荐(0) 编辑
摘要:切换布局: 切换练习 标签1 标签2 标签3 标签1内容 标签2内容 标签3内容 body{font-size: 1... 阅读全文
posted @ 2015-10-12 17:08 tinyphp 阅读(277) 评论(0) 推荐(0) 编辑
摘要:fullPage.js 是一个基于 jQuery 的插件,它能够很方便、很轻松的制作出全屏网站。用法:1、引入jquery2、引入fullPage3、每个section代表一屏4、js启动:$(function(){ $('#dowebok').fullpage();});完整实例: ... 阅读全文
posted @ 2015-09-30 16:25 tinyphp 阅读(562) 评论(0) 推荐(0) 编辑
摘要:内容涉及:php、分页、jquery、div+css实例下载:http://download.csdn.net/detail/roro5119/7373905index.php延迟加载" alt="" width="200" height="200">数据正在加载...异步文件:" alt="" w... 阅读全文
posted @ 2014-05-20 11:43 tinyphp 阅读(10503) 评论(0) 推荐(0) 编辑
摘要:$(window).scrollTop(); 滚动条距顶部距离(页面超出窗口的高度)$(document).scrollTop(); 滚动条到顶部的垂直高度$(document).height() 页面的文档高度$(window).height() 窗口的高度高度 阅读全文
posted @ 2014-05-19 10:53 tinyphp 阅读(241) 评论(0) 推荐(0) 编辑
摘要:demo名字:提示a.php打印下$_GET得到:Array( [name] => tom [age] => 10) $(this).serialize() 相当于 name=tom&age=10相关文章:http://www.w3school.com.cn/jquery/ajax_serialize.asp 阅读全文
posted @ 2014-03-24 23:39 tinyphp 阅读(532) 评论(0) 推荐(0) 编辑
摘要:提要:$.get("异步文件",数值,回调函数);加载XML文档a.xml java Gaosilin Python 卡卡 $.get()方法 $(document).ready(function() { $('a').click(function() { $.get('a.xml',function(data){ $(data).find('book').each(function() ... 阅读全文
posted @ 2014-03-18 22:43 tinyphp 阅读(357) 评论(0) 推荐(0) 编辑
摘要:首先去网站http://lab.smashup.it/flip/下载插件简单应用:翻版 1 2 3 4 5 6 Flip 提供的全部属性有:content定义翻转后元素的新内容,可以是:文本 、 HTML 或 jQuery 对象direction定义元素翻转的方向,可选:tb 上到下 /bt 下到上 /lr 左到右 /rl 右到左 ,默认为 tbcolor定义元素翻转后的背景颜色,默认是 #999999 (从 Firebug 查看得知)spee... 阅读全文
posted @ 2014-03-15 16:26 tinyphp 阅读(1581) 评论(0) 推荐(0) 编辑
摘要:jquery使用cookie需要引入cookie插件:插件下载地址:http://plugins.jquery.com/cookie/cookie设置、获取和删除 设置cookie1 设置cookie2 获取cookie 删除cookie 阅读全文
posted @ 2014-03-10 15:54 tinyphp 阅读(262) 评论(0) 推荐(0) 编辑
摘要:a.下载扩展插件:jQuery_API.mxpb.选择菜单栏:命令->扩展管理,选择刚下载的文件安装c.重启DW可以看到 阅读全文
posted @ 2014-03-06 11:17 tinyphp 阅读(448) 评论(0) 推荐(0) 编辑
摘要:为函数添加一个参数,这个参数保留着这个对象。而参数的.target属性保留着事件发生的目标元素。方法一:确定目标对象.target方法二:防止事件传播.stopPropagation() 阅读全文
posted @ 2014-02-16 22:23 tinyphp 阅读(207) 评论(0) 推荐(0) 编辑
摘要:环境关键字this引用的是DOM元素$(this)是jQuery对象下面点击按钮分别alert一下alert(this);alert($(this));获取DOM对象的属性id,可以$(this).attr('id');或this.id;他们的关系为 $(this)[0]==this 阅读全文
posted @ 2014-02-12 16:09 tinyphp 阅读(271) 评论(0) 推荐(0) 编辑
摘要:简单的例子:$.ajax({ type:"post", data:{a:acon,b:bcon} , url:"ajax.php", async:false ...})type ---传递方式,get或postdata ---传递参数,相当于传了a=acon给ajax.phpurl ---异步执行文件async ---默认为true,不等返回结果继续执行; false,等待返回结果后才继续执行。一般选择为false 阅读全文
posted @ 2014-01-28 16:50 tinyphp 阅读(252) 评论(0) 推荐(0) 编辑
摘要:click bind live 点击效果:使用 live() 方法向新创建的元素添加事件处理器相关文章:jQuery的.bind()、.live()和.delegate()之间区别 阅读全文
posted @ 2014-01-04 11:37 tinyphp 阅读(501) 评论(0) 推荐(0) 编辑
摘要:jQuery旋转插件,支持Internet Explorer 6.0+ 、Firefox 2.0 、Safari 3 、Opera 9 、Google Chromerotate(angle)正值表示顺时针方向旋转,负值表示逆时针方向旋转。jqueryRotate下载使用方法:旋转到指定角度$("ID").rotate(45); 更多可以测试:http://jsfiddle.net/RwEme/防止运行时重复点击应用实例:幸运大转盘:http://www.helloweba.com/view-blog-215.html 阅读全文
posted @ 2013-12-24 18:16 tinyphp 阅读(934) 评论(0) 推荐(0) 编辑
摘要:$(".a").css("display")=="none" ?$(".a").css("display","block"):$(".a").css("display","none"); $(".b").css("display")=="none" ?$(".b").css("display","block& 阅读全文
posted @ 2013-11-11 18:24 tinyphp 阅读(321) 评论(0) 推荐(0) 编辑
摘要:实例:$(function(){ $('#copy_input').zclip({ path: 'js/ZeroClipboard.swf', copy: function(){//复制内容 return $('#mytext').val(); }, afterCopy: function(){//复制成功 $("").insertAfter($('#copy_input')).text('复制成功'); } });});值得注意的是如果是复制的内容来自输入框input... 阅读全文
posted @ 2013-10-29 18:13 tinyphp 阅读(9821) 评论(1) 推荐(0) 编辑
摘要:上面的check函数可以简写为:function check(){ return a() && b() ? true :false;} 阅读全文
posted @ 2013-10-29 15:00 tinyphp 阅读(403) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

了解更多