Using JavaScript to implement some common software download and navigation _javascript skills

Source: Internet
Author: User

Save the following code as jb51.html

Copy Code code as follows:

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title>javascript player download navigation test </title>
<body>
<div id= "divcontent" style= "Text-align:left" > didn't seem to find anything you wanted. Oh: </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= "The decoder files you need to download are: <a href= ' http://down1.jb51.net/chajian/' +nname+ '. exe ' > ' +nname+ '. Exe</a><br> (after downloading the run, and then click on "Meteor Network TV" in the show will be able to watch!) )';
}
}
</script>
</body>

Actually when the actual software download address
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
How to call a specific page parameter
Jb51.html?kpalyer can

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.