📄 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(){
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.width = "79%";
htmlText = "<img src=\"Skin/Blue/images/redpoint.gif\" width=\"11\" height=\"11\" align=\"absmiddle\"> <a href=\"javascript:openMusicWindow('" + table[i].MusicURL + "');\">" + table[i].MusicName + "</a>";
htmlCell.innerHTML = htmlText;
htmlCell = htmlRow.insertCell();
htmlCell.width = "20%";
htmlCell.align = "center";
htmlCell.innerText = table[i].Favor;
htmlCell = htmlRow.insertCell();
htmlCell.width = "1%";
}
}
}
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(){
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.width = "79%";
htmlText = "<img src=\"Skin/Blue/images/redpoint.gif\" width=\"11\" height=\"11\" align=\"absmiddle\"> <a href=\"" + table[i].SpecialURL + "\" title=\"歌手:" + table[i].SingerName + "\">" + table[i].SpecialName + "</a>";
htmlCell.innerHTML = htmlText;
htmlCell = htmlRow.insertCell();
htmlCell.width = "20%";
htmlCell.align = "center";
htmlCell.innerText = table[i].Favor;
htmlCell = htmlRow.insertCell();
htmlCell.width = "1%";
}
}
}
var SmileSpecialTable = new CommendSpecialTable();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -