- 博客(16)
- 资源 (16)
- 收藏
- 关注
原创 Javascript汉字转拼音
<br />//汉字拼音首字母列表 本列表包含了20902个汉字,用于配合 ToChineseSpell//函数使用,本表收录的字符的Unicode编码范围为19968至40869, XDesigner 整理var strChineseFirstPY = "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQS
2010-08-27 21:24:00
13719
1
原创 百度搜索自动提示(实例)
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf
2010-08-27 21:22:00
793
1
原创 监听键盘事件的Javascript库--shortcut
<br />/** * http://www.openjs.com/scripts/events/keyboard_shortcuts/ * Version : 2.01.B * By Binny V A * License : BSD */shortcut = { 'all_shortcuts':{},//All the shortcuts are stored in this array 'add': function(shortcut_combination,callb
2010-08-27 21:19:00
983
原创 xml2json
<br />/*xml2json v 1.1copyright 2005-2007 Thomas FrankThis program is free software under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. It is distributed without any warranty.*/xml2json={
2010-08-27 21:17:00
587
原创 Functional
<br />/* * Author: Oliver Steele * Copyright: Copyright 2007 by Oliver Steele. All rights reserved. * License: MIT License * Homepage: http://osteele.com/javascripts/functional * Source: http://osteele.com/javascripts/functional/functional.js
2010-08-27 21:17:00
508
原创 Javascript_UUID
<br />function UUID(){ this.id = this.createUUID();}UUID.prototype.valueOf = function(){ return this.id; }UUID.prototype.toString = function(){ return this.id; }UUID.prototype.createUUID = function(){ var dg = UUID.timeInMs(new Date(1582, 10, 1
2010-08-27 21:16:00
597
原创 JSTweener
<br />var JSTweener = { looping: false, frameRate: 60, objects: [], defaultOptions: { time: 1, transition: 'easeoutexpo', delay: 0, prefix: {}, suffix: {}, onStart: undefined,
2010-08-27 21:13:00
617
原创 文本选区操作类
<br />/** * @author ZhangYi *//** * 文本选区操作类 */var TextRange = function() { var inner; return inner = { /** * 获取选区 * * @param {HTMLElement} oElement input或是textarea对象 * @return [start, end] 返回input或textarea选区的开始与结束的索引值
2010-08-27 21:10:00
528
原创 图片预加载
<br />(function(){ var th = this; th.pageSize = 1000;/* 每屏大概高度为1000px */ th.pageQuotiety = 0.5;/* 提前下载量 */ th.imgName = "page_cnt_";/* 图片通用名 */ th.imgs = [];/* 每屏图片 [每屏所有图片,第一张图片,第一张图片绝对top:加载图片的top] */ var B = {};/* Browser c
2010-08-27 21:09:00
518
原创 百度首页自动提示
<br />(function(){ var H = navigator.userAgent.indexOf("MSIE") != -1 && !window.opera; var E = (document.compatMode == "BackCompat"); function Q(C){ return document.getElementById(C) } function B(C){ return
2010-08-27 21:06:00
593
转载 dhtml.js
/*Copyright (c) 2007 Brian Dillard and Brad Neuberg:Brian Dillard | Project Lead | bdillard@pathf.com | http://blogs.pathf.com/agileajax/Brad Neuberg | Original Project Creator | http://codinginparadise.org Permission is hereby granted, free of
2010-08-27 21:00:00
684
转载 prototype优先级的问题
<br /><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> </head> <body> <mce:script t
2010-08-27 20:56:00
574
原创 百度空间global文件
<br />/* declare namespace */(function(){ var namespaces = [ "System","BdElement", "BdBrowser", "BdEvent", "BdUtil", "BdAjax","BdString"]; for(var i = 0, j = namespaces.length; i < j; i ++){ if(window[namespaces[i]] != 'object') window[namespa
2010-08-27 20:55:00
477
原创 某音乐网站,真实音乐地址解密算法
<br /><mce:script type="text/javascript"><!-- function encode(str) { str = str || ""; var F = 9917; var I = str; var O = "", E = ""; var K = [], H = []; function N(S, P, Q) { for(var R = S; R <= P; R++) { K[R] = R +
2010-08-27 20:52:00
904
原创 Javascript_MD5
function md5(s) { return binl2hex(core_md5(str2binl(s), s.length*strsize)); } function core_md5(x, len) { x[len >> 5] = (x[len >> 5]) | (128 >> 9)
2010-08-27 20:22:00
735
原创 C.Class
/* Script: C.Class.js Contains the Class Function, aims to ease the creation of reusable Classes. License: MIT-style license. *//* Class: Class The base class object of the framework. Creates a new class, its initialize method will fire
2010-08-25 21:17:00
580
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人