请教一种弹出窗口的技术实现 3. window.open()能设置属性 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.open()方法里参数的设置就能做出来了. 你用jBox可以实现你要的功能使用jQuery + jBox可以很方便实现你要的效果,给你个参考代码.组件你自己去下吧:http://www.aspstat.com/115<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link href="javascript/Lib/jBox.css" rel="stylesheet" type="text/css"/><title>无标题文档</title><script src="javascript/jquery-1.2.1.js"></script><script src="javascript/jBox-1.1.js"></script><script> var openID = 1001; $(document).ready(function () { $('a[@href=#]').click(function () { //jBox.open(openID,'iframe','open.html','窗口标题','width=200,height=250,center=true,minimizable=true,resize=true,draggable=true,model=true'); jBox.open(openID,'iframe','open.html','窗口标题','width=200,height=250,center=true,minimizable=true,resize=true,draggable=true,model=false'); //jBox.alert('对不起您没有填写完表单!', 300, 256); }); });</script></head><body><form><table width="80%" border="0" align="center"> <tr> <td align="right"> </td> <td><a href="#"> <label> <input type="text" name="city" id="city" /> </label> <input type="hidden" name="hiddenCity" id="hiddenCity" /> 选择城市</a> <br /></td> </tr></table></form></body></html> 演示地址:http://www.aspstat.com/jbox/demo.htm Jbox这个插件不漂亮,虽然有jquery不错。推荐:Greybox thickBox lightBox 求最全的JQUERY全选,求高人解决这个,好难啊 jquery判断一个div层中所有text类型的文本框是否有为空的文本框 求修改一个JQUERY折叠菜单 关于js正则表达式的非获取匹配的问题!!! js定义全局数组变量,function为什么不能访问 JS获取FLASH传出的参数__在线等 一个下拉点击的问题 求一正则表达式 js 不编译输出 如何禁用模式对话框右上角的关闭窗体的“X”按钮?? DropDwonCheckList的问题 JavaScript文件读取问题
使用jQuery + jBox可以很方便实现你要的效果,给你个参考代码.
组件你自己去下吧:
http://www.aspstat.com/115
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="javascript/Lib/jBox.css" rel="stylesheet" type="text/css"/>
<title>无标题文档</title>
<script src="javascript/jquery-1.2.1.js"></script>
<script src="javascript/jBox-1.1.js"></script>
<script>
var openID = 1001;
$(document).ready(function () {
$('a[@href=#]').click(function () {
//jBox.open(openID,'iframe','open.html','窗口标题','width=200,height=250,center=true,minimizable=true,resize=true,draggable=true,model=true');
jBox.open(openID,'iframe','open.html','窗口标题','width=200,height=250,center=true,minimizable=true,resize=true,draggable=true,model=false'); //jBox.alert('对不起您没有填写完表单!', 300, 256);
});
});
</script></head><body>
<form>
<table width="80%" border="0" align="center">
<tr>
<td align="right"> </td>
<td><a href="#">
<label>
<input type="text" name="city" id="city" />
</label>
<input type="hidden" name="hiddenCity" id="hiddenCity" />
选择城市</a>
<br /></td>
</tr>
</table>
</form></body>
</html>