?? showalbummodule.config
字號:
?<div id="dntphoto" style="visibility: visible; height: 100px; width: 100%;padding-top: 10px;text-align:center;">
<!--圖片輪換代碼開始-->
<script type="text/javascript">
window.System = function(){this.setHashCode();}
System.debug=false; //false
System._codebase={};
try
{
if (window!=parent && parent.System && parent.System._codebase)
System._codebase = parent.System._codebase;
else if ("undefined"!=typeof opener&&opener.System&&opener.System._codebase)
System._codebase = opener.System._codebase;
else if ("undefined"!=typeof dialogArguments && dialogArguments.System)
System._codebase = dialogArguments.System._codebase;
}
catch(ex){}
System.MISSING_ARGUMENT="Missing argument";
System.ARGUMENT_PARSE_ERROR="The argument cannot be parsed";
System.NOT_SUPPORTED_XMLHTTP="Your browser do not support XMLHttp";
System.FILE_NOT_FOUND="File not found";
System.MISCODING="Maybe file encoding is not ANSI or UTF-8";
System.NAMESPACE_ERROR=" nonstandard namespace";
System.hashCounter=0;
System.currentVersion="20070228_2";
var t=document.getElementsByTagName("SCRIPT");
t=(System.scriptElement=t[t.length-1]).src.replace(/\\/g, "/");
System.extend=function(d,s){for(var i in s)d[i]=s[i];return d;};
System.path=(t.lastIndexOf("/")<0)?".":t.substring(0, t.lastIndexOf("/"));
System.resourcePath=System.path +"/System/_resource";
System.getUniqueId=function(){return "mz_"+(System.hashCounter++).toString(36);};
System.toHashCode=function(e)
{
if("undefined"!=typeof e.hashCode) return e.hashCode;
return e.hashCode=System.getUniqueId();
};
System.supportsXmlHttp=function()
{
return "object"==typeof(System._xmlHttp||(System._xmlHttp=new XMLHttpRequest()));
};
System._getPrototype=function(namespace, argu)
{
if("undefined"==typeof System._prototypes[namespace])return new System();
for(var a=[], i=0; i<argu.length; i++) a[i]="argu["+ i +"]";
return eval("new (System._prototypes['"+namespace+"'])("+a.join(",")+")");
};
System.ie=navigator.userAgent.indexOf("MSIE")>0 && !window.opera;
System.ns=navigator.vendor=="Netscape";
System.alert=function(msg){if(System.debug)alert(msg);};
System._parseResponseText=function(s)
{
if(null==s||"\uFFFD"==s.charAt(0)){System.alert(System.MISCODING);return "";}
if("\xef"==s.charAt(0))s=s.substr(3); //for firefox
return s.replace(/(^|\n)\s*\/\/+\s*((Using|Import|Include)\((\"|\'))/g,"$1$2");
};
if(!window.XMLHttpRequest && window.ActiveXObject)
{
window.XMLHttpRequest = function()
{
var msxmls=['MSXML3','MSXML2','Microsoft'];
for(var i=0;i<msxmls.length;i++)
try{return new ActiveXObject(msxmls[i]+'.XMLHTTP')} catch(ex){}
System._xmlHttp="mz"; throw new Error(System.NOT_SUPPORTED_XMLHTTP);
}
}
System.load = function(namespace, path)
{
try
{
if(System.supportsXmlHttp()){path=System._mapPath(namespace, path);
var x=System._xmlHttp; x.open("GET",path,false); x.send(null);
if (x.readyState==4){if(x.status==0||/^file\:/i.test(path))
return System._parseResponseText(x.responseText);
else if(x.status==200)return System._parseResponseText(x.responseText);
else if(x.status==404)System.alert(namespace+"\n"+System.FILE_NOT_FOUND);
else throw new Error(x.status +": "+ x.statusText);}}
else System.alert(System.NOT_SUPPORTED_XMLHTTP);
}
catch(ex){System.alert(namespace+"\n"+ex.message);}return "";
};
System._exist = function(namespace, path)
{
if("undefined"==typeof System._existences[namespace]) return false;
return System._existences[namespace]==System._mapPath(namespace,path);
};
System._mapPath = function(namespace, path)
{
if("string"==typeof path && path.length>3) return path;
var p=System.path +"/"+ namespace.replace(/\./g,"/") +".js";
return p +(("undefined"==typeof path||path) ? "" : "?t="+ Math.random());
};
window.Using = function(namespace, path, rename)
{
var N=namespace, C=N.substr(N.lastIndexOf(".")+1), code=N+".";
if(System._exist(N,path)){window[C]=System._prototypes[N];return}
if(!/((^|\.)[\w\$]+)+$/.test(N))throw new Error(N+System.NAMESPACE_ERROR);
for(var s,e,i=code.indexOf("."); i>-1; i=code.indexOf(".", i+1)){
e=code.substring(0,i);s=(e.indexOf(".")==-1)?"window[\""+e+"\"]":e;
if(e&&"undefined"==typeof(s)){eval(s+"=function(){return "
+"System._getPrototype(\""+e+"\", arguments)}");}}
if("string"!=typeof System._codebase[N]&&(code=System.load(N,path)))
System._codebase[N]=code+";\r\nSystem._prototypes['"+
N+"']=window['"+(rename||C)+"']="+C;code="";
System._existences[N]=System._mapPath(N, path);
if("string"==typeof (s=System._codebase[N]))try{(new Function(s))()}
catch(e){System.alert("Syntax error on load "+ N +"\n"+ e.message);}
//alert(System._codebase[namespace])
};
window.Import=function(namespace,path,rename){Using(namespace,path,rename)};
window.Instance=function(hashCode){return System._instances[hashCode]};
window.Include=function(namespace, path)
{
var N=namespace,code; if(System._exist(N, path)) return;
if(!/((^|\.)[\w\$]+)+$/.test(N))throw new Error(N+System.NAMESPACE_ERROR);
if("string"!=typeof System._codebase[N])if(System.supportsXmlHttp()
&& (code=System.load(N, path))) System._codebase[N]=code;
System._existences[N]=System._mapPath(N, path);
var B=("string"==typeof(System._codebase[N]));try{
if(window.execScript&&B)window.execScript(System._codebase[N]);else
{
var s=document.createElement("SCRIPT");s.type="text/javascript";
if(B)s.innerHTML="eval(System._codebase['"+N+"']);";
else s.src=System._existences[N]=System._mapPath(N,path);
document.getElementsByTagName("HEAD")[0].appendChild(s);
setTimeout(function(){s.parentNode.removeChild(s)},99);}
}catch(B){System.alert("Syntax error on include "+N+"\n"+B.message);}
};
Function.READ=1;Function.WRITE=2;Function.READ_WRITE=3;
Function.prototype.addProperty=function(name,initValue,r_w)
{
var capital=name.charAt(0).toUpperCase()+name.substr(1);
r_w=r_w||Function.READ_WRITE; name="_"+name; var p=this.prototype;
if("undefined"!=typeof initValue) p[name]=initValue;
if(r_w&Function.READ) p["get"+ capital]=function(){return this[name];};
if(r_w&Function.WRITE) p["set"+ capital]=function(v){this[name]=v;};
};
Function.prototype.Extends=function(SuperClass,ClassName)
{
var op=this.prototype, i, p=this.prototype=new SuperClass();
if(ClassName)p._className=ClassName; for(i in op)p[i]=op[i];
if(p.hashCode)delete System._instances[p.hashCode];return p;
};
System._instances={};
System._prototypes=
{
"System":System,
"System.Object":System,
"System.Event":System.Event
};
System._existences=
{
"System":System._mapPath("System"),
"System.Event":System._mapPath("System.Event"),
"System.Object":System._mapPath("System.Object")
};
t=System.Extends(Object, "System"); System.Object = System;
t.decontrol=function(){var t;if(t=this.hashCode)delete System._instances[t]};
t.addEventListeners=function(type, handle)
{
if("function"!=typeof handle)
throw new Error(this+" addEventListener: "+handle+" is not a function");
if(!this._listeners) this._listeners={};
var id=System.toHashCode(handle), t=this._listeners;
if("object"!=typeof t[type]) t[type]={}; t[type][id]=handle;
};
t.removeEventListener=function(type, handle)
{
if(!this._listeners)this._listeners={};var t=this._listeners;
if(!t[type]) return; var id=System.toHashCode(handle);
if( t[type][id])delete t[type][id];if(t[type])delete t[type];
};
t.dispatchEvent=function(evt)
{
if(!this._listeners)this._listeners={};
var i, t =this._listeners, p =evt.type;
evt.target=evt.srcElement=evt.target||evt.srcElement||this;
evt.currentTarget=this; if(this[p])this[p](evt);
if("object"==typeof t[p]) for(i in t[p]) t[p][i].call(null, evt);
delete evt.target;delete evt.currentTarget;delete evt.srcElement;
return evt.returnValue;
};
t.setHashCode=function()
{
System._instances[(this.hashCode=System.getUniqueId())]=this;
};
t.getHashCode=function()
{
if(!this.hashCode)this.setHashCode(); return this.hashCode;
};
t.toString=function(){return "[object "+(this._className||"Object")+"]";};
System.getType=function(e)
{
if("object"!=typeof(e))return typeof(e);
if("[object Object]"==e)return "object";
if(/\[object\s+([^\s\]]+)\]/.test(e))return RegExp.$1;
else return "object";
};
System.Event=function(type){this.type=type;};
t=System.Event.Extends(System,"System.Event");
t.returnValue=true;t.cancelBubble=false;
t.target=t.currentTarget=t.srcElement=null;
t.stopPropagation=function(){this.cancelBubble=true;};
t.preventDefault =function(){this.returnValue=false;};
if(System.ie && !System.debug) Include("System.Plugins.IE");//IE UserData
if(window.opera) Include("System.Plugins.Opera"); //Opera support
//Include("System.Global");
//Include("Csdn.Common");
/*** Global.js ***/
/*-=< base function >=-*/
//HTMLElement.getElementById extend
if(document && !document.getElementById){document.getElementById=function(id){
if(document.all) return document.all(id); return null;}}
/*-=< HTMLElement >=-*/
if(typeof(HTMLElement)!="undefined" && !window.opera)
{
var t=HTMLElement.prototype;
t.contains=function(e){do if(e==this)return true;while(e=e.parentNode);return false;};
t.__defineGetter__("outerHTML",function()
{
var a=this.attributes, str="<"+this.tagName, i=0;for(;i<a.length;i++)
if(a[i].specified) str+=" "+a[i].name+'="'+a[i].value+'"';
if(!this.canHaveChildren) return str+" />";
return str+">"+this.innerHTML+"</"+this.tagName+">";
});
t.__defineSetter__("outerHTML",function(s)
{
var r = this.ownerDocument.createRange();
r.setStartBefore(this);
r = r.createContextualFragment(s);
this.parentNode.replaceChild(r, this);
return s;
});
t.__defineGetter__("canHaveChildren",function()
{
switch(this.tagName.toLowerCase())
{
case "area": case "base": case "basefont":
case "col": case "frame": case "hr":
case "img": case "br": case "input":
case "link": case "meta": case "isindex":
case "param":return false;
} return true;
});
t.__defineGetter__("currentStyle", function()
{
return this.ownerDocument.defaultView.getComputedStyle(this,null);
});
t.__defineGetter__("children",function()
{
for(var a=[],j=0,n,i=0; i<this.childNodes.length; i++){
n=this.childNodes[i];if(n.nodeType==1){a[j++]=n;if(n.name){
if(!a[n.name])a[n.name]=[]; a[n.name][a[n.name].length]=n;}
if(n.id) a[n.id]=n;}}return a;
});
t.insertAdjacentHTML=function(where, html)
{
var e=this.ownerDocument.createRange();
e.setStartBefore(this);
e=e.createContextualFragment(html);
switch (where)
{
case 'beforeBegin': this.parentNode.insertBefore(e, this);break;
case 'afterBegin': this.insertBefore(e, this.firstChild); break;
case 'beforeEnd': this.appendChild(e); break;
case 'afterEnd':
if(!this.nextSibling) this.parentNode.appendChild(e);
else this.parentNode.insertBefore(e, this.nextSibling); break;
}
};
};
if(!window.attachEvent && window.addEventListener)
{
Window.prototype.attachEvent = HTMLDocument.prototype.attachEvent=
t.attachEvent=function(en, func, cancelBubble)
{
var cb = cancelBubble ? true : false;
this.addEventListener(en.toLowerCase().substr(2), func, cb);
};
Window.prototype.detachEvent = HTMLDocument.prototype.detachEvent=
t.detachEvent=function(en, func, cancelBubble)
{
var cb = cancelBubble ? true : false;
this.removeEventListener(en.toLowerCase().substr(2), func, cb);
};
}
if(typeof Event!="undefined" && !System.ie && !window.opera)
{
var t=Event.prototype;
t.__defineSetter__("returnValue", function(b){if(!b)this.preventDefault(); return b;});
t.__defineSetter__("cancelBubble",function(b){if(b) this.stopPropagation(); return b;});
t.__defineGetter__("offsetX", function(){return this.layerX;});
t.__defineGetter__("offsetY", function(){return this.layerY;});
t.__defineGetter__("srcElement", function(){var n=this.target; while (n.nodeType!=1)n=n.parentNode;return n;});
}
/*-=< Function >=-*/
//apply and call
if(typeof(Function.prototype.apply)!="function")
{
Function.prototype.apply = function(obj, argu)
{
if(obj) obj.constructor.prototype.___caller = this;
for(var a=[], i=0; i<argu.length; i++) a[i] = "argu["+ i +"]";
var t = eval((obj ? "obj.___caller" : "this") +"("+ a.join(",") +");");
if(obj) delete obj.constructor.prototype.___caller; return t;};
Function.prototype.call = function(obj){
for(var a=[], i=1; i<arguments.length; i++) a[i-1]=arguments[i];
return this.apply(obj, a);
};
}
/*-=< Array >=-*/
var t = Array.prototype;
//[extended method] push insert new item
if(typeof(t.push)!="function")
{
t.push = function()
{
for (var i=0; i<arguments.length; i++)
this[this.length] = arguments[i];
return this.length;
};
}
//[extended method] shift delete the first item
if(typeof(t.shift)!="function")
{
t.shift = function()
{
var mm = null;
if(this.length>0)
{
mm = this[0]; for(var i=1; i<this.length; i++)
this[i-1]=this[i]; this.length=this.length -1;
}
return mm;
};
}
//[extended method] unique Delete repeated item
t.unique = function()
{
for(var a={}, i=0; i<this.length; i++)
{
if(typeof(a[this[i]])=="undefined") a[this[i]] = 1;
}
this.length=0;
for(i in a) this[this.length] = i; return this;
};
//[extended method] indexOf
if(typeof(t.indexOf)!="function")
{
t.indexOf=function(item, start)
{
start=start||0; if(start<0)start=Math.max(0,this.length+start);
for(var i=start;i<this.length;i++){if(this[i]===item)return i;}
return -1;
};
}
t.include=function(e){return this.indexOf(e)!=-1};
t.remove=function(e)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -