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

📄 main.js

📁 这是我上-dsp-5400用的课件。里面有软件的simulater的设置
💻 JS
字号:
/** * Javascript v1.2 for VeryCD.com * * Copyright 2005 VeryCD Team and xdanger<@http://www.xdanger.com/> * Some Rights Reserved * * $Id: main.js,v 1.90 2007/08/30 02:08:50 xdanger Exp $ */if (navigator.userAgent.indexOf("MSIE") > -1) {    var _VC_IsIE = true;} else {    var _VC_IsIE = false;}var _VC_ClickStatRate = 10;if (screen.width >= 1024) {    var _VC_DisplayBroadPage = true;} else {    var _VC_DisplayBroadPage = false;}function getCookieVal(offset) {	var endstr = document.cookie.indexOf (";", offset);	if (endstr == -1) {		endstr = document.cookie.length;	}	return unescape(document.cookie.substring(offset, endstr));}function getCookie(name) {	var arg = name + "=";	var alen = arg.length;	var clen = document.cookie.length;	var i = 0;	while (i < clen) {		var j = i + alen;		if (document.cookie.substring(i, j) == arg)			return getCookieVal (j);		i = document.cookie.indexOf(" ", i) + 1;		if (i == 0) break; 	}	return null;}function setCookie(name, value) {	var argv = setCookie.arguments;	var argc = setCookie.arguments.length;	var expires = (argc > 2) ? argv[2] : null;	var path = (argc > 3) ? argv[3] : null;	var domain = (argc > 4) ? argv[4] : null;	var secure = (argc > 5) ? argv[5] : false;	document.cookie = name + "=" + escape (value) +		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +		((path == null) ? "" : ("; path=" + path)) +		((domain == null) ? "" : ("; domain=" + domain)) +		((secure == true) ? "; secure" : "");}function suitPic() {    var imageName = "post_img";    var blockArea = "resoucePostData";    var srcWidth  = 0;    var srcHeight = 0;    var changed   = 0;    if (_VC_DisplayBroadPage) {        var setWidth = 760;    } else {        var setWidth = 592;    }    var setHeight  = 2000;    var postImages = document.getElementsByName(imageName);    try {        for (i = 0; i < postImages.length; i++) {            var e = postImages[i];            srcWidth  = e.width;            srcHeight = e.height;            changed = 0;            if (e.width > setWidth) {                n = e.width / setWidth;                e.width = setWidth;                e.height = srcHeight / n;                changed = 1;            }            if (e.height > setHeight) {                n = e.height / setHeight;                e.width = e.width / n;                e.height = setHeight;                changed = 1;            }            if (changed == 1) {                e.insertAdjacentHTML("AfterEnd", "<div style=\"margin-top:4px;\">原图:<a href=\"" + e.src + "\">" + e.src + "</a> | " + srcWidth + "x" + srcHeight + "</div>");            }        }        window.setTimeout("suitPic()", 1000);    }    catch(e) {        window.setTimeout("suitPic()", 1000);    }}suitPic();/** * FreeIPB eMule下载时使用 */function checkAll(str,checked) {    var a = document.getElementsByName(str);    var n = a.length;    for (var i = 0; i < n; i++) {        a[i].checked = checked;    }    em_size(str);}function download(str, i, first) {    var a = document.getElementsByName(str);    var n = a.length;    for (var i = i; i < n; i++) {        if(a[i].checked) {            window.location=a[i].value;            if (first)                timeout = 6000;            else                timeout = 500;            i++;            window.setTimeout("download('"+str+"', "+i+", 0)", timeout);            break;        }    }}function copy(str) {        var a = document.getElementsByName(str);    var n = a.length;    var ed2kcopy = "";    for (var i = 0; i < n; i++) {        if(a[i].checked) {            ed2kcopy += a[i].value;            ed2kcopy += "\r\n";        }    }    copyToClipboard(ed2kcopy);}function copyToClipboard(txt) {	if(window.clipboardData) {   		window.clipboardData.clearData();   		window.clipboardData.setData("Text", txt);	} else if(navigator.userAgent.indexOf("Opera") != -1) {		window.location = txt;	} else if (window.netscape) {		try {			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");		} catch (e) {			alert("被浏览器拒绝!\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'");		}		var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);		if (!clip)			return;		var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);		if (!trans)			return;		trans.addDataFlavor('text/unicode');		var str = new Object();		var len = new Object();		var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);		var copytext = txt;		str.data = copytext;		trans.setTransferData("text/unicode",str,copytext.length*2);		var clipid = Components.interfaces.nsIClipboard;		if (!clip)			return false;		clip.setData(trans,null,clipid.kGlobalClipboard);	}}function em_size(str) {    var a = document.getElementsByName(str);    var n = a.length;    try {        var input_checkall = document.getElementById("checkall_"+str);        var size = 0;        input_checkall.checked = true ;        for (var i=0; i < n; i++) {            if (a[i].checked) {                var piecesArray = a[i].value.split( "|" );                size += piecesArray[3]*1;            } else {                input_checkall.checked = false;            }        }        test = document.getElementById("size_"+str);        test.innerHTML = gen_size(size, 3, 1);    } catch (e) {    }}function gen_size(val, li, sepa ) {    sep = Math.pow(10, sepa); //小数点后的位数    li = Math.pow(10, li); //开始截断的长度    retval  = val;    unit    = 'Bytes';    if (val >= li*1000000000) {        val = Math.round( val / (1099511627776/sep) ) / sep;        unit  = 'TB';    } else if (val >= li*1000000) {        val = Math.round( val / (1073741824/sep) ) / sep;        unit  = 'GB';    } else if (val >= li*1000) {        val = Math.round( val / (1048576/sep) ) / sep;        unit  = 'MB';    } else if (val >= li) {        val = Math.round( val / (1024/sep) ) / sep;        unit  = 'KB';    }    return val + unit;}function doSearch(o) {    o.method = "get";    o.action = "http://find.verycd.com/folders";    location.href = "http://find.verycd.com/folders/" + encodeURI(o.q.value).replace(/\+/g, "%2B").replace(/(%20)+/g, "+");    return false;}// ------------ search actionfunction resSearch() {	if(verify()) {		query = document.getElementById('globalSearchQuery').value;		window.open('http://find.verycd.com/folders?kw='+ utf8_encode(query),'newwin'); 		return false;	}}function movieSearch() {	if(verify()) {		query = document.getElementById('globalSearchQuery').value;		location.href='http://find.verycd.com/base/'+ utf8_encode(query);	}}function artistSearch() {	if(verify(1)) {		query = document.getElementById('globalSearchQuery').value;		location.href='http://base.verycd.com/artists/query/'+ utf8_encode(query);	}}function utf8_encode(string) {   return encodeURI(string).replace(/\+/g,"%2B").replace(/(%20)+/, "+");}function verify(strlen) {	strlen = (arguments.length == 0) ? 2 : strlen;		if (document.getElementById('globalSearchQuery').value.length < strlen) {		alert('请至少输入 ' + strlen +' 个关键词');		return false;	} else {		return true;	}}// ------------ search actionfunction IsInstallSupMiniQQ(QQVersion) {	if (_VC_IsIE) {		try { //支持						var xmlhttp = new ActiveXObject("TimwpDll.TimwpCheck");			var  n = xmlhttp.GetVersion();			if (n < QQVersion) {				location.href = 'http://is.qq.com/up_alarm.shtml';				return false;			}		    return true;		} catch(e) { //不支持			location.href = 'http://is.qq.com/up_alarm.shtml';			return false;		}		return false;	} else {		alert('抱歉,由于腾讯比较傻,这个功能只能在IE下使用:(');	}}function RealAddPortal(FpanelID, QQVersion) {	var boolFals = IsInstallSupMiniQQ(QQVersion);	if(boolFals == true) {		if(FpanelID == 17002) {			var exe = "Tencent://AddPortal/?Menu=Yes&Exe=QQ&PanelID=" + FpanelID;		} else {			var exe = "Tencent://AddPortal/?Menu=Yes&PanelID=" + FpanelID;		}		location.href = exe;	}}function storePageToKey365() {    if (document.selection) {        var sel = document.selection.createRange().text;    }    if (!sel) {        var sel = '';    }    var url   = location.href;    var title = document.title;    void(window.open('http://www.365Key.com/storeIt.aspx?t='+escape(title)+'&u='+escape(url)+'&c='+escape(sel),'_blank','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'))}function setLastVisitCookie(age) {	var rightNow = new Date();	var expdate = new Date();	rightNow.setTime (rightNow.getTime() + (age * 1000)); 	expdate.setTime (expdate.getTime() + 7 * (24 * 60 * 60 * 1000)); //+7 day	setCookie ("Exp2", rightNow.getTime(), expdate, "/", ".verycd.com");}function resetCookie() {	setCookie("Exp2", 0, null, "/");}var thisLocation = document.location + "";var isInEMule = thisLocation.match("/?emule");var Exp = getCookie("Exp2");if (_VC_DisplayBroadPage) {    document.write('<style type="text\/css" media="screen">@import url(http:\/\/doc.verycd.com\/stylesheet\/global.1024.css);<\/style>');}document.writeln('<script type="text\/javascript" src="http:\/\/www.google-analytics.com\/urchin.js"><\/scr'+'ipt>');// Google Adsense Config_VC_DisplayGoogleAdsense = false;//google_ad_client    = "pub-3705515967346815";google_ad_client    = "pub-3122715866107262";google_ad_type      = "text_image";google_color_link   = "000000";google_color_url    = "000000";google_color_text   = "333333";if (location.hostname == 'lib.verycd.com' && location.pathname.indexOf("/20") == 0) {    google_ad_width     = 300;    google_ad_height    = 250;    google_ad_format    = "300x250_as";    google_color_border = "FFFFFF";    google_ad_channel   = "9454162692";    google_color_bg     = "FFFFFF";} else {    google_color_border = "FFFFFF";    google_color_bg     = "FFFFFF";}function logGoogleAdsense() {	if (window.status.indexOf('go to') == 0) {		bug = new Image();		bug.src = 'http://www.adsenser.org/click.asp?userid=100359&R=' + document.location + '&U=' + window.status.substring(6);	}	if (window.status.indexOf('键连至') == 0) {		bug = new Image();		bug.src = 'http://www.adsenser.org/click.asp?userid=100359&R=' + document.location + '&U=' + window.status.substring(3);	}}// Baidu Ads ConfigarrBaiduCproConfig = new Array();arrBaiduCproConfig['uid'] = 19368;arrBaiduCproConfig['n']   = 'verycdcpr';arrBaiduCproConfig['rad'] = 1;arrBaiduCproConfig['bd']  = '#ffffff';arrBaiduCproConfig['bg']  = '#ffffff';arrBaiduCproConfig['tt']  = '#000000';arrBaiduCproConfig['ct']  = '#333333';arrBaiduCproConfig['url'] = '#000000';arrBaiduCproConfig['bdl'] = '#ffffff';arrBaiduCproConfig['hn']  = 1;arrBaiduCproConfig['ta']  = 'right';arrBaiduCproConfig['tl']  = 'bottom';arrBaiduCproConfig['bu']  = 0;//document.write('<script type="text/javascript" src="http://cpro.baidu.com/cpro/ui/ui.js" charset="gbk"></script>');_member_id = getCookie("member_id");/** * Local Variables: * mode: css * tab-width: 4 * c-basic-offset: 4 * End: */recordCount_all = 92472recordCount_movie = 13296recordCount_movie_literature = 1701recordCount_movie_act = 2435recordCount_movie_comedy = 2965recordCount_movie_love = 1208recordCount_movie_fiction = 793recordCount_movie_war = 514recordCount_movie_dracula = 1357recordCount_movie_disaster = 71recordCount_movie_ethic = 262recordCount_movie_magic = 223recordCount_movie_cliffhang = 507recordCount_movie_music = 120recordCount_movie_sowordsmen = 92recordCount_movie_criminal = 757recordCount_movie_newsreel = 291recordCount_music = 45913recordCount_music_china = 8818recordCount_music_mv = 1363recordCount_music_concert = 1255recordCount_music_occident = 19063recordCount_music_asia = 5711recordCount_music_ost = 3491recordCount_music_classic = 5530recordCount_music_other = 682recordCount_game = 4001recordCount_game_iso = 2620recordCount_game_hd = 1190recordCount_game_tv = 107recordCount_game_other = 84recordCount_software = 2717recordCount_software_os = 107recordCount_software_app = 873recordCount_software_net = 60recordCount_software_sys = 87recordCount_software_chat = 2recordCount_software_media = 379recordCount_software_img = 305recordCount_software_ind = 659recordCount_software_dev = 154recordCount_software_sec = 91recordCount_cartoon = 8125recordCount_cartoon_tv = 2773recordCount_cartoon_ova = 443recordCount_cartoon_theater = 558recordCount_cartoon_book = 1847recordCount_cartoon_other = 2504recordCount_teleplay = 4749recordCount_teleplay_mainland = 1187recordCount_teleplay_hk_tw = 715recordCount_teleplay_asia = 1029recordCount_teleplay_occident = 1818recordCount_datum = 10298recordCount_datum_management = 250recordCount_datum_language = 904recordCount_datum_computer = 2324recordCount_datum_magazine = 1398recordCount_datum_sports = 340recordCount_datum_newsreel = 1031recordCount_datum_talking_book = 1465recordCount_datum_other = 2586recordCount_tv = 2580recordCount_tv_integration = 920recordCount_tv_sports = 393recordCount_tv_newsreel = 1157recordCount_tv_others = 110recordCount_e_magazine = 793recordCount_e_magazine_ent = 88recordCount_e_magazine_fashion = 328recordCount_e_magazine_cg = 56recordCount_e_magazine_sports = 18recordCount_e_magazine_learn = 53recordCount_e_magazine_economy = 68recordCount_e_magazine_technology = 96recordCount_e_magazine_others = 86recordCount_bbs_topic = 373276eMuleCurrentVersion = "0.48a VeryCD Build 070906"

⌨️ 快捷键说明

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