`

如何使用jqueryartDialog

 
阅读更多
<script src="/statics/js/guagua/art/jquery-1.6.4.min.js"></script>
<script src="/statics/js/guagua/art/jquery.artDialog.js?skin=blue"></script>
<script src="/statics/js/guagua/art/iframeTools.source.js"></script>
<script src="/statics/js/guagua/art/highlight.pack.js"></script>
<script src="/statics/js/guagua/login.js"></script>

 

var t = 15000;
var isPop=0;
var loginstate = false;
hljs.tabReplace = '    ';
hljs.initHighlightingOnLoad();
var dialog = null;
function linkRe(){
	isPop=2;
}
function linklg(){
	isPop=1;
}
function initRege() {
	dialog.hide();
	reg();
	isPop = 2;
}
function successLoad(){
	location.reload();
}
function init() {
	if(loginstate == false) {
		setTimeout('initLogin()', t);
	}
}
function initLogin() {
	if(loginstate) {
		cleanTimeout(loginTime);
	} else {
		if(isPop==0) {
			login();
			isPop=1;
		}
	}
}
function closeDiv(){
	setTimeout('initLogin()',t);
	if(isPop==2){
		location.reload();
	}
	isPop=0;
}
function login()
{
	linklg();
	var ddialog = art.dialog({
		  title: "登录",
		  fixed: true,
		  resize: false,
          drag: false,
		  lock: true,
		  width: '450',
		  height: '250',
		  opacity:0.5,
		  padding: 0,
		  zIndex:200000000,
		  content:"<iframe src='loginform.html' width='450' height='250' frameborder='0' scrolling='no'></iframe>",
		  close: function () {
			  closeDiv()
		  }
	}).show();
	dialog = ddialog;
}

function reg()
{
	linkRe();
	var rdialog = art.dialog({
		  title: "注册",
		  fixed: true,
		  resize: false,
          drag: false,
		  lock: true,
		  width: '300',
		  height: '415',
		  opacity:0.5,
		  padding: 0,
		  content:"<iframe src='http://www0.17guagua.com/find!forward.jspa?commenderId=1059000001&url=simple_register&keepThis=true' width='300' height='415' frameborder='0' scrolling='no'></iframe>",
		  close: function () {
               closeDiv();
		  }
	}).show();
}
init();

 

0
0
分享到:
评论
1 楼 冬天秋天 2011-11-28  
<script src="/statics/js/guagua/art/jquery-1.6.4.min.js"></script> 
<script src="/statics/js/guagua/art/jquery.artDialog.js?skin=blue"></script> 
<script src="/statics/js/guagua/art/iframeTools.source.js"></script> 
<script src="/statics/js/guagua/art/highlight.pack.js"></script> 
<script src="/statics/js/guagua/login.js"></script>
楼主,除了上面第一个jquery库的引入,可以不作说明外。
其他的js库引入,你还是要说明一下呀,要不然人家一头雾水的啦 ……
Global site tag (gtag.js) - Google Analytics