function show_userpanel(){ window.open("http://s143js.nicebox.cn/uc/#/set?idweb=10439&type=0&lang=0&server=&sessionId=smkutkjelfca1sro8h3rpiam61?id=10439&lang="); } function check_login(form){ if(!form.username.value || !form.pwd.value){alert("用户名和密码必须填写");return false;} setTimeout(function(){location.reload();}) return true; } $(function(){ $('[id="idBoxRegister"]').click(function(){ document.getElementById("boxName").innerHTML="会员注册"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/register.php?id=10439&lang="; box.Show({width:"500px",height:"500px"}); }); $('[id="idBoxFpass"]').click(function(){ document.getElementById("boxName").innerHTML="忘记密码"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/forget.php?id=10439&lang="; box.Show({width:"450px",height:"200px"}); }); }); function OnRegister(){ var s_PostUrl = "//s143js.nicebox.cn/fenxiaosrc/getFXIDUser.php?callback=?"; var arr_PostData = {}; var srcUrl = "//s143js.nicebox.cn/exusers/register.php?id=10439&lang="; document.getElementById("boxName").innerHTML="会员注册"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; $.getJSON(s_PostUrl,arr_PostData,function(data){ var i_FIDUser = data.FXIDUser; srcUrl+= "&FIDUser="+i_FIDUser; document.getElementById("showiframe").src = srcUrl; console.log(box); box.Show({width:"500px",height:"380px"}); }); } function OnLogin(){ document.getElementById("boxName").innerHTML="用户登录"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/u8_login.php?idweb=10439&lang=&qqlogin="; box.Show({width:"500px",height:"250px"}); } $(function(){ });