代码改变世界

文章分类 - JavaScript

用于自动添加"Digg This!"按钮的JavaScript

2006-12-16 21:36 by Cat Chen, 539 阅读, 收藏, 编辑
摘要:var main=document.getElementById("main");var singlepost=false;var firstpost;var anchor;for(var i=0;iAdd to del.icio.us"; postfoot.innerHTML+="Digg This!"; postfoot.innerHTML+="Share on Facebook"; p... 阅读全文

使用$create的DragDropList与DraggableItem声明

2006-11-04 00:59 by Cat Chen, 505 阅读, 收藏, 编辑
摘要:function App_Init(){ var dropCueTemplate = $create(Cattism.GCamp.UI.Template, {}, {}, {}, $get("dropCueTemplate")); var emptyTemplate = $create(Cattism.GCamp.UI.Template, {}, {}, {}, $get("empty... 阅读全文

继承自Control的简单Template

2006-11-01 15:31 by Cat Chen, 890 阅读, 收藏, 编辑
摘要:// Cattism.GCamp.TemplateCattism.GCamp.UI.Template = function Cattism$GCamp$UI$Template(element){ var e = Function._validateParams(arguments, [ {name: "element", type: Sys.UI.DomElement} ... 阅读全文

用于Atlas June CTP的Web Service调用封装

2006-10-29 14:34 by Cat Chen, 441 阅读, 收藏, 编辑
摘要:Type.registerNamespace("Cattism.BodyMaintainer.Web.Services");// Cattism.BodyMaintainer.Web.ServicesCattism.BodyMaintainer.Web.Services._requests = new Array();Cattism.BodyMaintainer.Web.Services._b... 阅读全文

用于MS AJAX Beta1 + Preview的 debug补充包

2006-10-27 00:36 by Cat Chen, 352 阅读, 收藏, 编辑
摘要:// Sys._Debugif (debug.trace) { delete debug.trace }function Sys$_Debug$clearTrace() { var traceElement = document.getElementById('__atlas_trace'); if (traceElement) { var children ... 阅读全文