?? xztools3.js
字號:
//需要mylink變量,如果沒有顯示全部,如果有則只顯示本站下載連接
//需要showMyStyle函數,該函數決定了顯示什么風格,該函數只能合作伙伴鏡像使用,如果本站下載鏡像使用將會屏蔽快速連接功能
function showDownlist(){
var titleList;
titleList = '遠程下載,專用通道,網通用戶,電信用戶,鐵通用戶,移動/聯通/廣電/長寬等';
linkList = '' +
'下載地址1,下載地址2,下載地址3,下載地址4,下載地址;' + //遠程下載
'高速下載,超級旋風,原始文件;' + //專用通道
'網通,煙臺熱線,大連信息港,哈爾濱信息港,寬帶安徽,臨汾;' + //網通用戶
'電信,互聯星空,江蘇南京,絲路寬頻;' + //電信用戶
'鐵通,E68;' + //鐵通用戶
'海泰寬帶,樂盟SKY,移動,聯通,廣電,長寬,上海有線通,長城寬帶,大慶油田,珠江寬頻;' + //其他
''; //不顯示組
var GroupArray;
var GroupTitle;
var SubGroupArray = new Array();
var hasMyLinkFlag = false;
GroupTitle=titleList.split(',');//決定了組標題和順序
GroupArray=linkList.split(';');
try{
mylink = mylink;
hasMyLinkFlag = true;
}catch(Exception){
hasMyLinkFlag = false;
}
var outputmylink = false;
for(var i=0;i<durl.length;i++){
var gname = splitStr(durl[i][0])[0];
var id = GetGroupID(GroupArray,gname);
if(id!=-1){
SubGroupArray[id] = (SubGroupArray[id]==null?"":SubGroupArray[id]) + CreateLink(durl[i]);
//alert(SubGroupArray[id]);
}
if(hasMyLinkFlag && durl[i][0]==mylink){
document.write(showMyStyle(durl[i][1]));
outputmylink = true;
return;
}
}
if(!outputmylink && hasMyLinkFlag){
document.write(showMyStyle(durl[0][1]));
return;
}
var qdown = showQuickDownlist();
var cc = '';
if(qdown != ''){
cc = '<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
' <tr>' +
' <td valign=top bgcolor="E3E3E3"> <b>高速下載</b>' +
' </td>' +
' </tr>' +
' <tr>' +
' <td valign=top align=center>' +
qdown +
' </td>' +
' </tr>' +
'</table>';
}
for(var i=0;i<GroupTitle.length/2;i++){
cc += showLine(GroupTitle,SubGroupArray,i);
}
document.write(cc);
}
function showLine(GroupTitle,SubGroupArray,itemid){
var cc = '';
cc ='<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
' <tr>' +
' <td valign=top width=50% align=center>' +
ShowTable(GroupTitle[itemid*2],SubGroupArray[itemid*2]) +
' </td>' +
' <td style="border-right:1px dotted #CCCCCC;" width=5> </td>' +
' <td width=5> </td>' +
' <td valign=top width=50% align=center>' +
(GroupTitle.length>itemid*2+1?ShowTable(GroupTitle[itemid*2+1],SubGroupArray[itemid*2+1]):"") +
' </td>' +
' </tr>' +
'</table>';
//alert(cc);
return cc;
}
function splitStr(str){
var sp = str.split(' ');
if(sp.length==1)
sp = str.split(' ');
if(sp.length==1)
sp = str.split('-');
if(sp.length==1)
sp = str.split('[');
return sp;
}
function GetGroupID(GroupArray,names){
for(var i=0;i<GroupArray.length;i++){
var sGroupTitle = GroupArray[i].split(',');
for(var j=0;j<sGroupTitle.length;j++){
if(names.indexOf(sGroupTitle[j])>=0){
return i;
}
}
}
return -1;
}
function ShowTable(title,link){
var contents = '<table width="95%" border="0" cellspacing="0" cellpadding="0" style="margin:10px 0px 4px 0px;">' +
' <tr>' +
' <th height=24 style="background:#E3E3E3;text-align:left;padding-left:15px;"><b>' + title + '</b></th>' +
' </tr><tr><td height=12 align=left valign=top><img src="../images/d_down_title.gif" /></td></tr>' + (link==null?'':link) +'</table>';
return contents;
}
function CreateLink(linkitem){
if(linkitem[0].indexOf('原始文件')>=0){
var ahref='<A oncontextmenu=ThunderNetwork_SetHref(this) onclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="使用迅雷下載" thunderType="" thunderPid="28310" thunderHref="'+linkitem[1]+'">迅雷高速下載通道</A>';
}else if(linkitem[0].indexOf('旋風')>=0){
var ahref='<a href="#" title="超級旋風下載通道" QHref = "'+linkitem[1]+'" onclick="XFOnDownloadClick_Simple(this,event,6000002)" oncontextmenu = "OnContextClick(this, event)">超級旋風下載通道</a>';
}else{
var ahref='<a href="' + linkitem[1] + '">' + linkitem[0] + '</a>';
}
var cs ='<tr><td height=18 align="left" style="padding:4px 0px 3px 10px;"><img src="../images/d_d.gif" border=0 align=absmiddle /> '+ahref+'</td> </tr>';
return cs;
}
function AddLink(durl,text,qurl,uid){
var JetCarCatch = null;
try{
JetCarCatch=new ActiveXObject("FG2CatchUrl.Netscape");
}catch(e){
try{
JetCarCatch=new ActiveXObject("BHO.IFlashGetNetscape");
}catch(e){
try{
JetCarCatch=new ActiveXObject("JetCar.Netscape");
}catch(e){}
}
}
if(JetCarCatch!=null){
try{
JetCarCatch.AddUrl(durl,text,qurl);
}catch(e){
JetCarCatch.AddUrlEx(durl,text,qurl,"","0");
}
}else{
var gotourl="http://search.kuaiche.com/union/down/flashget_total.html?fid=351";
window.open ('http://page.kuaiche.com/flashget_total.html?uid=351&durl='+durl+'&qurl='+qurl,'newwindow','');
// window.open ('http://page.kuaiche.com/flashget_total.html?uid='+uid+'_1&durl='+durl+'&qurl='+qurl,'newwindow','');
//window.open ('http://www.kuaiche.com/union/fgdown.php?durl='+escape(durl)+'&text='+escape(text)+'&qurl='+escape(qurl)+'&gotourl='+escape(gotourl),'newwindow','');
}
}
function AddLink_backup(durl,text,qurl){
var gotourl="http://search.kuaiche.com/union/down/flashget_total.html?fid=351";
var JetCarCatch;
var typeCheck;
var objRE = new RegExp("\.torrent\s*$","i");
typeCheck = objRE.test(durl);
try{
JetCarCatch=new ActiveXObject("FG2CatchUrl.Netscape");
}catch(e){
try{
JetCarCatch=new ActiveXObject("JetCar.Netscape");
}catch(e){}
}
if(JetCarCatch)
{
if(typeCheck){
try{JetCarCatch.IsVersion2(); }
catch(e)
{
// alert("您的計算機尚未安裝新版快車(FlashGet)\n\n請您先下載安裝后,才可使用高速下載網址,\n\n否則請選擇使用下面的軟件下載網址。");
window.open ('http://www.kuaiche.com/union/fgdown.php?durl='+escape(durl)+'&text='+escape(text)+'&qurl='+escape(qurl)+'&gotourl='+escape(gotourl),'newwindow','');
}
}
JetCarCatch.AddUrl(durl,text,qurl);
}
else
{
// alert("您的計算機尚未安裝新版快車(FlashGet)\n\n請您先下載安裝后,才可使用高速下載網址,\n\n否則請選擇使用下面的軟件下載網址。");
window.open ('http://www.kuaiche.com/union/fgdown.php?durl='+escape(durl)+'&text='+escape(text)+'&qurl='+escape(qurl)+'&gotourl='+escape(gotourl),'newwindow','');
}
}
function showQuickDownlist(){
var dlcontent = '';
var hasLink = false;
if(!hasLink && getPara('style')!=''){
dlcontent = getImgCode(getPara('style')).replace('[href]',durl[0][1]) + dlcontent;
}
return dlcontent;
}
function getPara(pname){
var tp = location.href.split('#');
var p = tp[0].split('&');
for(var i=0;i<p.length;i++){
if(i==0 && p[i].indexOf('?')>0){
if(p[i].split('?')[1].indexOf(pname+'=')==0){
val=p[i].split('?')[1];
return val.substring(pname.length+1,val.length);
}
}else{
if(p[i].indexOf('?')>0){
if(p[i].indexOf(pname+'=')==0)
return p[i].substring(pname.length + 1,p[i].length);
}
}
}
return '';
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -