?? hotlist.js
字號:
///處理歌曲排行榜的表格數據//////////////////////////////////////////////////
function CommendMusicTable(){
var table = [];
this.insert = function(MusicName,MusicURL,Favor){
var row = {};
row.MusicName = MusicName;
row.MusicURL = MusicURL;
row.Favor = Favor;
table[table.length] = row;
}
this.showTable = function(){
//if(table.length < 1)return;
var htmlTable = document.all.MusicHotTable; //設置數據表格;
var i;
for(i=htmlTable.rows.length-1; i>0; i--){
htmlTable.rows(i).removeNode(true); //刪除那提示的表格行
}
var htmlRow, htmlCell, htmlText;
for(i=0; i<table.length; i++){
htmlRow = htmlTable.insertRow();
htmlCell = htmlRow.insertCell();
htmlCell.bgColor = "#FFFFFF";
htmlCell.align = "left";
if(i<9){
htmlText = "0" + (i+1) + " ";
}else{
htmlText = (i+1) + " ";
}
htmlText += "<a href=\"javascript:openMusicWindow('" + table[i].MusicURL + "');\">" + table[i].MusicName + "</a><span class=\"lwFont\">(" + table[i].Favor + ")</span>";
htmlCell.innerHTML = htmlText;
}
}
}
var SmileMusicTable = new CommendMusicTable();
///處理歌曲專輯排行榜的表格數據//////////////////////////////////////////////////
function CommendSpecialTable(){
var table = [];
this.insert = function(SpecialName,SpecialURL,SingerName,SingerURL,Favor){
var row = {};
row.SpecialName = SpecialName;
row.SpecialURL = SpecialURL;
row.SingerName = SingerName;
row.SingerURL = SingerURL;
row.Favor = Favor;
table[table.length] = row;
}
this.showTable = function(){
//if(table.length < 1)return;
var htmlTable = document.all.SpecialHotTable; //設置數據表格;
var i;
for(i=htmlTable.rows.length-1; i>0; i--){
htmlTable.rows(i).removeNode(true); //刪除那提示的表格行
}
var htmlRow, htmlCell, htmlText;
for(i=0; i<table.length; i++){
htmlRow = htmlTable.insertRow();
htmlCell = htmlRow.insertCell();
htmlCell.bgColor = "#FFFFFF";
htmlCell.align = "left";
if(i<9){
htmlText = "0" + (i+1) + " ";
}else{
htmlText = (i+1) + " ";
}
htmlText += "<a href=\"" + table[i].SpecialURL + "\">" + table[i].SpecialName + "</a><span class=\"lgFont\">[<a href=\"" + table[i].SingerURL + "\"><span class=\"lgFont\">" + table[i].SingerName + "</span></a>]</span><span class=\"lwFont\">(" + table[i].Favor + ")</span>";
htmlCell.innerHTML = htmlText;
}
}
}
var SmileSpecialTable = new CommendSpecialTable();
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -