求解决,小问题,但我不懂,一个变量的问题,在线等
<div class="searBox">
<input type="text" onblur="if(this.value=='')this.value='输入电影名或演员名搜索'" onfocus="if(this.value=='输入电影名或演员名搜索')this.value=''" value="输入电影名或演员名搜索" name="searchs" id="searchs" class="shurk" onKeyDown="webchat_chkkeysend(event);"/>
<input name="按钮" type="button" class="button" value="搜 索" onclick="SearchURL();"/>
</div>
<script>
function SearchURL()
{
//$url=$("#searchs").val() ;
$url=document.getElementById("searchs").value;
top.location='http://127.0.0.1/search.php?search=$url';
}
function webchat_chkkeysend(event) {
if (event.keyCode==13) {
SearchURL();
}
}
</script>
这个地址怎么写,我一 点不懂这个