弹出窗口问题 不同的页面点击同个连接,只弹出一个窗口,即如果该页面还没有弹出,就弹出,已经弹出了,就不再弹出!最好不要把状态存入数据库,要存的话,怎么让他弹出不被阻止!http://www.xiami.com/ 像这个网站的音乐播放器一样,只弹出一个 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 补充:用cookie的话,怎么兼容chrome <html> <head> <script type="text/javascript"> var id = null; function Myopen(){ if(id==null){ id = window.open("1.html","_blank","top=0,left=0,width=200,height=200,toolbar=no"); } } </script> </head> <body > <input type="button" onclick="javascript:Myopen()" value="打开窗口试试"/> </body><html> <head> <script type="text/javascript">var id = null;function Myopen(){if(id==null){id = window.open("1.html","_blank","top=0,left=0,width=200,height=200,toolbar=no");}} </script> </head> <body > <input type="button" onclick="javascript:Myopen()" value="打开窗口试试"/> </body><html><html> 给 window.open 打开的窗口指定一个名字,,浏览器将自动完成你的要求..如 window.open("xxxx.html","myPage") <input type="hidden" /><asp:HiddenField ID="HiddenField1" runat="server" /><asp:Literal ID="Literal1" runat="server"></asp:Literal> 上面两个,你随便用一个都可以 你只要在点击时判断一下,点击弹出窗口,你给值加一,以后你就判断隐藏域的值就行了,为0 弹出窗口,为1不弹出窗口 if(hidden.value=="0") { hidden.value="1"; ---- 弹出窗口---- } else { } jquery 图片滚动 帮忙完整一下 求助各位高手,有个问题想问一下,谢谢大家帮个忙 弱弱的问个tag问题 问一个关于document取值的问题 主题:Ext2.2的选择性打包,迷茫中... 怎样用js向div中追加一些标记 JS高人帮帮忙:计算时间差问题 如何用javascript在页面之间传递参数 哪位高人帮帮忙!! 高手请进!!!!!!!!!!!!!!! js问题 js获取mac地址为啥这么慢(十几秒)
<head>
<script type="text/javascript">
var id = null;
function Myopen(){
if(id==null){
id = window.open("1.html","_blank","top=0,left=0,width=200,height=200,toolbar=no");
}
}
</script>
</head>
<body >
<input type="button" onclick="javascript:Myopen()" value="打开窗口试试"/>
</body>
<html>
<head>
<script type="text/javascript">
var id = null;
function Myopen(){
if(id==null){
id = window.open("1.html","_blank","top=0,left=0,width=200,height=200,toolbar=no");
}
}
</script>
</head>
<body >
<input type="button" onclick="javascript:Myopen()" value="打开窗口试试"/>
</body>
<html>
<html>
<asp:HiddenField ID="HiddenField1" runat="server" />
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
你只要在点击时判断一下,点击弹出窗口,你给值加一,以后你就判断隐藏域的值就行了,为0 弹出窗口,为1不弹出窗口
if(hidden.value=="0")
{
hidden.value="1";
---- 弹出窗口----
}
else
{ }