<script language="JavaScript" type="text/JavaScript">
<!--
//获取参数
function getUrlParam(name){
nk="";
var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");
var r=window.location.search.substr(1).match(reg);
if (r!=null) return unescape(r[2]);return nk;
}
-->
</script>
/////如URL:aa.html?cn=12&pn=25
<script language=JavaScript type=text/javascript>
document.write('<font size=5 color=#ff0000>'+getUrlParam("cn")+'</font>');
</script>
<script language=JavaScript type=text/javascript>
document.write('<font size=5 color=#ff0000>'+getUrlParam("pn")+'</font>');
/*
getUrlParam("cn")里的参数就是页面后跟着的参数名,根据情况,自行调用就可以了.
*/