(WHAT’S THE STORY) MORNING GLORY ?-Oasis (綠洲合唱團)|MyMusic 懂你想聽的

Uncategorized

‘;
var singerList = ‘

‘+getResultTitle(‘singer’,’歌手’,’歌手_全部’)+singerResult+’

‘;
var songList = ‘

‘+getResultTitle(‘song’,’歌曲’,’歌曲_全部’)+songResult+’

‘ ;
var albumList = ‘

‘+getResultTitle(‘album’,’專輯’,’專輯_全部’)+albumResult+’

‘ ;

if(eventCode != 38 && eventCode != 40){
$(‘#autoList’).empty();
$(‘#autoList’).append(allList+singerList+songList+albumList);
}
}else{
$(‘#autoList’).hide();
}
}
});
},
minLength: 1,
delay:500,
open: function( event, ui ) {
$(“.ui-autocomplete”).hide();
}
}).keydown(function (event, ui) {
if(event.keyCode==13){
var url = $(“#autoList>.list_col>a.selected”).attr(‘href’) ;
if(typeof(url) !== ‘undefined’) {
document.location.href = url ;
}else{
startSearch();
}
}
});
});

function startSearch(){
var searchWord = $(“#searchWord”).val();
if(searchWord!=”http://www.mymusic.net.tw/”){
url = url + encodeURIComponent(searchWord);
document.location.href= url;
}
}

function submitEnter(event) {
var x = event.keyCode;
if(x == ’13’){
startSearch();
}
}

function getResultTitle(category,name,tag){
var link = ‘/ux/w/search/’ + $(“#searchWord”).val();
link = link + ‘?type=’ + category;
var title = ‘‘;
title = title + ‘

‘ + name;
title = title + ‘

顯示全部

‘;
title = title + ‘

‘;

return title ;
}

function getItem(refId,category,fullname,icon,singer){
var link = “http://www.mymusic.net.tw/”;
var titleLink = “http://www.mymusic.net.tw/”;
var singerDiv = “http://www.mymusic.net.tw/”;
var tag = “http://www.mymusic.net.tw/”;

var isLimitText = calTextWidth(fullname) > 13 ? true : false ;
if(category == ‘Singer’){
link = ‘/ux/w/singer/show/’ + refId;
tag = ‘onclick=”ga_event_web(‘搜尋結果頁’,’Click_Singer’,’AutoComplete_歌手_’+fullname+'(‘+refId+’)’);”http://www.mymusic.net.tw/”;
if(isLimitText){
titleLink = ‘

‘;
}else{
titleLink = ‘

‘;
}
}else {
if(category == ‘Song’){
tag = ‘onclick=”ga_event_web(‘搜尋結果頁’,’Click_Song’,’AutoComplete_歌曲_’+fullname+'(‘+refId+’)’);”http://www.mymusic.net.tw/”;
link = ‘/ux/w/song/show/’ + refId;
}else if(category == ‘Album’){
tag = ‘onclick=”ga_event_web(‘搜尋結果頁’,’Click_Album’,’AutoComplete_專輯_’+fullname+'(‘+refId+’)’);”http://www.mymusic.net.tw/”;
link = ‘/ux/w/album/show/’ + refId;
}
if(isLimitText) {
titleLink = ‘

Source

Sharing is caring!

Leave a Reply