posts - 22,comments - 35,trackbacks - 0

          <script language="JavaScript">
          ? var pos,str,para,parastr,tempstr1;
          ? tempstr="";
          ? str = window.location.href;
          ? pos = str.indexOf("?")
          ? parastr = str.substring(pos+1);
          ? document.write("<br>文件路徑:"+str);
          ? if (pos>0){
          ??? document.write("<br>所有參數:"+parastr);
          ? }
          ? else {
          ??? document.write ("無參數");
          ? }


          ? if (str.indexOf("&")>0){
          ??? para = parastr.split("&");
          ??? for(i=0;i<para.length;i++) {
          ????? tempstr1 = para[i];
          ????? pos = tempstr1.indexOf("=");
          ????? //document.write (tempstr1.substring(0,pos));
          ????? document.write ("<br>參數"+i+":"+tempstr1.substring(0,pos));
          ????? document.write ("等于:"+tempstr1.substring(pos+1));
          ??? }
          ? }
          </script>


          ?
          <script language="javascript">
          ?function inhtm() {
          ??var n = document.location.search.substring(1);
          ??var s = n.substring(n.indexOf("=")+1, n.length);
          ??document.write ("ID=:"+s);
          ?}
          </script>

          posted on 2006-06-30 10:45 kelven 閱讀(149) 評論(0)  編輯  收藏 所屬分類: HTML
          主站蜘蛛池模板: 遵化市| 黑河市| 广元市| 九台市| 辽阳县| 大同市| 富顺县| 临清市| 永德县| 万山特区| 孙吴县| 滕州市| 星子县| 南昌市| 邳州市| 鄂尔多斯市| 永泰县| 武穴市| 普兰店市| 化隆| 两当县| 信宜市| 连江县| 清涧县| 余江县| 台中市| 长垣县| 徐州市| 津市市| 呼玛县| 永仁县| 马公市| 遂平县| 灵璧县| 漯河市| 防城港市| 新疆| 漳浦县| 青河县| 库伦旗| 巍山|