<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();