/g, ">"); $('#search_con_94_19').find('.w-searchkey-item a').each(function (index) { var name = $(this).attr("name"); var text = '在' + name + '中搜索"' + val + '"'; $(this).html(text); }); $('#search_con_94_19').find('.w-searchkey').slideDown(100); $("#smv_con_94_19").css("z-index", 10001); }); if ("Publish" != "Design") { $('#search_con_94_19 .w-searchkey-item a').off('click').on('click', function () { var type = $(this).attr('data-type'); $('#hid_con_94_19').val(type); var keyword = $("#search_con_94_19 .w-search-input").val(); if (keyword.replace(/(^\s*)|(\s*$)/g, "") == "") { alert("搜索關頭澳门内部正版资料大全下詞不克不及澳门内部正版资料大全下為空") return; } if (type == "news") { window.location.href = "/NewsInfoSearch?searchKey=" + encodeURIComponent(keyword); } else { window.location.href = "/ProductInfoSearch?searchKey=" + encodeURIComponent(keyword); } }); $('#search_con_94_19 .w-search-btn').off('click').on('click', function () { var type = $('#hid_con_94_19').val(); var keyword = $("#search_con_94_19 .w-search-input").val(); if (keyword.replace(/(^\s*)|(\s*$)/g, "") == "") { alert("搜索關頭澳门内部资料默认版块詞不克不及澳门内部资料默认版块為空") return; } if (type == "news") { window.location.href = "/NewsInfoSearch?searchKey=" + encodeURIComponent(keyword); } else { window.location.href = "/ProductInfoSearch?searchKey=" + encodeURIComponent(keyword); } }); $("#search_con_94_19 .w-search-input").keydown(function (e) { if (e.keyCode == 13) { $('#search_con_94_19 .w-search-btn').click(); } }) } })(jQuery);