"; $("body").append(sTemp); $("#copyurl").select(); document.execCommand("copy"); $("#copyurl").remove(); alert('https://www.ysmh.com.tw/news/moving-information-share 已成功複製,歡迎您分享!');}$(function () { $(window).scroll(function () { var scrollVal = $(this).scrollTop(); if(scrollVal < 150){ $("#article_conshare").hide(); }else if(scrollVal > 150){ $("#article_conshare").show(); } });});function search_check(obj, e) { if ($(obj).find('input[name="search_val"]').val().length == 0) { alert('請輸入查詢之關鍵字'); e.preventDefault(); }}/* 搜尋關鍵字送出 */function search_keyword(topic) {$('#formkeyta_pc').find('input[name=search_type]').val('keyword');$('#formkeyta_pc').find('input[name=search_val]').val(topic);$('#formkeyta_pc').submit();}/* 更新MENU點擊次數 */function updateClickNum(id, table_name, field_name) {$.ajax({ type: "POST", url: "/ajax_website/update_click_num", 'data' : {'id' : id,'table_name' : table_name,'field_name' : field_name, }, dataType:'json', success: function(info) {console.log('OK');}});}