function createMoguraImg(){ var v_src = 'http://im-kokura.info/Analyzer/'; var v_args = '?mode=img&guid=on'; var v_ref = 'http_P_3A_P_2F_P_2Fim-kokura.info_P_2F'; var v_title; var v_path; var v_w, v_h; v_title = document.title; var tmpCharSet = (document.characterSet)?document.characterSet:document.charset; switch(tmpCharSet.toLowerCase()){ // case 'euc-jp': case 'EUC-JP': break; case 'utf-8': break; case 'iso-2202-jp': break; case 'shift-jis': break; default: v_title = ''; } v_path = document.URL; if(document.referrer.length) v_ref = document.referrer; try{ if(v_ref != parent.document.referrer && parent.document.referrer.length > 0){ v_ref = parent.document.referrer; } }catch(e){ }; v_path = encodeURIComponent(v_path); v_ref = encodeURIComponent(v_ref); v_title = encodeURIComponent(v_title); v_ref = v_ref.replace(/(%)/g,"_P_"); v_path = v_path.replace(/(%)/g,"_P_"); /* moniter */ v_w = screen.width; v_h = screen.height; v_args += '&ref='+v_ref; v_args += '&path='+v_path; v_args += '&monitor='+v_w+'x'+v_h; v_args += '&title='+v_title; v_args += '&color='+(navigator.appName != "Netscape" ? screen.colorDepth : screen.pixelDepth); v_args += '&cookie='+(navigator.cookieEnabled ? 1 : 2); v_args += '&js=1'; document.write('Mogura'); }; createMoguraImg();