var prompt_state = 0, prompt_none = 0,invite_state = 0; function prompt_off(){ var oHttpReq = new createXMLHttpRequest(); oHttpReq.onreadystatechange = function(){ if (oHttpReq.readyState != 4 ){ //$('num').innerHTML = '資料載入中, 請稍候'; } else{ if(oHttpReq.status == 200){ } } } oHttpReq.open( "GET", "prompt.data.php?type=prompt_off&rand="+rand(), true ); oHttpReq.send(null); } function prompt_show(){ var oHttpReq = new createXMLHttpRequest(); oHttpReq.onreadystatechange = function(){ if (oHttpReq.readyState != 4 ){ //$('num').innerHTML = '資料載入中, 請稍候'; } else{ if(oHttpReq.status == 200){ if(invite_state == 1){ document.getElementById("window_inner_3").style.display = "none"; } if(prompt_state == 1){ document.getElementById("window_outer_2").style.display = "block"; }else{ prompt_init(); } } } } oHttpReq.open( "GET", "prompt.data.php?type=prompt_state&rand="+rand(), true ); oHttpReq.send(null); } function prompt_reduce(){ document.getElementById("window_outer_2").style.height = '20px'; document.getElementById("window_body_2").style.display = "none"; document.getElementById("window_maxButton_1").style.display = "block"; document.getElementById("window_minButton_2").style.display = "none"; } function prompt_magnify(){ document.getElementById("window_outer_2").style.height = '371px'; document.getElementById("window_body_2").style.display = "block"; document.getElementById("window_maxButton_1").style.display = "none"; document.getElementById("window_minButton_2").style.display = "block"; } function prompt_close(){ var oHttpReq = new createXMLHttpRequest(); oHttpReq.onreadystatechange = function(){ if (oHttpReq.readyState != 4 ){ //$('num').innerHTML = '資料載入中, 請稍候'; } else{ if(oHttpReq.status == 200){ document.getElementById("window_outer_2").style.display = "none"; } } } oHttpReq.open( "GET", "prompt.data.php?type=prompt_close&rand="+rand(), true ); oHttpReq.send(null); } function invite_close(){ document.getElementById("window_inner_3").style.display = "none"; var oHttpReq = new createXMLHttpRequest(); oHttpReq.onreadystatechange = function(){ if (oHttpReq.readyState != 4 ){ //$('num').innerHTML = '資料載入中, 請稍候'; } else{ if(oHttpReq.status == 200){ } } } oHttpReq.open( "GET", "prompt.data.php?type=invite_close&rand="+rand(), true ); oHttpReq.send(null); } function prompt_init(){ prompt_state = 1; document.body.innerHTML += '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '' + '' + '' + '
線上客服
' + '
' + '
' + '
' + '' + '' + '' + '' + '' + '
' + '
' + '
' + '
' + '
' ; } function invite_init(){ if(prompt_state == 0){ invite_state = 1; document.body.innerHTML += '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
線上客服人員邀請您進行對話
' + '
' + '
' + '
' + '線上客服人員 (華中客服人員) 正在邀請您對話...' + '
' + '拒絕' + '確定' + '
' + '
' + '
' + '
' + '
' + '
' + '
'; } }