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 加法怎么做?
- 一个日历的时间获取问题
- mysql查询数据
- 挣了个本本,庆祝下!
- Windows XP + Apatche2.2.4 + MySQL5.0 + PHP5.2.2 在个人电脑上模拟服务器配置,为什么显示服务器不支持MySQL?
- 在del.php?id=3中,我想删除的是id=3的记录,如何判断id的值是数字型的,而不是del.php?id=3 or id=5这种?
- 特高兴,接分的请进
- 谁有用模版template.inc写的好例程,给大家参考参考?
- 有关crypt()加密问题
- mysql语句问题, 求救, 在线等答案, 解决了立马结贴
- 使用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>