why.xingtongworld.com项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

126 lines
3.8 KiB

/*******五大行情开始移动效果***********/
$(function(){
$(".shadow").hover(function(){
$(this).css({'boxShadow':'0 3px 3px 3px #edebed'});
},function(){
$(this).css({'boxShadow':''});
});
})
/*******市场数据/文化产业板/掌柜文化金服三大板块效果***********/
function addmenuClass(t){
$(t).addClass("datamenuactive").siblings().removeClass("datamenuactive");
}
/*******文化产业板/国有资产/掌柜文化金服三大板块效果***********/
function whcyb(t){
$(t).addClass("dataserviceactive").siblings().removeClass("dataserviceactive");
var index = $("#whcyb_data .dataservice .dataservicemenu").index(t);
$("#whcyb_data .dataservicecon").hide().eq(index).show()
}
function whcyb_type(t){
$(t).addClass("fistmanuactive").siblings().removeClass("fistmanuactive");
$("#whcyb").find(".servicemenu").hide().eq($(t).parent().find(".fistmenumode").index(t)).show();
}
function whcyb_data(t){
$(t).addClass("activemenutitle").siblings().removeClass("activemenutitle");
}
/********文化企业上市公会小板块效果**********/
function addsmallClass(t){
$(t).addClass("activemenutitle").siblings().removeClass("activemenutitle");
}
/******新闻资讯menu效果************/
function addnewsClass(t){
$(t).addClass("newsrightactive").siblings().removeClass("newsrightactive");
}
/*********文化金服效果*********/
function addserceClass(t){
$(t).addClass("activemenu").siblings().removeClass("activemenu");
}
/********掌柜艺拍效果**********/
function addshopkeeper(t){
$(t).addClass("newsrightactive").siblings().removeClass("newsrightactive");
}
/********政策列表方法**********/
function adddivbg(t){
t.style.backgroundColor="#F5F5F5";
$(t).find('.centettitle').css('color','rgba(235,76,18,1)');
}
function removedivbg(t){
t.style.backgroundColor="";
$(t).find('.centettitle').css('color','rgba(27,26,53,1)');
}
/********个人中心我的挂牌**********/
function addlisted(t){
t.style.backgroundColor="#F5F5F5";
}
function removelisted(t){
t.style.backgroundColor="";
}
/*********走进本所menu特效*********/
function addIntmenu(t){
$(t).addClass("modeleftmenuactive").siblings().removeClass("modeleftmenuactive");
}
/*******有疑问,请点我***********/
function doubtotton(){
$("#doubtwin").show('slow');
$('#doubtotton').hide();
}
function doubtwin(){
$("#doubtotton").show('slow');
$('#doubtwin').hide();
}
function addwinClass(t){
$(t).addClass("winactive").siblings().removeClass("winactive");
}
function addnews2Class(t){
t.style.color="rgba(240,60,24,1)";
}
function removebews2Class(t){
t.style.color="rgba(51,51,51,1)";
}
function addnews3Class(t){
$(t).addClass('newsactive2');
}
function removenews3Class(t){
$(t).removeClass('newsactive2');
}
function checkCardNo(cardType,value){
if(cardType==1){//身份证
var re = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
return re.test(value);
}else if(cardType==2){//护照
return true;
}else if(cardType==3){//军官证
return true;
}else if(cardType==4){//港澳通行证
return true;
}else if(cardType==5){//台同胞
return true;
}
}
function changeCardType(cardType,id){
var reg = '';
if(cardType==1){//身份证
reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
$("#"+id).attr("pattern",reg);
}else if(cardType==2){//护照
$("#"+id).removeAttr("pattern");
}else if(cardType==3){//军官证
$("#"+id).removeAttr("pattern");
}else if(cardType==4){//港澳通行证
$("#"+id).removeAttr("pattern");
}else if(cardType==5){//台同胞
$("#"+id).removeAttr("pattern");
}
}
function checkHTMLTag(value){
var reg = /[<]+[a-zA-Z]*[>]*|[<]*[a-zA-Z]*[>]+/;
return reg.test(value);
}