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]
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]
解决方案 »
- 一个PHP做的彩信网站,可以发送祝福信息
- 为什么FTP_PUT()上传不成功
- 伪高端问题,如何防止客户端 爬虫的抓取?
- 这个问题该如何解决?
- 求助:Can't locate WWW/Curl/easy.pm in @INC
- 求Internet Explorer 5 下载地址
- 删除数据问题~~~~~~~~
- 简单的PHP代码分析!在线等!......
- 高手棒我看看!谢谢!
- 执行header("location:abc.php")出现找不到页面
- 使用AJAX&PHP修改文件 我想实现这样的效果:在Txt1输入数据 点击button后将Txt1.value写入文件1.txt
- 请教一下php怎么调用mysql锁?
<a href="#" onClick="openwin('private.php?to=<?php echo $url_username; ?>',500,500)"><?php echo "$username_current"; ?></a>