新浪微博 好友频道进入后 “取消关注”的JQery的弹出层特效如何实现? 新浪微博 好友频道进入后 “取消关注”的JQery的弹出层特效如何实现? 最好可以贴出代码... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 JS制作有遮罩层的模式对话框http://blog.csdn.net/xuexiaodong2009/article/details/6605417 JS弹出层http://www.cnblogs.com/jikey/archive/2010/08/23/1806059.html 当然可以了,js都可以,跟别说jquery了,jquery.ui也有很多弹出窗体 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Untitled Document</title> <script src="jquery.js" type='text/javascript'></script> <script> jQuery(function(){ jQuery(".btn").click( function(){ jQuery("body").append("<div class='DivMask'><iframe border='0' width='100%' height='100%' marginheight='0' marginwidth='0' scrolling='no'></iframe></div>"); SetCss(); } ) }); function SetCss(){ jQuery('.DivMask').css( { height:document.body.clientHeight, width:document.body.clientWidth, "background-color": "#CCCCFF", opacity:10,//兼容 top:"0", left:"0",//0就不要px了 position: "absolute",//这样就不会在按钮下面了 "z-index":900 //这句报错,不知道为什么“after property id”, //css属性中带“-”的,一律用引号"z-index"/"background-color" } ); } </script> </head> <body> <input id="button" type="button" class="btn" value="OK"/> </body></html> 参考:http://jqueryui.com/demos/ javascript获取gridview值失败! mousemove 和mouseleave 事件结合使用问题 js怎么生成重复字符串 JS前端限制上传文件大小的方法 js右下角显示提示信息问题,求高手帮忙!急!!!! 遍历html所有元素 清空页面中的表单内容 如何解決亂碼的問題? 如何实现ocx控件上绘制矩形区域 下拉框里边有很多选项,我们可以通过按首字母的键盘键迅速找到这个选项 如何获得下个月一共多少天呢 用nicEdit后怎么不能自动添加textarea的信息
http://blog.csdn.net/xuexiaodong2009/article/details/6605417
http://www.cnblogs.com/jikey/archive/2010/08/23/1806059.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<script src="jquery.js" type='text/javascript'></script>
<script>
jQuery(function(){
jQuery(".btn").click(
function(){
jQuery("body").append("<div class='DivMask'><iframe border='0' width='100%' height='100%' marginheight='0' marginwidth='0' scrolling='no'></iframe></div>");
SetCss();
}
)
});
function SetCss(){
jQuery('.DivMask').css(
{
height:document.body.clientHeight,
width:document.body.clientWidth,
"background-color": "#CCCCFF",
opacity:10,//兼容
top:"0",
left:"0",//0就不要px了
position: "absolute",//这样就不会在按钮下面了
"z-index":900 //这句报错,不知道为什么“after property id”,
//css属性中带“-”的,一律用引号"z-index"/"background-color"
}
);
}
</script>
</head>
<body>
<input id="button" type="button" class="btn" value="OK"/>
</body>
</html>
http://jqueryui.com/demos/