`
sh2015yao
  • 浏览: 136035 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

超级好用的弹出层

阅读更多

 

红色的地方都是可变的,也可以自己换边框的图片,总是就是超级好用啊,主要是兼容性好啊

 

<!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" />
<title>无标题文档</title>
	<link type="text/css" href="lhgdialog.css" rel="stylesheet" />
<script type="text/javascript" src="lhgcore.min.js"></script>
<script type="text/javascript" src="lhgdialog.js"></script>

<script type="text/javascript">
/*J(function(){
	//J('#b').dialog({ id: 'd1', title: '外部链接', page: 'http://www.baidu.com', link: true, btns: false, width: 700, height: 500 });
	//J('#c').dialog({ id: 'd2', title: '内部链接', page: '_content/01.html' });
	J('#b').dialog({ id: 'yao',title: '我的第一个demo', page: 'http://www.iteye.com',link:true,btns:false, width: 400, height: 250, cover: true }); 
		   });
*/
function hhyy(ids,urls)
{
	var dlg = new J.ui.dialog({ id: 'yao',title: '我的第一个demo', page: urls,link:true,btns:false, width: 400, height: 250, cover: true }); 
    dlg.ShowDialog();
	//J(ids).dialog({ id: 'yao',title: '我的第一个demo', page: urls,link:true,btns:false, width: 400, height: 250, cover: true }); 
}
	</script>
</head>

<body>
<input type="button" id="b" value="click" onclick="hhyy(this.id,this.title)" title="http://www.baidu.com" />
</body>
</html>

  

官方:http://www.cnblogs.com/lhgstudio/

  • 大小: 98.5 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics