没测试,大概一个思路,还有你的时间1000设的太短,很可能到时候服务器并发太多挂掉<script language="javascript">
    function show()
    {
       var str=document.location.href
       if(/=(.+?)$/.test(str)){
       var picpath=RegExp.$1
       document.getElementById("mudedi").value=picpath
       }    
     }
</script>
<body onload="show()">

解决方案 »

  1.   

    <SELECT name="a" id="a">
    <OPTION value="1">其他1</OPTION>
    <OPTION value="2">其他2</OPTION>
    <OPTION value="3">其他3</OPTION>
    </SELECT><form><script type="text/javascript">
    window.onload=function(){
    var o = document.getElementById("a");
    o.value="3";
    o.focus();
    }
    </script>
      

  2.   

     obj[i].selected==true;//定义了这句,但还是实现不了 修改为 obj[i].selected=true;//定义了这句,但还是实现不了 试试看
      

  3.   

    值我是拿到了,只能用JS赋给某一DIV/TEXT为内容,但我想让它成为某一变量的值.这样我好到库里取记录
    我用的是PHP. 
      

  4.   

    也可以给select控件赋值的。。for(var i=0;i<select.options.length;i++){if(select.options[i].value=="传过来的值"){
    select.options[i].selected=true;
    }}
      

  5.   

    请教:用JS如何 得到当前页面的URL: 
    http://www.sohu.com/aa.php?file=2006/05/04/44/654321 中的 2006/05/04/44/654321这个值,也就是 file的值
      

  6.   

    这个比较麻烦得手工解析字符串。document.location.href可以拿到当前页面的地址,你可以alert一下,然后解析这个字符串,