var IGG_URL = "http://www.igg.com"; var iggglobal = "http://www.igg.com/iggglobal/"; document.write("\
\ \ \ \ \ "); var useragent = window.navigator.userAgent.toLowerCase(); var isIE6 = useragent.indexOf('msie 6')>0; //登录框的相关开代码 -- begin -- function ShowLoginZone(id,returnUrl,submitFormUrl){ id = id?id:'igg_login_WriteMsg'; submitFormUrl = submitFormUrl?submitFormUrl:false; if (isIE6) dealLoginSelect(true); var fm = document.getElementById('igg_login_form'); if (submitFormUrl){ fm.action = submitFormUrl; fm.setAttribute('bakurl',submitFormUrl); } if (returnUrl){ fm.action = fm.getAttribute('bakurl')+returnUrl; } document.getElementById(id).style.display='block'; document.getElementById('igg_login_newbg').style.display='block'; document.getElementById('igg_login_newbg').style.height=document.body.clientHeight; document.getElementById('M_Name').focus(); } function CloseLoginZone(id){ if (isIE6) dealLoginSelect(false); document.getElementById(id).style.display='none'; document.getElementById('igg_login_newbg').style.display='none'; } function onScrollEvent(){ if (!document.all){//判断是不是IE,是IE不用运行这句 document.getElementById('igg_login_newbg').style.top = document.documentElement.scrollTop+'px'; } document.getElementById('igg_login_WriteMsg').style.top = (100+document.documentElement.scrollTop)+'px'; } function checkLoginForm(f){ if (f.M_Name.value == ''){ alert('The IGG ID should only be letters, number or underline.'); f.M_Name.focus(); return false; } if (f.M_Pass.value == ''){ alert('Password should be between 1-20 characters or numbers, case sensitive.'); f.M_Pass.focus(); return false; } return true; } //隐藏或显示所有的select对像 function dealLoginSelect(hidden){ var selts = document.getElementsByTagName("SELECT"); if (hidden){ //全隐藏 for (var i=0; i