//=== viewid:dh_style_36_1634797963483 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $("#dh_style_36_1634797963483 li").each(function(){ }); }) //=== viewid:dh_style_36_1634797963483 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_36_1634797963483(){ $("#dh_style_36_1634797963483 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_36_1634797963483(); }) $(function(){ $("#dh_style_36_1634797963483 .fa-navicon").click(function(){ $("#dh_style_36_1634797963483 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_36_1634797963483(); $("#dh_style_36_1634797963483 .subBox").css("top",$("#dh_style_36_1634797963483 .menuUl_box").height()); if($("#dh_style_36_1634797963483 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_36_1634797963483 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_36_1634797963483 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_36_1634797963483 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_36_1634797963483 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_36_1634797963483 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_36_1634797963483 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_36_1634797963483 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_36_1634797963483 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:newsDetail_style_01_1506318095542 ===// /* * @Author:L.Tap * @Description: 绀句細鍖栧垎浜 */ (function($, window, document, undefined) { //鎻掍欢鍒濆鍖 function init(target, options) { var settings = $.extend({}, $.fn.socialShare.defaults, options); console.log(target); //$(target).find('.wechat_qrcode').find('img').attr('src','http://zixuephp.net/inc/qrcode_img.php?url='+options.url); $(target).find('.wechat_qrcode').find('img').attr('src','http://bshare.optimix.cn/barCode?site=weixin&type=0&publisherUuid=&url='+options.url); //娣诲姞鑵捐寰崥鍒嗕韩浜嬩欢 $(document).on("click",".msb_network_button.tQQ",function(){ tQQ(this,settings); }); //娣诲姞QQ绌洪棿鍒嗕韩浜嬩欢 $(document).on("click",".msb_network_button.qZone",function(){ qZone(this,settings); }); //娣诲姞鏂版氮寰崥鍒嗕韩浜嬩欢 $(document).on("click",".msb_network_button.sina",function(){ sinaWeibo(this,settings); }); //娣诲姞璞嗙摚鍒嗕韩浜嬩欢 $(document).on("click",".msb_network_button.douban",function(){ doubanShare(this,settings); }); //娣诲姞寰俊鍒嗕韩浜嬩欢 $(document).on("click",".weixin",function(){ // weixinShare(this,settings); //$(this).find('.wechat_qrcode').toggle(); }); } function replaceAPI (api,options) { api = api.replace('{url}', options.url); api = api.replace('{title}', options.title); api = api.replace('{content}', options.content); api = api.replace('{pic}', options.pic); return api; } function tQQ(target,options){ var options = $.extend({}, $.fn.socialShare.defaults, options); window.open(replaceAPI(tqq,options)); } function qZone(target,options){ var options = $.extend({}, $.fn.socialShare.defaults, options); window.open(replaceAPI(qzone,options)); } function sinaWeibo(target,options){ var options = $.extend({}, $.fn.socialShare.defaults, options); window.open(replaceAPI(sina,options)); } function doubanShare(target,options){ window.open(replaceAPI(douban,$.extend({},$.fn.socialShare.defaults,options))); } function weixinShare(target,options){ window.open(replaceAPI(weixin,$.extend({},$.fn.socialShare.defaults,options))); } $.fn.socialShare = function(options, param) { if(typeof options == 'string'){ var method = $.fn.socialShare.methods[options]; if(method) return method(this,param); }else init(this,options); } //鎻掍欢榛樿鍙傛暟 $.fn.socialShare.defaults = { url: window.location.href, title: document.title, content: '', pic: '' } //鎻掍欢鏂规硶 $.fn.socialShare.methods = { //鍒濆鍖栨柟娉 init:function(jq,options){ return jq.each(function(){ init(this,options); }); }, tQQ:function(jq,options){ return jq.each(function(){ tQQ(this,options); }) }, qZone:function(jq,options){ return jq.each(function(){ qZone(this,options); }) }, sinaWeibo:function(jq,options) { return jq.each(function(){ sinaWeibo(this,options); }); }, doubanShare:function(jq,options) { return jq.each(function(){ doubanShare(this,options); }); }, weixinShare:function(jq,options){ return jq.each(function(){ weixinShare(this,options); }); } } //鍒嗕韩鍦板潃 var qzone = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}&title={title}&pics={pic}&summary={content}'; var sina = 'http://service.weibo.com/share/share.php?url={url}&title={title}&pic={pic}&searchPic=false'; // var tqq = 'http://share.v.t.qq.com/index.php?c=share&a=index&url={url}&title={title}&appkey=801cf76d3cfc44ada52ec13114e84a96'; var tqq = 'https://connect.qq.com/widget/shareqq/index.html?url={url}&title={title}&pics={pic}&desc='; var douban = 'http://www.douban.com/share/service?href={url}&name={title}&text={content}&image={pic}'; //var weixin = 'http://zixuephp.net/inc/qrcode_img.php?url={url}'; var weixin = 'http://bshare.optimix.cn/barCode?site=weixin&type=0&publisherUuid=&url={url}'; })(jQuery, window, document); // var content_div = ''; // var show_div = ''; // var flag=""; // var lang=""; // var show_style=""; // var page_length = ""; var content_length = 0; var page_num = 1; var start_flag = 0; var end_flag = 0; var content_arr = ''; // var total_lenth = 0; // var page_count = 0; function getPage(hideNewsContent) { if(flag == 2){ var content = $(hideNewsContent).html(); content_arr = content.split(/