jquery
文章平均质量分 65
编程之上
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
表单操作-复选框
前端web开发表单交互功能原创 2014-06-04 22:42:50 · 1609 阅读 · 1 评论 -
canvas 烟花
canvas 烟花/* basic styles for black background and crosshair cursor */body { background: #000; margin: 0; }canvas { cursor: crosshair; display: block; }Canvas is not supported in your browser.原创 2015-04-14 11:51:09 · 1711 阅读 · 0 评论 -
导航 滚动切换
首页 特色 更新记录 安装 单页导航 额外参数 Wordpress 联系我们原创 2015-04-14 11:31:15 · 772 阅读 · 0 评论 -
jquery api
查看地址一->原创 2015-04-14 11:42:12 · 765 阅读 · 0 评论 -
Lava Lamp风格导航
Lava Lamp风格导航原创 2015-04-15 17:44:15 · 881 阅读 · 0 评论 -
jquery 向上滚动
jQuery文字无缝滚动效果代码 *{margin:0;padding:0;font-size:12px;} body{background:none;} input,button,select,textarea{outline:none;} ul,li,dl,ol{list-style:none;} a{color:#666;text-decoration:none;}原创 2015-04-15 15:33:33 · 877 阅读 · 0 评论 -
分类搜索
搜索 *{ padding:0; margin:0;} body{ font-size:12px;} ul,li { list-style:none; cursor:pointer;} .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clear原创 2015-04-15 15:47:02 · 813 阅读 · 0 评论 -
编写高效的jQuery代码总结
选择短路求值// 糟糕function initVar($myVar) { if(!$myVar) { $myVar = $('#selector'); }}// 建议function initVar($myVar) { $myVar = $myVar || $('#selector');}选择捷径// 糟糕原创 2015-04-15 18:42:09 · 642 阅读 · 0 评论 -
jquery 互转 javascript
trim 1 2footer/* Creating Elements(创建元素)$('');document.createElement('div');*//* Inserting Elements Before & After(在元素前后插入)$('#1').before('0')document.getElementById('1').i原创 2015-04-15 15:31:35 · 834 阅读 · 0 评论 -
jQuery之下拉框左右选择
jQuery之下拉框左右选择 *{margin:0; padding: 0} body{ text-align: center;} .wrapper{ width: 1000px; text-align: left; margin:50px auto;} .centent{float:left; width:140px; margin-right: 10px; text-align:c原创 2015-04-15 18:27:28 · 798 阅读 · 0 评论 -
加分小代码的应用
加分小代码body{background-color:#2C3437; font-family:\5FAE\8F6F\96C5\9ED1, Arial, Lucida, Verdana, Helvetica, sans-serif;}#like{background:#F90; width:100px; height:30px; border-radius:5px; color:#fff;原创 2015-04-14 11:43:11 · 919 阅读 · 0 评论 -
jquery 对象级插件开发框架
;(function($){ $.fn.plugin = function(options){ var defaults = { //默认参数设置 //... } //通过$.extend()的方法将两个对象进行组合 var options = $.extend({},defau原创 2015-04-14 11:38:37 · 859 阅读 · 0 评论 -
checkbox 之内容一致与只读状态
需求分析如下:用户输入两组用户信息:一组是送货目的地,另一组是账单组目的地。在大多数情况下,这两个地址是一致的。让用户重复输入两次相同的信息会导致用户友好度降低,而这非我们所想。通过给账单地址添加复选框,意在指示账单地址是否与送货地址一致。如果选中复选框,就从送货地址复制账单地址并且设为只读状态;如果取消选中复选框,就从文本字段里清空账单地址和只读状态。 The Test f原创 2015-04-14 11:36:51 · 1068 阅读 · 0 评论 -
清单地址的重用
list *{margin:0; padding:0;} body{font-size: 12px; background-color: #fff; text-align:center;} .f-wrap{width: 1000px; text-align: left; margin:0 auto; } h3{line-height: 30px;} form{padding:0 10原创 2014-05-29 16:53:27 · 1034 阅读 · 0 评论 -
jquery实现云朵飘动
每天一个小动画。原创 2014-07-07 11:56:09 · 2815 阅读 · 1 评论 -
jquery select 的那些事儿
jQuery获取Select选择的Text和Value:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text转载 2014-06-12 17:23:35 · 1000 阅读 · 0 评论 -
侧边固定悬浮导航
侧边固定悬浮导航原创 2015-03-31 16:24:20 · 1854 阅读 · 0 评论 -
垂直菜单特效
一个小插件,实现垂直菜单特效,如下图所示:代码地址:查看-> 垂直菜单特效 *{margin:0;padding:0;list-style-type:none;} a,img{border:0;} a{ color:#333; text-decoration: none; } body{font:14px/150% Arial, H原创 2015-03-31 13:59:31 · 830 阅读 · 0 评论 -
注册登录表单
body { font:12px/19px Arial, Helvetica, sans-serif; color:#666;}form div { margin:5px 0;}.int label { float:left; width:100px; text-align:right;}.int input { padding:1px 1px; border:1px solid #ccc;原创 2015-04-13 20:16:29 · 787 阅读 · 0 评论 -
jquery 页面搜索例子
页面搜索实例 table{border-collapse:collapse;} table td,table th{ border:1px solid #ddd; line-height: 30px; padding: 0 0 0 10px;} 姓名 性别 职位 手机号码 张三 男 前端开发 13432349833 张歆艺原创 2015-04-13 16:03:12 · 1192 阅读 · 0 评论 -
导航模仿IBM
IBM 导航 *{margin:0; padding: 0;} body{ text-align: center; color: #333; font-size: 12px;} ul,li{ list-style: none;} .wrapper{ width: 1000px; text-align: left; margin: 0 auto;} .cf:before,原创 2015-04-13 16:29:26 · 987 阅读 · 0 评论 -
常用方法总结
获取浏览器显示区域的高度 :$(window).height();获取浏览器显示区域的宽度 :$(window).width();获取页面的文档高度 :$(document).height();获取页面的文档宽度 :$(document).width();获取滚动条到顶部的垂直高度 :$(document).scrollTop();获取滚动条到左边的垂直宽度 :$(d原创 2015-04-13 17:03:21 · 566 阅读 · 0 评论 -
jquery 控制textArea 随文本增加而变高
jquery 控制textArea 随文本增加而变高 *{margin:0; padding: 0;} .f-wrap{ width: 1000px; margin:30px auto; } textarea{ text-indent: 2em; border:1px solid #ddd; width: 100%; height:150px原创 2015-04-15 18:33:05 · 1827 阅读 · 0 评论
分享