⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cavatars.as

📁 flashget43的源代码 一个比较常用的下载程序
💻 AS
字号:
function CAvatars() {	this.mod_only = new Object();	this.user = new Object();	this.admin = new Object();		this.createNode(this.user);	this.createNode(this.admin);};CAvatars.prototype = new Initable();CAvatars.prototype.createNode = function(inObj){	inObj.male = new Object();	inObj.female = new Object();		inObj.male.mainchat = new Object();	this.createLastNode(inObj.male.mainchat);	inObj.male.room = new Object();	this.createLastNode(inObj.male.room);		inObj.female.mainchat = new Object();	this.createLastNode(inObj.female.mainchat);	inObj.female.room = new Object();	this.createLastNode(inObj.female.room);}CAvatars.prototype.createLastNode = function(inObj){	inObj.default_value  = 'smi_smile';	inObj.default_state  = false;	inObj.allow_override = true;}CAvatars.prototype.copyNode = function(inName, inNode){	for (var i = 0; i < inNode.childNodes.length; i++) {		var node = inNode.childNodes[i];		if(node.nodeType == 1) {			for(var j = 0; j < node.childNodes.length; j++) { 				var node2 = node.childNodes[j];				if(node2.nodeType == 1) {					this.copyAllAttrs(node2, this[inName][node.nodeName][node2.nodeName]);				}			}		}	}}CAvatars.prototype.init = function(xml) {	this.copyAllAttrs(xml, this);		for (var i = 0; i<xml.childNodes.length; i++) {		var node = xml.childNodes[i];		if(node.nodeType == 1) {			if(node.nodeName == "user" || node.nodeName == "admin") this.copyNode(node.nodeName, node);			else if(node.nodeName == "mod_only") this.copyAllAttrs(node, this.mod_only);		}	}};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -