將下面的代碼保存為jb51.html
復(fù)制代碼 代碼如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Javascript 播放器下載導(dǎo)航測(cè)試</title>
</head>
<body>
<div id="divcontent" style="text-align:left">好像沒找到你要的東西哦:)</div>
<script language="Javascript">
function $(id){return document.getElementById(id);}
var name= location.search.substring(1,location.search.length);
var lowername= name.toLowerCase();
var fArr=["scast","cplayer","ants","aplayer","pps","splayer","tvu","tplayer","ppl","pplayer","usee","uplayer","kplayer","pplayer2","uplayer2008"];
for(var i=0;i<fArr.length;i++){
if (lowername==fArr[i]){
var nName=fArr[i].replace('scast','cplayer');
nName= nName.replace('ants','aplayer');
nName= nName.replace('pps','splayer');
nName= nName.replace('tvu','tplayer');
nName= nName.replace('usee','uplayer');
$('divcontent').innerHTML= "您需要下載的解碼器文件是:<a href='http://down1.jb51.NET/chajian/"+nName+".exe'>"+nName+'.exe</a><br>(下載后運(yùn)行一下,然后再點(diǎn)擊“流星網(wǎng)絡(luò)電視”里的節(jié)目就可以收看了!)';
}
}
</script>
</body>
</html>
其實(shí)的時(shí)實(shí)際軟件下載地址
http://down1.jb51.NET/chajian/scast.exe
http://down1.jb51.NET/chajian/cplayer.exe
http://down1.jb51.NET/chajian/ants.exe
http://down1.jb51.NET/chajian/aplayer.exe
http://down1.jb51.NET/chajian/tvu.exe
http://down1.jb51.NET/chajian/tplayer.exe
http://down1.jb51.NET/chajian/ppl.exe
http://down1.jb51.NET/chajian/pplayer.exe
http://down1.jb51.NET/chajian/usee.exe
http://down1.jb51.NET/chajian/uplayer.exe
http://down1.jb51.NET/chajian/kplayer.exe
http://down1.jb51.NET/chajian/uplayer2008.exe
具體的頁(yè)面參數(shù)調(diào)用方式
jb51.html?kpalyer即可
JavaScript技術(shù):利用javascript實(shí)現(xiàn)一些常用軟件的下載導(dǎo)航,轉(zhuǎn)載需保留來源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。