11 2013 档案
摘要:一、Javascript源码 if (!window.jasen.core.Position) { window.jasen.core.Position = {}; } function Size(width, height) { this.width = parseFloat(width); this.height = parseFloat(height); } Size.prototype.toString = function () { return "width=" + this.width + ";...
阅读全文
摘要:一、CSS兼容代码 .transparent { filter:alpha(opacity=50); /* IE */ -moz-opacity:0.5; /* FireFox old version*/ -khtml-opacity: 0.5; /* Sarfari old version */ opacity: 0.5; /* FireFox */ } 二、Javascript兼容代码 if (!window.jasen.core.Util) { window.j...
阅读全文
摘要:一、前言 1 function ConvertEvent(e, element) { 2 var event = e || window.event; 3 var resultEvent = { 4 event: event, 5 type: event.type, 6 target: event.target || event.srcElement, 7 relatedTarget: event.relatedTarget || event.fromElem...
阅读全文
摘要:一、前言(function (window) { if (!window.jasen) { window.jasen = {}; } if (!window.jasen.core) { window.jasen.core = {}; } //------------------------------------------------ // XML operation below. //------------------------------------------------ if (!window.jasen...
阅读全文