原HTML代码<html>
<head>
<script language="javascript" src="/jquery.js"></script>
<script LANGUAGE="JavaScript">
function downloadcount(id){
$.get("/hits.asp?rnd="+new Date().getMilliseconds()+"&t=6&id="+id);
}
</script>
<title>下载页面</title>
</head>
<body>
<div class="box">
<div class="t">从下面列表里选择地址下载</div>
<div class="url">
<p><a href="http://www.xx.com/xx.rar" onclick="downloadcount(2)">点击这里下载</a></p>
</div>
</div>
</body>
</html>
在html文件里运行正常,现在想把他运行在JS文件里,不知道该怎么写?