//通道图片滚动
$(document).ready(function() {
jQuery.jqsxfg51nav = function(jqsxfg51navhover) {
$(jqsxfg51navhover).prepend(""); $(jqsxfg51navhover).each(function() { var linkText = $(this).find("a").html(); $(this).find("span").show().html(linkText); }); $(jqsxfg51navhover).hover(function() { $(this).find("span").stop().animate({ marginTop: "-26" }, 250);
} , function() { $(this).find("span").stop().animate({
marginTop: "0" }, 250);
}); };
//下面是调用方法,一个页面也可以调用很多次
$.jqsxfg51nav("#menu1 li");
});
//搜索点击弹出效果
function SerMax(){
$('#btn_ser').click(function(){
$('#ser').toggle();
})
}
//下拉菜单 例调用:Nav('#nav');
function Nav(id){
var oNav = $(id);
var aLi = oNav.find('li');
aLi.hover(function (){
$(this).addClass('on');
},function (){
$(this).removeClass('on');
})};
//12.移动端顶部点击弹出下拉菜单
function Menu(menu,main){
var onOff = true;
$(menu).bind('click',function (){
$(main).slideToggle();
if($(this).hasClass('open')){
$(this).removeClass('open');
}else{
$(this).addClass('open');
}
})
$(main).find('li>a').bind('click',function (){
if($(this).parent().hasClass('on')){
$(this).parent().find('dl').slideUp();
$(this).parent().removeClass('on');
return false;
};
$(this).parent().siblings().removeClass('on');
$(this).parent().siblings().find('dl').slideUp();
$(this).parent().addClass('on');
$(this).parent().find('dl').slideDown();
})
};
// 二级页头部大图高度
function SubImgHeight(){
var iWSon = document.documentElement.clientWidth;
var oSubbanner = document.getElementById('subbanner');
if(iWSon>=1250){
oSubbanner.style.height = 600+'px';
}else if(iWSon<1250){
oSubbanner.style.height = iWSon * (600/1250)+'px';
}
window.onscroll = window.onresize = function (){
var iWSon = document.documentElement.clientWidth;
if(iWSon>=1250){
oSubbanner.style.height = 600+'px';
}else if(iWSon<1250){
oSubbanner.style.height = iWSon * (600/1250)+'px';
}
}
}
//字号大小
function ToMax(){
var oArt = document.getElementById('art');
var aEm = $('.rt01a_general em');
aEm[0].onclick = aEm[3].onclick =function (){
oArt.style.fontSize = '1.4em';
}
aEm[1].onclick = aEm[4].onclick =function (){
oArt.style.fontSize = '1.6em';
}
aEm[2].onclick = aEm[5].onclick =function (){
oArt.style.fontSize = '1.8em';
}
}
//大图切换高度问题
function ImgHeight(){
// var oSlider = document.getElementById('slider');
// var aLiSlider = oSlider.getElementsByTagName('img');
// window.onload = function (){
var iHeight = document.documentElement.clientWidth * (878/1920);
$('.banner,.caption,.wz_caption').css('height',iHeight+'px');
window.onscroll = window.onresize = function (){
var iHeight = document.documentElement.clientWidth * (878/1920);
$('.banner,.caption,.wz_caption').css('height',iHeight+'px');
}
// }
}
function setTab(m,n){
var tli=document.getElementById("menus"+m).getElementsByTagName("li");
var tmo=document.getElementById("bmore"+m).getElementsByTagName("strong");
var mli=document.getElementById("main"+m).getElementsByTagName("ul");
for(i=0;i";
if ( ww > 0 && ww < 6 ) colorhead="";
if ( ww==6 ) colorhead="";
if (ww==0) ww="星期日";
if (ww==1) ww="星期一";
if (ww==2) ww="星期二";
if (ww==3) ww="星期三";
if (ww==4) ww="星期四";
if (ww==5) ww="星期五";
if (ww==6) ww="星期六";
colorfoot=""
str = colorhead + yy + "年" + MM + "月" + dd + "日" + ww + colorfoot;
return(str);
}
function tick()
{
var today;
today = new Date();
document.getElementById("localtime").innerHTML = showLocale(today);
window.setTimeout("tick()", 1000);
}
tick();