用原生的JS写动画效果的确是个很令人纠结的事情,倒不如直接用jQuery来写,亦或找一些jQuery插件。能力达不到的时候,为了工作进度,只能采取心有不甘的手段。 如果真的获得能力的提高,我认为还是必须去学习那些优秀的程序员写的优秀的代码。 ...
阅读全文前端开发代码
前端开发代码分享优秀的jquery代码,html代码,css代码等前端开发技术
auto = null; timer = null; var focus = new Function(); focus.prototype = { init : function () { this.aTime = this.aTime ...
阅读全文$("#left article .t").each(function(){ $(this).nextAll().hide(); $(this).click(function(){ $(this).nextAll().slideToggle ...
阅读全文jQuery.fn.imageAutoSize = function(w) { $(this).each(function() { var image = $(this); var ow = image.width(); var oh = ...
阅读全文/*! * copyright c by zhangxinxu 2012-02-06 * jquery.placeholder.js placeholder属性模拟插件 * v1.0 2012-02-06 create * v1.2 201 ...
阅读全文$(function () { Application.init (); }); var Application = function () { var validationRules = getValidationRules (); re ...
阅读全文$(function() { var $div_li = $(".tab-menu li"); $div_li.click(function() { $(this).addClass("selected"). ...
阅读全文jquery选中radio //如果之前有选中的,则把选中radio取消掉 $("#tj_cat .pro_category").each(function() { if ($(this).attr('checked')){ $(this ...
阅读全文