1// Browse Type 2// IE Script 3var NS4; 4var IE4; 5NS4 = (document.layers); 6IE4 = (document.all); 7isWin = (navigator.appVersion.indexOf("Win") != -1) 8 9if (NS4) { 10 document.captureEvents(Event.CLICK) 11 document.onclick = MouseDown; 12} else if (IE4) { 13 document.onclick = MouseDown; 14} 15 16 17// ==Name UI Handling == 18var n_id = ""; 19var n_tid = ""; 20var open_type = ""; 21 22function ui(lv_tid) { 23 n_tid = lv_tid; 24} 25 26function exec_menuitem(key) { 27 switch(key) { 28 case "EVENT1" : 29 my_gallery(n_tid); 30 break; 31 case "EVENT2" : 32 sendmemo(n_tid); 33 break; 34 case "EVENT3" : 35 sendsms(n_tid); 36 break; 37 case "EVENT4" : 38 sendemail(n_tid); 39 break; 40 case "EVENT5" : 41 sendfriend(n_tid); 42 break; 43 } 44 45} 46 47function my_gallery(id){ 48 if(my_board_frame != null){ 49 my_board_frame.location.href="../inc/my_board_chk.php?id="+id; 50 } 51} 52 53function sendmemo(susin_id){ 54 if(MOBILE_CONN_YN == true){ 55 x_popup('/shop_mypage/s_paper_form.htm?susin_id='+susin_id); 56 }else{ 57 var w = 400; 58 var h = 400; 59 var window_left = (screen.width-w)/2; 60 var window_top = (screen.height-h)/2; 61 var asendmemo_win = window.open('/shop_mypage/s_paper_form.htm?susin_id='+susin_id,'asendmemo_win','top='+window_top+',left='+window_left+',width='+w+',height='+h+',toolbar=no,scrollbars=yes,resizable=yes,status=yes,menubar=no,location=no'); 62 asendmemo_win.focus(); 63 } 64} 65 66function sendsms(s_id){ 67 if(MOBILE_CONN_YN == true){ 68 window.open('/bbs_shop/popup/sms_form.htm?s_id='+s_id); 69 }else{ 70 var sms_win = window.open('/bbs_shop/popup/sms_form.htm?s_id='+s_id,'sms_win','top=0,left=0,width=370,height=340,scrollbars=no'); 71 sms_win.focus(); 72 } 73} 74function sendemail(s_id){ 75 if(MOBILE_CONN_YN == true){ 76 window.open('/bbs_shop/popup/email_form.htm?s_id='+s_id); 77 }else{ 78 var mail_win = window.open('/bbs_shop/popup/email_form.htm?s_id='+s_id,'mail_win','top=0,left=0,width=640,height=520,scrollbars=no'); 79 mail_win.focus(); 80 } 81} 82function sendfriend(s_id){ 83 top.frames[1].friend_frame.location.href="../sub5/friend_ok.php?friend_id="+s_id; 84} 85 86var mouse_top; 87var mouse_left; 88var scroll_top; 89var scroll_left; 90var event_id = "none"; 91var status_over = false; 92var parent_menu_name = "menu_parent"; 93var child_menu_array = ["menu_child1"]; 94var submenu_left_indent = 70; 95var column_height = 18; 96var submenu_top_indent = 0; 97var mainmenu_top_indent = 0; 98 99var menuover_bgcolor = "#ccff00"; 100var menuover_fgcolor = "#ffffff"; 101var default_menuover_bgcolor = "#ffffff"; 102var default_menuover_fgcolor = "#000000"; 103 104 105 106function menuOver(ar_obj, ar_id) { 107 status_over = true; 108 changeColor(ar_obj); 109 hideChild(event_id); 110 viewSubMenu(event, ar_obj, ar_id); 111} 112 113function SubmenuOver(ar_obj) { 114 status_over = true; 115 changeColor(ar_obj); 116} 117 118function MouseDown(e) { 119 event_target = event.srcElement; 120 event_target = event_target.toString(); 121 event_check = event_target.indexOf("javascript:ui("); 122 if (!status_over) hideAll(); 123 if (!event_check) 124 viewMenu(event, parent_menu_name); 125 else { 126 if (!status_over) hideAll(); 127 return; 128 } 129} 130 131function hideChild(ar_id) { 132 133 if (event_id == "none") return; 134 var menu_len = child_menu_array.length; 135 for (i=0; i<menu_len; i++) eval(child_menu_array[i] + ".style.display = \"none\""); 136} 137 138function hideAll() { 139 if(!document.getElementById(parent_menu_name)) return; 140 eval(parent_menu_name + ".style.display = \"none\""); 141 if (event_id == "none") return; 142 var menu_len = child_menu_array.length; 143 for (i=0; i<menu_len; i++) eval(child_menu_array[i] + ".style.display = \"none\""); 144} 145 146function viewMenu(e, ar_id) { 147 148 if (ar_id == "none") return; 149 menuLocBod = window.document.body; 150 xPos = menuLocBod.scrollLeft + event.clientX; 151 yPos = event.clientY + menuLocBod.scrollTop; 152 screen_height = window.document.body.offsetHeight; 153 screen_width = window.document.body.offsetWidth; 154 mouse_top = e.y; 155 mouse_left = e.x; 156 eval("mainmenu_top_indent = " + parent_menu_name + ".children[0].children[0].children.length"); 157 mainmenu_top_indent = mainmenu_top_indent * column_height; 158 if (screen_height > mouse_top + mainmenu_top_indent) 159 yPos = event.clientY + menuLocBod.scrollTop; 160 else
161 yPos = (event.clientY + menuLocBod.scrollTop) - mainmenu_top_indent; 162 163 if (mouse_top - mainmenu_top_indent < 0) 164 yPos = event.clientY + menuLocBod.scrollTop; 165 166 eval(ar_id + ".style.pixelTop =" + yPos); 167 eval(ar_id + ".style.pixelLeft =" + xPos); 168 eval(ar_id + ".style.display = \"\""); 169} 170 171function viewSubMenu(e, ar_obj, ar_id) { 172 173 if (ar_id == "none") return; 174 event_id = ar_id; 175 parent_top = menu_parent.style.pixelTop; 176 parent_left = menu_parent.style.pixelLeft; 177 child_top = ar_obj.style.pixelTop; 178 child_left = ar_obj.style.pixelLeft; 179 screen_height = window.document.body.offsetHeight; 180 screen_width = window.document.body.offsetWidth; 181 mouse_top = e.y; 182 mouse_left = e.x; 183 menuLocBod = window.document.body; 184 xPos = menuLocBod.scrollLeft + parent_left + submenu_left_indent; 185 eval("submenu_top_indent = " + ar_id + ".children[0].children[0].children.length"); 186 submenu_top_indent = submenu_top_indent * column_height; 187 if (screen_height > mouse_top + submenu_top_indent) 188 yPos = event.clientY + menuLocBod.scrollTop; 189 else 190 yPos = (event.clientY + menuLocBod.scrollTop) - submenu_top_indent; 191 192 if (mouse_top - submenu_top_indent < 0) 193 yPos = event.clientY + menuLocBod.scrollTop; 194 195 eval(ar_id + ".style.pixelTop =" + yPos); 196 eval(ar_id + ".style.pixelLeft =" + xPos); 197 eval(ar_id + ".style.display = \"\""); 198} 199 200function menuOut(ar_obj) { 201 status_over = false; 202 changeColor(ar_obj); 203} 204 205function changeColor(ar_obj) { 206 if (ar_obj.style.background == menuover_bgcolor) { 207 ar_obj.style.background = default_menuover_bgcolor; 208 } else { 209 ar_obj.style.background = menuover_bgcolor; 210 } 211}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.