详情页
jQuery(function ($) {
var hfaid = $("#hfArticleId").val();
$.get("/DesktopModules/Globalstech/Article/Handler/Hits.ashx", { infoid: hfaid }, function () {
});
var $RelativeNews = $("#RelativeNews");
if ($RelativeNews.length > 0) {
var portalId = $("#divPortal").attr("portalId");
var showRows = $RelativeNews.attr("showRows");
var showTime = $RelativeNews.attr("showTime");
var target = $RelativeNews.attr("target");
$.get("/DesktopModules/Globalstech/Article/Handler/GetRelativeArticleHandler.ashx", { infoid: hfaid, showRows: showRows, showTime: showTime, target: target, currentPortalId: portalId }, function (data) {
$RelativeNews.append(data);
});
}
var $PreviousNews = $("#PreviousNews");
var $NextNews = $("#NextNews");
if ($PreviousNews.length > 0 || $NextNews.length > 0) {
var mid = $("#hfmId").val();
var getdata = {};
getdata.infoid = hfaid;
getdata.mid = mid;
$.get("/DesktopModules/Globalstech/Article/Handler/GetNextNewsHandler.ashx", getdata, function (data) {
var nextnews = data.split("||")[0];
var prevnews = data.split("||")[1];
if (nextnews != "") {
$NextNews.append(nextnews);
}
if (prevnews != "") {
$PreviousNews.append(prevnews);
}
});
}
});
j9九游会登录入口首页新版党建工作
作者:小编 发布日期:2024-01-05 01:48:11
//
if (!window.jQuery) {
document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E"));
}
if (window.jQuery) {
(function($){
default_switch();
//简体繁体互换
function default_switch()
{
var home_lang = getCookie('home_lang');
if (home_lang == '') {
home_lang = 'cn';
}
if ($.inArray(home_lang, ['zh','cn'])) {
var obj = $('#jquerys2t_1573822909');
var isSimplified = getCookie('jquerys2t_1573822909');
if ('cn' == isSimplified) {
$('body').t2s();
$(obj).text('繁體');
} else if ('zh' == isSimplified) {
$('body').s2t();
$(obj).text('简体');
}
}
}
//简体繁体互换
$('#jquerys2t_1573822909').click(function(){
var obj = this;
var isSimplified = getCookie('jquerys2t_1573822909');
if ('' == isSimplified || 'cn' == isSimplified) {
$('body').s2t(); // 简体转繁体
setCookie('jquerys2t_1573822909', 'zh');
$(obj).text('简体');
} else {
$('body').t2s(); // 繁体转简体
setCookie('jquerys2t_1573822909', 'cn');
$(obj).text('繁體');
}
});
})(jQuery);
}