您正在查看 "Js Code" 分类下的文章
2009年10月27日 星期二 下午 11:22
Date.prototype.format = function(mask) { var d = this; |
2009年09月25日 星期五 下午 03:49
有一系列javascript方法需要调用,并且可能对于每个方法都有自己的回调函数,要求顺序执行各函数和自己的回调函数,下面这个方法就是基于这个需求产生的,目前还不太完善,但是足以满足大部分需求了。使用方法:传入Array数组的option参数fun(要调用的函数名),callback(回调函数方法体),timeout(如果没有回调方法可设置延时执行序列中下个方法)。
|
2009年09月23日 星期三 下午 08:18
1.
$(document).ready(function(){ $("#content-slid |
2009年08月20日 星期四 下午 10:44
/************************************************** * dom-drag.js * 09.25.2001 * www.youngpup.net * Script featured on FreezeSoul (http://hi.baidu.com/freezesoul) 2009.8.20 ******************* |
2009年08月14日 星期五 下午 08:56
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> <script type= |
2009年08月14日 星期五 下午 03:50
function doSomething() { alert("I'm done resizing for the moment"); };
var resizeTimer = |
2009年08月12日 星期三 上午 00:34
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt |
2009年08月10日 星期一 下午 09:35
(function($){ /*---------------------------------------------------------------------------------- Class: FloatObject -------------------------------------------------------------------------------------*/ function FloatObject(jqObj, params) { this.jqObj = jqObj; switch(params.speed) { case 'fast': this.steps = 5; break; case 'normal': this.steps = 10; break; case 'slow': this.steps = 20; break; default: this.steps = 10; |
2009年08月10日 星期一 下午 09:27
2009年07月07日 星期二 下午 02:14
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Auto-Growing Textarea</title> <meta name= |
2009年06月01日 星期一 下午 03:54
<head> <SCRIPT type=text/javascript> var $ = |
2009年05月13日 星期三 下午 01:44
<script type="text/javascript"> //使用方法:ondblclick="ShowElement(this)" function ShowElement(element) { |
2009年04月24日 星期五 下午 12:55
jQuery.fn.imageScroller = function(params){ var p = params || { next:"buttonNext |
2009年04月06日 星期一 下午 09:42
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script> $(document).ready( |
2009年04月02日 星期四 下午 11:40
var scrolltotop={ setting: {startline:100, scrollduration:1000, fadeduration:[500, 100]}, //startline=number of pixels from top of doc scrollbar is at before showing control controlHT |
|
|