黑客,起步。 2011年06月11日 Qzone精彩由你而来 = "qq.com"; g_tj2_source = 114; function urlParamGet(a_url, a_paraName) { var re = new RegExp("[\\?&]" + a_paraName + "=([^&]*)"); if (re.test(a_url)) { return RegExp.$1; } else { return ""; } } var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1) { top.g_XDoc["bigSearchFlag"]=1; } function inputFocus(o) { MUSIC.css.addClassName(o,"input_focus"); } function inputBlur(o) { MUSIC.css.removeClassName(o,"input_focus"); } var searchflag=0; function srch(a) { var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1 && searchflag == 0) { var sValue=($("big_search_value").value).trim(); if(getRealLen(sValue) searchflag=0; else searchflag=1; } else var sValue=($("search_value").value).trim(); var vLen = getRealLen(sValue); if (vLen { alert("请先输入搜索关键字"); if(a && a == 1) { $("big_search_value").value=''; $("big_search_value").focus(); } else { $("search_value").value=''; $("search_value").focus(); } return false; } else if (vLen > 40) { alert("搜索的内容太长,请不要输入超过40个字符的内容!"); return false; } else { top.g_XDoc["FavKeyWord"] = sValue; } top.g_XDoc["FavKeyWord"]=sValue; search(); tj2_musicbox(121,105,1,g_tj2_source); if(flag && flag == 1) { var bigSearch = document.getElementById("bigSearch"); var miniSearch = document.getElementById("miniSearch"); bigSearch.style.display = "none"; top.g_XDoc["bigSearchFlag"]=0; miniSearch.style.display = ""; } } function search() { if(typeof(top.g_XDoc["FavKeyWord"]) == "undefined" || top.g_XDoc["FavKeyWord"] == "") { alert("请先输入搜索关键字"); } MUSIC.channel.search.initSearchVar(SearchShowResult); MUSIC.channel.search.getSrcgFav(); } function search2() { var sValue=($("input_noresult_keyword").value).trim(); var vLen = getRealLen(sValue); if (vLen alert("请先输入搜索关键字”"); $("input_noresult_keyword").value=''; $("input_noresult_keyword").focus(); return false; } else if (vLen > 40) { alert("搜索的内容太长,请不要输入超过20个字符的内容!"); return false; } else { top.g_XDoc["FavKeyWord"] = sValue; } top.g_XDoc["FavKeyWord"]=sValue; search(); } var g_pvSearchReported=true; function SearchShowResult(oResult, cursong_list) { if ( oResult.curnum == 0 ) { MUSIC.dom.getById("input_noresult_keyword").value = oResult.keyword.entityReplace(); MUSIC.dom.getById("hint_sorry").innerHTML = "很抱歉,QQ音乐正版曲库内暂无“" + oResult.keyword +"”相关歌曲,"; MUSIC.dom.getById("div_search_hint").style.display="none"; MUSIC.dom.getById("div_search_result").style.display="none"; MUSIC.dom.getById("div_search_result_page").style.display="none"; MUSIC.dom.getById("div_search_noresult").style.display=""; } else { MUSIC.dom.getById("div_search_noresult").style.display="none"; m_strHead = '序播放 歌曲名歌手名专辑名分享收藏背景更多'; m_strTRtpl= '%index%播放%songName%%singerName%%albumName%分享收藏设为背景音乐更多'; m_strTail = ''; var arrHtml = []; var strHtml; var strTemp; //head arrHtml.push(this.m_strHead); var iQQMusicNum=0; for(i=0;i iQQMusicNum++; var Index = (oResult.curpage-1)*oResult.perpage+i+1; var songName = getQzoneConfig().wide ? cut(cursong_list.songName, 40, "") : cut(cursong_list.songName, 30, ""); var songNameHtml = cursong_list.songName; var singerName = cut(cursong_list.singerName, 20, ""); var singerNameHtml = cursong_list.singerName; var albumName = cut(cursong_list.albumName, 20, ""); var albumNameHtml = cursong_list.albumName; var singerUrl = 'http://music.qq.com/musicbox/shop/v3/singer/'+cursong_list.singerId % 100+'/singer_'+cursong_list.singerId+'.html'; var albumUrl = 'http://music.qq.com/musicbox/shop/v3/singer/album/'+cursong_list.albumId % 100+'/singer_listen_'+cursong_list.albumId+'.html'; arrHtml.push(this.m_strTRtpl.replace(/%id%/g,cursong_list.id).replace(/%location%/g,cursong_list.location).replace(/%index%/g,Index).replace(/%song_url%/g,cursong_list.url).replace(/%singerId%/g,cursong_list.singerId).replace(/%songName%/g,songName.toScriptEncode()).replace(/%songNameHtml%/g,songNameHtml).replace(/%singerId%/g,cursong_list.singerid).replace(/%price%/g,cursong_list.price).replace(/%singerurl%/g,singerUrl).replace(/%singerName%/g,singerName).replace(/%singerNameHtml%/g,singerNameHtml).replace(/%albumid%/g,cursong_list.albumId).replace(/%albumurl%/g,albumUrl).replace(/%albumName%/g,albumName).replace(/%albumNameHtml%/g,albumNameHtml)); } //tail arrHtml.push(this.m_strTail); MUSIC.dom.getById("div_search_result").innerHTML = arrHtml.join(""); strHtml = ""; strHtml += 'QQ音乐“' + oResult.keyword + '”,共' + oResult.totalnum +'项。'; if ( top.isMusicVip == 0 ) { strHtml += '开通绿钻免费使用'; } MUSIC.dom.getById("div_search_hint").innerHTML = strHtml; MUSIC.dom.getById("div_search_hint").style.display=""; MUSIC.dom.getById("div_search_result").style.display=""; if ( top.isMusicVip == 0 ) { MUSIC.dom.getById("div_search_result_page_vip").innerHTML = '开通绿钻免费使用'; MUSIC.dom.getById("div_search_result_page_vip").style.display=""; } if ( oResult.totalpage > 1 ) { MUSIC.dom.getById("div_search_result_page").style.display=""; MUSIC.widget.pager.get(oResult.totalnum, oResult.curpage, oResult.perpage, 1, "div_search_result_page", MUSIC.channel.search.showPage.bind(MUSIC.channel.search)); } else { MUSIC.dom.getById("div_search_result_page").innerHTML = ' 1 下一页> '; MUSIC.dom.getById("div_search_result_page").style.display=""; } if(iQQMusicNum>0) { var arrSongId=[],bQQMusic=[]; var lstDom = $("listDom").childNodes[1]; var lstChild = lstDom.childNodes, o = null; var iType=0; for (var i = 0, l = lstChild.length; i o = lstChild; iType=parseInt(o.getAttribute("stype")); if (iType==1 || iType==5) { bQQMusic = 0; } else { bQQMusic = 1; arrSongId.push(o.getAttribute("sid")); } } function getSongMvCb() { try{ var musicJson = top.g_JData["songmv"]; if(!musicJson || typeof(musicJson)!="object") { alert("网络出错,读取信息失败,请检查您的网络"); return false; } if(musicJson.code == 0) { var musicnum = parseInt(musicJson.num); if(musicnum == 0) { return; } var songNodes = musicJson.mvlist; if(songNodes.length == 0) { return; } var index=0; for(var i=0,l=bQQMusic.length;i if(bQQMusic == 0) { continue; } else { if(songNodes[index].mvid!=0) { var songName=lstChild.getAttribute("sname").myEncode(); var singerName=lstChild.getAttribute("ssinger").myEncode() var singerId=lstChild.getAttribute("ssingerid"); lstChild.childNodes[2].setAttribute("mvid",songNodes[index].mvid+""); lstChild.childNodes[2].setAttribute("vid",songNodes[index].mvvid+""); lstChild.childNodes[2].innerHTML+='MV'; } index++; } } } } catch(e) { } } if(top.g_iUin > 10000) { var url="http://qzone-music.qq.com/fcg-bin/fcg_mv_getinfo_bysongid.fcg?ids="+arrSongId.join(",")+"&uin="+top.g_iUin+"&p="+Math.random(); top.loadJsonData("songmv", url, getSongMvCb, function(){}, true, void(0), "JsonCallback"); } } } contHeight("mainFrame", 2, 2); if(g_pvSearchReported){ g_pvSearchReported=false; }else{ pingQQ(); } } 推荐 排行榜 歌手 正版专辑 专题 搜索 推荐 在线首发 排行榜 歌手 正版专辑 淘歌 专题 搜索 搜索 搜索 QQ音乐“关键词”,共0项。 搜索结果: QQ音乐 绿钻上传音乐 很抱歉,QQ音乐正版曲库内暂无与“关键词”相关歌曲 我们在持续努力,敬请期待后续增加。 另外,也请您确认输入是否正确: 检查关键字是否带有错误字,或关键字是否过长。 请更改后再尝试搜索一次。 搜索 MUSIC.widget.skin.setStyle(top.g_StyleID); getUserState(function(){}); var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1) { document.getElementById("bigSearch").style.display=""; top.g_XDoc["bigSearchFlag"]=1; document.getElementById("div_search_result_page").style.display="none"; top.g_XDoc["FavKeyWord"]=null; } else { search(); } |xGv00|3721a599f2f5ac133f0b4b5494b9ff04
详细解决方案
黑客,启动
热度:540 发布时间:2012-08-24 10:00:21.0
黑客,起步。 2011年06月11日 Qzone精彩由你而来 = "qq.com"; g_tj2_source = 114; function urlParamGet(a_url, a_paraName) { var re = new RegExp("[\\?&]" + a_paraName + "=([^&]*)"); if (re.test(a_url)) { return RegExp.$1; } else { return ""; } } var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1) { top.g_XDoc["bigSearchFlag"]=1; } function inputFocus(o) { MUSIC.css.addClassName(o,"input_focus"); } function inputBlur(o) { MUSIC.css.removeClassName(o,"input_focus"); } var searchflag=0; function srch(a) { var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1 && searchflag == 0) { var sValue=($("big_search_value").value).trim(); if(getRealLen(sValue) searchflag=0; else searchflag=1; } else var sValue=($("search_value").value).trim(); var vLen = getRealLen(sValue); if (vLen { alert("请先输入搜索关键字"); if(a && a == 1) { $("big_search_value").value=''; $("big_search_value").focus(); } else { $("search_value").value=''; $("search_value").focus(); } return false; } else if (vLen > 40) { alert("搜索的内容太长,请不要输入超过40个字符的内容!"); return false; } else { top.g_XDoc["FavKeyWord"] = sValue; } top.g_XDoc["FavKeyWord"]=sValue; search(); tj2_musicbox(121,105,1,g_tj2_source); if(flag && flag == 1) { var bigSearch = document.getElementById("bigSearch"); var miniSearch = document.getElementById("miniSearch"); bigSearch.style.display = "none"; top.g_XDoc["bigSearchFlag"]=0; miniSearch.style.display = ""; } } function search() { if(typeof(top.g_XDoc["FavKeyWord"]) == "undefined" || top.g_XDoc["FavKeyWord"] == "") { alert("请先输入搜索关键字"); } MUSIC.channel.search.initSearchVar(SearchShowResult); MUSIC.channel.search.getSrcgFav(); } function search2() { var sValue=($("input_noresult_keyword").value).trim(); var vLen = getRealLen(sValue); if (vLen alert("请先输入搜索关键字”"); $("input_noresult_keyword").value=''; $("input_noresult_keyword").focus(); return false; } else if (vLen > 40) { alert("搜索的内容太长,请不要输入超过20个字符的内容!"); return false; } else { top.g_XDoc["FavKeyWord"] = sValue; } top.g_XDoc["FavKeyWord"]=sValue; search(); } var g_pvSearchReported=true; function SearchShowResult(oResult, cursong_list) { if ( oResult.curnum == 0 ) { MUSIC.dom.getById("input_noresult_keyword").value = oResult.keyword.entityReplace(); MUSIC.dom.getById("hint_sorry").innerHTML = "很抱歉,QQ音乐正版曲库内暂无“" + oResult.keyword +"”相关歌曲,"; MUSIC.dom.getById("div_search_hint").style.display="none"; MUSIC.dom.getById("div_search_result").style.display="none"; MUSIC.dom.getById("div_search_result_page").style.display="none"; MUSIC.dom.getById("div_search_noresult").style.display=""; } else { MUSIC.dom.getById("div_search_noresult").style.display="none"; m_strHead = '序播放 歌曲名歌手名专辑名分享收藏背景更多'; m_strTRtpl= '%index%播放%songName%%singerName%%albumName%分享收藏设为背景音乐更多'; m_strTail = ''; var arrHtml = []; var strHtml; var strTemp; //head arrHtml.push(this.m_strHead); var iQQMusicNum=0; for(i=0;i iQQMusicNum++; var Index = (oResult.curpage-1)*oResult.perpage+i+1; var songName = getQzoneConfig().wide ? cut(cursong_list.songName, 40, "") : cut(cursong_list.songName, 30, ""); var songNameHtml = cursong_list.songName; var singerName = cut(cursong_list.singerName, 20, ""); var singerNameHtml = cursong_list.singerName; var albumName = cut(cursong_list.albumName, 20, ""); var albumNameHtml = cursong_list.albumName; var singerUrl = 'http://music.qq.com/musicbox/shop/v3/singer/'+cursong_list.singerId % 100+'/singer_'+cursong_list.singerId+'.html'; var albumUrl = 'http://music.qq.com/musicbox/shop/v3/singer/album/'+cursong_list.albumId % 100+'/singer_listen_'+cursong_list.albumId+'.html'; arrHtml.push(this.m_strTRtpl.replace(/%id%/g,cursong_list.id).replace(/%location%/g,cursong_list.location).replace(/%index%/g,Index).replace(/%song_url%/g,cursong_list.url).replace(/%singerId%/g,cursong_list.singerId).replace(/%songName%/g,songName.toScriptEncode()).replace(/%songNameHtml%/g,songNameHtml).replace(/%singerId%/g,cursong_list.singerid).replace(/%price%/g,cursong_list.price).replace(/%singerurl%/g,singerUrl).replace(/%singerName%/g,singerName).replace(/%singerNameHtml%/g,singerNameHtml).replace(/%albumid%/g,cursong_list.albumId).replace(/%albumurl%/g,albumUrl).replace(/%albumName%/g,albumName).replace(/%albumNameHtml%/g,albumNameHtml)); } //tail arrHtml.push(this.m_strTail); MUSIC.dom.getById("div_search_result").innerHTML = arrHtml.join(""); strHtml = ""; strHtml += 'QQ音乐“' + oResult.keyword + '”,共' + oResult.totalnum +'项。'; if ( top.isMusicVip == 0 ) { strHtml += '开通绿钻免费使用'; } MUSIC.dom.getById("div_search_hint").innerHTML = strHtml; MUSIC.dom.getById("div_search_hint").style.display=""; MUSIC.dom.getById("div_search_result").style.display=""; if ( top.isMusicVip == 0 ) { MUSIC.dom.getById("div_search_result_page_vip").innerHTML = '开通绿钻免费使用'; MUSIC.dom.getById("div_search_result_page_vip").style.display=""; } if ( oResult.totalpage > 1 ) { MUSIC.dom.getById("div_search_result_page").style.display=""; MUSIC.widget.pager.get(oResult.totalnum, oResult.curpage, oResult.perpage, 1, "div_search_result_page", MUSIC.channel.search.showPage.bind(MUSIC.channel.search)); } else { MUSIC.dom.getById("div_search_result_page").innerHTML = ' 1 下一页> '; MUSIC.dom.getById("div_search_result_page").style.display=""; } if(iQQMusicNum>0) { var arrSongId=[],bQQMusic=[]; var lstDom = $("listDom").childNodes[1]; var lstChild = lstDom.childNodes, o = null; var iType=0; for (var i = 0, l = lstChild.length; i o = lstChild; iType=parseInt(o.getAttribute("stype")); if (iType==1 || iType==5) { bQQMusic = 0; } else { bQQMusic = 1; arrSongId.push(o.getAttribute("sid")); } } function getSongMvCb() { try{ var musicJson = top.g_JData["songmv"]; if(!musicJson || typeof(musicJson)!="object") { alert("网络出错,读取信息失败,请检查您的网络"); return false; } if(musicJson.code == 0) { var musicnum = parseInt(musicJson.num); if(musicnum == 0) { return; } var songNodes = musicJson.mvlist; if(songNodes.length == 0) { return; } var index=0; for(var i=0,l=bQQMusic.length;i if(bQQMusic == 0) { continue; } else { if(songNodes[index].mvid!=0) { var songName=lstChild.getAttribute("sname").myEncode(); var singerName=lstChild.getAttribute("ssinger").myEncode() var singerId=lstChild.getAttribute("ssingerid"); lstChild.childNodes[2].setAttribute("mvid",songNodes[index].mvid+""); lstChild.childNodes[2].setAttribute("vid",songNodes[index].mvvid+""); lstChild.childNodes[2].innerHTML+='MV'; } index++; } } } } catch(e) { } } if(top.g_iUin > 10000) { var url="http://qzone-music.qq.com/fcg-bin/fcg_mv_getinfo_bysongid.fcg?ids="+arrSongId.join(",")+"&uin="+top.g_iUin+"&p="+Math.random(); top.loadJsonData("songmv", url, getSongMvCb, function(){}, true, void(0), "JsonCallback"); } } } contHeight("mainFrame", 2, 2); if(g_pvSearchReported){ g_pvSearchReported=false; }else{ pingQQ(); } } 推荐 排行榜 歌手 正版专辑 专题 搜索 推荐 在线首发 排行榜 歌手 正版专辑 淘歌 专题 搜索 搜索 搜索 QQ音乐“关键词”,共0项。 搜索结果: QQ音乐 绿钻上传音乐 很抱歉,QQ音乐正版曲库内暂无与“关键词”相关歌曲 我们在持续努力,敬请期待后续增加。 另外,也请您确认输入是否正确: 检查关键字是否带有错误字,或关键字是否过长。 请更改后再尝试搜索一次。 搜索 MUSIC.widget.skin.setStyle(top.g_StyleID); getUserState(function(){}); var url=window.location.href; var flag = urlParamGet(url,"flag"); if(flag && flag == 1) { document.getElementById("bigSearch").style.display=""; top.g_XDoc["bigSearchFlag"]=1; document.getElementById("div_search_result_page").style.display="none"; top.g_XDoc["FavKeyWord"]=null; } else { search(); } |xGv00|3721a599f2f5ac133f0b4b5494b9ff04
相关解决方案