1function StripeBgColor(sId, sColor1, sColor2) { 2 3 var oParent = document.getElementById(sId); 4 var oChild = null; 5 var oChildren = oParent.childNodes; 6 var bStripeFlg = 0; 7 8 for (var i = 0; i < oChildren.length; i++) { 9 if (!oChildren[i]) continue; 10 oChild = oChildren[i]; 11 break; 12 } 13 14 while (1) { 15 if (undefined == oChild.tagName) { 16 oChild = oChild.nextSibling; 17 continue; 18 } 19 if (!oChild.tagName.match("(TBODY|THEAD|UL)")) break; 20 oChild = oChild.firstChild; 21 } 22 23 while (oChild != null) { 24 if (bStripeFlg == 0) { 25 oChild.style.backgroundColor = sColor1; 26 bStripeFlg++; 27 } else { 28 oChild.style.backgroundColor = sColor2; 29 bStripeFlg--; 30 } 31 oChild = oChild.nextSibling; 32 if (oChild && oChild.nodeType == 3) oChild = oChild.nextSibling; 33 } 34 35} 36 37var USER_AGENT = getAgentName(); 38 39function getAgentName() { 40 41 var userAgent = navigator.userAgent; 42 var charIndex; 43 var majorVersion; 44 45 charIndex = userAgent.indexOf("MSIE"); 46 47 if (charIndex) { 48 majorVersion = userAgent.charAt(charIndex + 4 + 1); 49 if (majorVersion > 4) { 50 return ("IE5"); 51 } else if (majorVersion == 4) { 52 return ("IE4"); 53 } 54 } 55 56 charIndex = userAgent.indexOf("Mozilla"); 57 58 majorVersion = userAgent.charAt(charIndex + 7 + 1); 59 60 if (majorVersion > 4) { 61 return ("NN5"); 62 } else if (majorVersion == 4) { 63 return ("NN4"); 64 } 65 66 return ("Unknown"); 67} 68 69function getWindowYOffset() { 70 if (USER_AGENT == "IE5" || USER_AGENT == "IE4") { 71 return document.body.scrollTop; 72 } else if (USER_AGENT == "NN5" || USER_AGENT == "NN4") { 73 return window.pageYOffset; 74 } else { 75 return 0; 76 } 77} 78 79var waitTimer; 80 81function jumpTo(dstY, srcY, scrollRate, waitMillSec) { 82 if (waitTimer) { 83 clearTimeout(waitTimer); 84 } 85 86 if (!dstY || dstY < 0) { 87 dstY = 0; 88 } 89 90 if (!srcY) { 91 srcY = 0 + getWindowYOffset(); 92 } 93 94 if (!scrollRate) { 95 scrollRate = 5; 96 } 97 98 if (!waitMillSec) { 99 waitMillSec = 20; 100 } 101 102 srcY += (dstY - getWindowYOffset()) / scrollRate; 103 104 if (srcY < 0) { 105 srcY = 0; 106 } 107 108 posY = Math.floor(srcY); 109 window.scrollTo(0, posY); 110 111 if (posY != dstY) { 112 waitTimer = setTimeout("jumpTo(" + dstY + ", " + srcY + ", " + scrollRate + ", " + waitMillSec + ")", waitMillSec); 113 } else if (posY == dstY) { 114 clearTimeout(waitTimer); 115 } else if (posY < 1) { 116 window.scroll(0, 0); 117 } 118} 119 120function gotoppage() { 121 jumpTo(0, 0, 7, 5); 122} 123 124$(function() { 125 // IE8 CSS style 126 if ($('html').hasClass('no-svg')) { 127 $('#menu-logo img').attr({ 128 src: '/image/heteml_logo201404.png' 129 }); 130 $('#menu-search input[type=image]').attr({ 131 src: '/image/index/icon_search.png' 132 }); 133 } 134 135 // ¥Ú¡¼¥¸Æâ¥ê¥ó¥¯ 136 $('a[href^="#"]').click(function() { 137 var speed = 400, 138 href = $(this).attr("href"), 139 target = $(href == "#" || href == "" ? 'html' : href), 140 position = target.offset().top - 120; 141 $('html, body').animate({ 142 scrollTop: position 143 }, speed, 'swing'); 144 return false; 145 }); 146 147 // ¥Ú¥Ñ¥Ü¥Õ¥Ã¥¿¡¼¤Î¥¹¥¯¥ê¥×¥È 148 $('#servicesFooter dl').addClass("clearfix"); 149 $('#servicesFooter dl ul').addClass("clearfix"); 150 151 152 // ¥á¥Ë¥å¡¼¤Î¥¹¥¯¥ê¥×¥È 153 $('#menu-list > li').hover( 154 function() { 155 $(this).children('ul').show(); 156 }, 157 function() { 158 $(this).children('ul').hide(); 159 } 160 ); 161 $('ul.menu-inside').hover( 162 function() { 163 $(this).siblings('a').css('color', '#008ecd'); 164 $(this).siblings('a.menu-login,a.menu_order').css('color', '#fff'); 165 }, 166 function() { 167 $(this).siblings('a').css('color', ''); 168 $(this).siblings('a.menu-login,a.menu_order').css('color', ''); 169 } 170 ); 171 $('ul.menu-inside li').on("click", function() { 172 var menu = $(this).find('a').attr('href'); 173 location.href = menu; 174 }); 175 $('#menu-icon').click(function() { 176 $(this).parent().toggleClass('close').toggleClass('open').children("li[id='']").show(); 177 }); 178 179 // WhatsNew 180 $("dl.dl-info").hover( 181 function() { 182 $(this).stop(true, true).animate({ 183 backgroundColor: "#fdff00" 184 }, 200); 185 }, 186 function() { 187 $(this).stop(true, true).animate({ 188 backgroundColor: "#fff" 189 }, 200); 190 } 191 ).click(function() { 192 var linktonews = $(this).find("a").attr("href"); 193 location.href = linktonews; 194 return false;
195 }); 196 197 // hetemlBLOG 198 $("dl.dl-blog").hover( 199 function() { 200 $(this).stop(true, true).animate({ 201 backgroundColor: "#fdff00" 202 }, 200); 203 }, 204 function() { 205 $(this).stop(true, true).animate({ 206 backgroundColor: "#fff" 207 }, 200); 208 } 209 ).click(function() { 210 window.open($(this).find("a").attr("href"), '_blank'); 211 return false; 212 }); 213 214 // Manual Submenu 215 var bodyID = $("body").attr("id"); 216 if (bodyID == "support") { 217 manualSubmenu(); 218 openSubmenu(); 219 } else if (bodyID == "option") { 220 part1_3(); 221 } else if (bodyID == "index") { 222 movingCP(); 223 } 224 225 // order-agency 226 $("#change-radio input").click(function() { 227 var radioNum = $("#change-radio input").index(this); 228 $(this) 229 .attr("checked", true) 230 .parent() 231 .addClass("CHK") 232 .siblings() 233 .removeClass("CHK") 234 .children() 235 .attr("checked", false); 236 $("#change-form").find("form").hide().eq(radioNum).show(); 237 }).filter(":checked").click(); 238 239 $("#agency-submit").click(function() { 240 $($("#change-radio input[type=radio]:checked").data("target-form")).submit(); 241 }); 242}); 243 244// ¤´ÍÑ·ïÊ̤˼ÁÌä¹àÌܤÎɽ¼¨¤òÀÚ¤êÂØ¤¨¤ë 245function switchInquiryBlock(type) { 246 if (!isFinite(type)) return; 247 248 $('[id^=mailInquiry]').hide(); 249 250 // typeÊ̤Îɽ¼¨¡¦Èóɽ¼¨ID¥ê¥¹¥È¤òÀë¸À 251 var openList = [ 252 [], 253 [], 254 [], 255 [], 256 [], 257 ['mailInquiryHead', 'mailInquiryUnavailableDomain', 'mailInquiryProblem'], // ¥µ¡¼¥Ð¾ã³²¤Ë¤Ä¤¤¤Æ 258 [], 259 ['mailInquiryHead', 'mailInquiryFileLocation', 'mailInquiryProblem'], // CGI¡¦SSI¡¦PHP¤Ë¤Ä¤¤¤Æ 260 ['mailInquiryHead', 'mailInquiryMailOsOther', 'mailInquiryMailSoftOther', 'mailInquiryProblemEmail', 'mailInquiryMailProblem', 'mailInquiryMailHeader'], // ¥á¡¼¥ë¤Ë¤Ä¤¤¤Æ 261 ['mailInquiryHead', 'mailInquiryProblemMailAddress', 'mailInquirySentDate', 'mailInquiryProblem'], // ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¡¦¥á¡¼¥ë¥Þ¥¬¥¸¥ó¤Ë¤Ä¤¤¤Æ 262 ['mailInquiryHead', 'mailInquiryFtpSoftware', 'mailInquiryProblem'], // FTP¤Ë¤Ä¤¤¤Æ 263 [], 264 ['mailInquiryHead', 'mailInquiryUrl', 'mailInquiryReason'], // ¥Ø¥Æ¥à¥ë¥æ¡¼¥¶¤Îµ¬Ìó°ãÈ¿¥µ¥¤¥È¤Ë¤Ä¤¤¤Æ 265 ['mailInquiryHead', 'mailInquiryDomainName'], // ÆÈ¼«¥É¥á¥¤¥ó¤Ë¤Ä¤¤¤Æ 266 [], 267 [], 268 ['mailInquiryHead', 'mailInquirySubDomainName', 'mailInquiryProblem'], // ÆÈ¼«SSL¡¦¶¦ÍSSL¤Ë¤Ä¤¤¤Æ 269 [], 270 [], 271 ['mailInquiryHead', 'mailInquiryRegisterName', 'mailInquiryRegisterEmail'], // ¥Ø¥Æ¥à¥ëID¡¦¥Ñ¥¹¥ï¡¼¥É¤Ë¤Ä¤¤¤Æ 272 ['mailInquiryHead', 'mailInquiryUrl'], // WAF¤Ë¤Ä¤¤¤Æ 273 [], 274 ]; 275 if (openList[Number(type)].length > 0) { 276 showInquiryBlock(openList[Number(type)]); 277 } 278} 279 280// »ØÄꤷ¤¿¼ÁÌä¹àÌܤòɽ¼¨¤¹¤ë 281function showInquiryBlock(openList) { 282 for (i = 0; i < openList.length; i++) { 283 $('#' + openList[i]).show(); 284 } 285} 286 287// ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Î¥µ¥¤¥É¤Ë¥¢¥³¡¼¥Ç¥£¥ª¥ó¥á¥Ë¥å¡¼¤ò¤Ä¤±¤ë 288function manualSubmenu() { 289 $("#manual-submenu .menu").hide(); 290 $("#manual-submenu div.category").mouseover(function() { 291 $(this).addClass("over"); 292 }).mouseout(function() { 293 $(this).removeClass("over"); 294 }); 295 $("#manual-submenu div.category").click(function() { 296 $("#manual-submenu ul.menu").slideUp(); 297 if ($("+ul", this).css("display") == "none") { 298 $("+ul", this).slideDown(); 299 } 300 }); 301} 302 303function openSubmenu() { 304 var page = location.pathname; 305 var hash = $('<div></div>').text(location.hash).html(); 306 if (hash) { 307 var $submenuList = $("#manual-submenu a[href = " + "'" + page + hash + "'" + "]"); 308 } else { 309 var $submenuList = $("#manual-submenu a[href = " + "'" + page + "'" + "]"); 310 } 311 var $subUl = $submenuList.parents("ul.sub"); 312 var $anchorUl = $submenuList.parents("ul.anchor"); 313 var $openList = $("#manual-submenu a[href = " + "'" + page + hash + "'" + "].openList"); 314 315 $submenuList.parents("ul.menu").show(); 316 317 $subUl.show(); 318 $anchorUl.show(); 319 320 // openList¤ò»ý¤Äa¥¿¥°¤Ë¶áÀܤ¹¤ëul¤ò³«¤¯ 321 $("+ul", $openList).show(); 322 323 $("#manual-submenu .sub a").click(function() { 324 if ($(this).parent().parent().hasClass("anchor")) { 325 $(this).addClass("here").parent().siblings().children("a").removeClass("here"); 326 } else { 327 $(this).addClass("here"); 328 } 329 }); 330 331 $submenuList.addClass("here"); 332 $submenuList.parents("ul.menu").prev("div").addClass("current"); 333} 334 335// part1_3 336function part1_3() { 337 var part1o3 = $(".part1_3"), 338 partW = part1o3.width(), 339 divW = part1o3.parent().width(), 340 part1o3M = (divW - (partW * 3)) / 2; 341 part1o3.slice(0, 2).css("margin-right", part1o3M); 342 $("dl.backup-function:even").css("margin-right", "20px"); 343} 344 345function movingCP() { 346 $("#cp-moving").hover( 347 function() { 348 $("#img-cp-moving").stop(true, true).animate({ 349 opacity: 0.1 350 }, 'fast'); 351 $("#text-cp-moving").stop(true, true).fadeIn('fast'); 352 }, 353 function() { 354 $("#img-cp-moving").stop(true, true).animate({ 355 opacity: 1 356 }, 'normal'); 357 $("#text-cp-moving").stop(true, true).fadeOut('normal'); 358 } 359 ); 360}
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.