//导航下拉选中
$('.nav-unify .box li').mouseover(function() {
$(this).addClass("active").siblings().removeClass('active');
var idx = $(this).index();
});
测试新闻测试新闻测试新闻测试新闻测试新闻测试新闻
发表时间:2024-01-09
来源:【网络】
$('.fonts a').click(function() {
$('.fonts a').removeClass('active');
$(this).addClass('active');
switch($(this).index()) {
case 0:
$('.detailCont').css({
fontSize: 12
});
return false;
case 1:
$('.detailCont').css({
fontSize: 14
});
return false;
case 2:
$('.detailCont').css({
fontSize: 16
});
return false;
}
});
form_submit('feedback_form');
var urp = document.querySelector("#pro00");
var ur = urp.getElementsByTagName("a");
var li = document.querySelector(".pic").getElementsByTagName("img")[0];
for(var i = 0; i < ur.length; i++) {
ur[i].index = i;
ur[i].onmouseover = function() {
show(this.index);
}
}
function show(a) {
li.src = ur[a].dataset.src;
if(li.src == 'http://www.%%.com/') {
li.src = "/uploads/nopic.jpg";
}
}
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);
}