javascript
文章平均质量分 66
iteye_3662
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ext应用站点
http://e2cs.mm-mendez.com/?page_id=4&language=en http://beta.cloudo.com/ seven.zxh http://demo.group-office.eu/index.php pigIdear@gmail.com http://www.max-bazhenov.com/dev/ux.ma...2009-11-11 11:34:47 · 153 阅读 · 0 评论 -
Parsing URLs with the DOM!
var GET = {};var loc = String(document.location);var pieces = loc.substr(loc.indexOf('?') + 1).split('&');for (var i = 0; i < pieces.length; i++){ var keyVal = pieces[i].split('=');...原创 2010-05-19 21:29:50 · 189 阅读 · 0 评论 -
iframe高度适应
var adjustIframe = function (id) { var iframe = document.getElementById(id) var idoc = iframe.contentWindow && iframe.contentWindow.document || iframe.contentDocument; var...原创 2011-08-31 17:28:21 · 121 阅读 · 0 评论 -
winodw.onload
/* * (c)2006 Jesse Skinner/Dean Edwards/Matthias Miller/John Resig * Special thanks to Dan Webb's domready.js Prototype extension * and Simon Willison's addLoadEvent * * For more info, se...原创 2010-07-15 22:42:22 · 138 阅读 · 0 评论 -
javascript资源收集
http://dmitrysoshnikov.com/ecmascript/chapter-1-execution-contexts/ ecma262http://www.stubbornella.org/content/2009/03/27/reflows-repaints-css-performance-making-your-javascript-slow/ Reflow...原创 2010-07-15 22:45:18 · 186 阅读 · 0 评论 -
javascript数组扩展
Object.prototype.equals = function (x) { if (!x) { return false; } for (var p in this) { if (typeof(x[p]) == 'undefined') { return false; ...原创 2011-01-21 12:55:34 · 161 阅读 · 0 评论 -
HTML页面底部定位
<!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" xml:lang="en">&l原创 2011-02-19 14:21:29 · 1448 阅读 · 0 评论 -
form中相同name的checkbox提交问题
比如:Form中有如下的HTML片段: Favorite Food:<br/>Steak:<input type="checkbox" name="food" value="Steak"/><br/>Pizza:<input type="checkbox" name="food" value原创 2011-03-21 14:27:46 · 596 阅读 · 0 评论 -
javascript图片预加载
var imgReady = function (url, callback, error) { var width, height, intervalId, check, div, img = new Image(), body = document.body; img.src = url; // 从缓存中读取 if (img.complete) { ...原创 2011-04-03 11:41:45 · 121 阅读 · 0 评论 -
javascript自定义事件管理
/** * 回调函数机制 * 支持多个回调函数绑定 * @author tangbin * @see http://www.planeart.cn/?p=1182 * @namespace */var callback = (function () { var that = this, cache = {}, fName = '${callba...原创 2011-04-03 21:04:56 · 137 阅读 · 0 评论 -
javascript自定义事件
/** * MicroEvent - to make any js object an event emitter (server or browser) * * - pure javascript - server compatible, browser compatible * - dont rely on the browser doms * - super simpl...原创 2011-04-09 22:07:35 · 112 阅读 · 0 评论 -
Web聊天在线人员列表 上下滚动
<!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>&原创 2012-10-22 10:21:57 · 264 阅读 · 0 评论 -
[Seajs模块化] HelloWorld学习
1 . Do.main.js define('math',function (require, exports, module) {// exports.sum = sum; module.exports = (function (){ return { sum : function(x, y){ return x +...原创 2012-11-07 15:19:03 · 139 阅读 · 0 评论 -
最短的IE判定
<script type="text/javascript">alert([1,2]);//相当于alert([1,2].toString()); --这在IE与非IE上都相同,都会弹出"1,2"alert([1,]);//相当于alert([1,].toString());--在非IE的标准浏览器上,js引擎会自动删除最后的",",所以在IE上会弹出"1,",而在非IE上会弹...原创 2010-11-14 16:50:20 · 110 阅读 · 0 评论 -
javascript的top,parent,opener,iframe
top:分割窗口最高层次的浏览器窗口。采用如下方式进行访问:top.frames['sub_frm'].parent:当前分割窗口的父窗口。采用如下方式访问:parent.document.opener:指用window.open等方式创建的新窗口对应的原窗口。iframe:在一个页面含有某个iframe,其id="iframeA" name="IframeA",此时使用documen...原创 2011-07-09 19:01:32 · 186 阅读 · 0 评论 -
application/x-javascript的用处
在jsp,servlet中设置contentType="application/x-javascript; charset=UTF-8"后可以动态生成js角本,可以应用在比如动态菜单,可定制的前端的模块等等2009-11-13 14:25:44 · 3575 阅读 · 0 评论 -
图片预览
<!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><原创 2009-05-16 20:44:55 · 91 阅读 · 0 评论 -
javascript动态加载
http://www.phpied.com/category/ajax/http://yuiblog.com/blog/2008/07/22/non-blocking-scripts/原创 2010-01-09 13:16:11 · 122 阅读 · 0 评论 -
javascript操作CSS的一些函数集合
原文链接:http://myext.cn/Article/1169.html用js实现的对css的一些操作方法,集合,方便需要用js控制css的朋友//获取元素的真实的,最终的CSS样式属性值的函数 function getStyle(elem,name){ if(elem.style[name]){ return elem.style[name]; }else if(elem.current...原创 2010-01-12 14:21:32 · 192 阅读 · 0 评论 -
HTML input="file"样式
<!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>&l原创 2010-01-19 22:08:16 · 139 阅读 · 0 评论 -
ExtJs Grid 合计
首先说明下代码修改自(农民伯伯 Blog):http://www.cnblogs.com/over140/archive/2009/05/06/1449892.html把修改JsonReader.js部分提出来了,改为:Ext.override(Ext.data.JsonReader, { read : function(response) { var json = r...原创 2010-01-26 10:58:11 · 113 阅读 · 0 评论 -
Cookie的工作原理和Cookie协议
遵循Netscape cookie草案的完整的Set-Cookie 头: Set-Cookie:customer=huangxp; path=/foo; domain=.ibm.com; expires= Wednesday, 19-OCT-05 23:12:40 GMT; [secure] Set-Cookie的每个属性解释如下:Customer...原创 2010-09-18 11:51:01 · 650 阅读 · 0 评论 -
Ext插件和扩展收集
http://www.extjs.com/forum/showthread.php?t=21158 EditorGrid validation plugin http://www.extjs.com/forum/showthread.php?t=41658 Grid header filters http://www.extjs.com/forum/showthread....2010-03-05 00:02:31 · 147 阅读 · 0 评论 -
Ext 学习笔记
1.Ext组合键<input id="hello"></input> <script type="text/javascript"> var el=Ext.get("hello"); new Ext.KeyMap(el, { //ctrl:true, ..2010-03-05 10:42:24 · 137 阅读 · 0 评论 -
JavaScript:The Class of an Object
function is(type, obj) { var clas = Object.prototype.toString.call(obj).slice(8, -1); return obj !== undefined && obj !== null && clas === type; } is('String', 'test...原创 2011-06-04 16:05:35 · 130 阅读 · 0 评论 -
JavaScript:How new works
The new operator takes a function F and arguments: new F(arguments...). It does three easy steps:Create the instance of the class. It is an empty object with its __proto__ property set to F.protot...原创 2011-06-04 16:08:43 · 149 阅读 · 0 评论 -
IE,FF下复制文本到剪贴板
<script language="javascript" type="text/javascript"><!--// Copyright (C) krikkit - krikkit@gmx.net// --> http://www.krikkit.net///// This program is free software; you can red...原创 2009-07-29 22:40:48 · 152 阅读 · 0 评论 -
Ajax Style File Uploading using Hidden iFrame
<html> <script language="Javascript">function fileUpload(form, action_url, div_id) { // Create the iframe... var iframe = document.createElement("iframe"); iframe.s...原创 2012-12-11 18:03:38 · 135 阅读 · 0 评论
分享