![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
brown_zyn
这个作者很懒,什么都没留下…
展开
-
jquery 搜索自动提示(autocomplete插件用法)
1.用autocomplete插件前要加载,(js文件和css样式文件)两个文件 <script src="/javascripts/jquery-ui-1.8.14.custom.min.js" language="javascript"></script> <link href="/stylesheets/jquery-ui-1.8.14.custom.c...原创 2012-02-09 15:43:21 · 353 阅读 · 0 评论 -
jquery 图片间隙滚动
1.先引进jquery.js框架, 与有些网站上的image_scroller.js插件有些不一样,实现定时滚动和鼠标停留时停止滚动。 2.css样式: <style> .shares{width:300px;height:500px;overflow:hidden;} .sharesbox li{float:left;} </style...原创 2012-07-02 11:30:05 · 83 阅读 · 0 评论 -
jquery 无间隙滚动
1.js文件里的配置: / * 相关参数 'marquee':'x', \\ 设置滚动方向,提供 marquee:x 或 marquee:y 'margin_bottom':'0', \\ 设置margin_bottom值 'margin_right':'0', \\ 设置margin_right值 'speed':'10' \\ 设置滚...原创 2013-03-07 15:38:33 · 123 阅读 · 0 评论 -
新jquery框架 注意点
1. .on和off 載入相同的.live()、.delegate()和.bind() 注意: $("li").live("click", function(){ alert(222); }); 改为on,代码如下: $(document).on("click", "li", function(){ alert(333); }); ...原创 2013-03-07 16:20:16 · 67 阅读 · 0 评论 -
rails3 will_paginate ajax分页
方法一: 1.view层(lists/show.html.erb) < div id="comments"> < %= render :partial => ‘comments' %> </div> js文件中添加: $(‘.pagination a’).attr(‘data-remote’, ‘true’); //...原创 2012-04-08 11:32:01 · 82 阅读 · 0 评论 -
jquery 滚动
1.向上间隙滚动 2.配置 $("#sdas").Scroll({ line: 2, //几行滚动 speed: 100, //速度 timer: 10 //间隔 });原创 2012-12-03 11:57:31 · 144 阅读 · 0 评论 -
jquery框架 用户弹出框 ajax请求(仿新浪用户信息弹出框)
效果图: 3.html代码: <div class="fl_left mr5"> <a class="show_user_info" value="13" href="/u/13"> <img class="img_loading" width="55" he原创 2012-08-31 16:05:46 · 136 阅读 · 0 评论