var popWin = "";
function openwin(URL,strWidth,strHeight){
if(popWin !=""){
popWin.close();
}
leftStr = (screen.width-strWidth)/2;
topStr = (screen.height-strHeight)/2;
windowProperties = "toolbar=no,menubar=no,scrollbars=yes,statusbar=yes"
+",height="+strHeight
+",width="+strWidth
+",left="+leftStr
+",top="+topStr+"";
isDay = new Date();
isID = isDay.getTime();
popWin = window.open(URL,isID,windowProperties);}
上面是脚本代码
下面是我的一个连接,可是点击后打开了但是$url_username这个在地址栏显示的样子就是<?=$url_username;?>http://localhost/php/chat/private.php?to=<?=$url_username;?>这个参数好像传递不过去奥,那位前辈帮忙看看??[code=HTML] <a href="#" onClick="openwin('private.php?to=<?=$url_username;?>',500,500)"><?php echo "$username_current";
  ?></a>/code]