利用javascript實(shí)現(xiàn)一些常用軟件的下載導(dǎo)航
更新時(shí)間:2009年08月03日 02:11:44 作者:
利用javascript實(shí)現(xiàn)一些常用軟件的下載導(dǎo)航,非常不錯(cuò)的應(yīng)用,思路值得借鑒,沒(méi)看過(guò)的朋友可以看下。
將下面的代碼保存為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">好像沒(méi)找到你要的東西哦:)</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 ;
}
}
</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即可
您可能感興趣的文章:
- js+css實(shí)現(xiàn)導(dǎo)航效果實(shí)例
- js實(shí)現(xiàn)多選項(xiàng)切換導(dǎo)航菜單的方法
- JS實(shí)現(xiàn)仿京東淘寶豎排二級(jí)導(dǎo)航
- js選擇并轉(zhuǎn)移導(dǎo)航菜單示例代碼
- JavaScript欄目列表隱藏/顯示簡(jiǎn)單實(shí)現(xiàn)
- javascript 樹(shù)形導(dǎo)航菜單實(shí)例代碼
- javascript實(shí)現(xiàn)的鼠標(biāo)懸停時(shí)動(dòng)態(tài)翻滾的導(dǎo)航條
- 用javascript來(lái)實(shí)現(xiàn)動(dòng)畫(huà)導(dǎo)航效果的代碼
- javascript實(shí)現(xiàn)的又一個(gè)不錯(cuò)的滑動(dòng)導(dǎo)航效果
- javascript實(shí)現(xiàn)當(dāng)前頁(yè)導(dǎo)航激活的方法
相關(guān)文章
EasyUI彈出框行編輯如何通過(guò)下拉框?qū)崿F(xiàn)內(nèi)容聯(lián)動(dòng)
本文介紹了如何使用EasyUI彈出框和下拉框?qū)崿F(xiàn)內(nèi)容聯(lián)動(dòng),并詳細(xì)描述了當(dāng)用戶(hù)選擇下拉框時(shí)如何更新當(dāng)前行數(shù)據(jù),通過(guò)解決datagrid的onClickRow和onClickCell事件不觸發(fā)的問(wèn)題,實(shí)現(xiàn)了下拉框選擇后數(shù)據(jù)的自動(dòng)填充2024-11-11
Javascript string 擴(kuò)展庫(kù)代碼
Javascript原生的String處理函數(shù)顯得很不夠豐富2010-04-04
自定義的一個(gè)簡(jiǎn)單時(shí)尚js下拉選擇框
下拉選擇框,是我們?cè)诰W(wǎng)頁(yè)中經(jīng)常使用到的,在本文為大家詳細(xì)介紹下使用js使用的下拉選擇框2013-11-11
JavaScript實(shí)現(xiàn)鼠標(biāo)移入隨機(jī)變換顏色
這篇文章主要給大家介紹了關(guān)于JavaScript實(shí)現(xiàn)鼠標(biāo)移入隨機(jī)變換顏色的相關(guān)資料,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2020-11-11
Chrome插件(擴(kuò)展)開(kāi)發(fā)全攻略(完整demo)
Chrome插件是一個(gè)用Web技術(shù)開(kāi)發(fā)、用來(lái)增強(qiáng)瀏覽器功能的軟件,它其實(shí)就是一個(gè)由HTML、CSS、JS、圖片等資源組成的一個(gè).crx后綴的壓縮包,本文給大家分享一個(gè)Chrome插件(擴(kuò)展)開(kāi)發(fā)全攻略完整demo,感興趣的朋友跟隨小編一起學(xué)習(xí)下吧2021-05-05

