You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.7 KiB
JavaScript
70 lines
1.7 KiB
JavaScript
$(document).ready(function(e) {
|
|
var showid = $(".Tags li:first").attr('id');
|
|
$('.list').removeClass('listMiddlebrank');
|
|
$('.list').hide();
|
|
$('.'+showid).each(function(index, element) {
|
|
if( (index-1)%3==0){
|
|
$(this).addClass("listMiddlebrank");
|
|
}
|
|
});
|
|
var si = 0;
|
|
$('.'+showid).each(function(index, element) {
|
|
si++;
|
|
if(si>6){
|
|
return false;
|
|
}
|
|
$(this).fadeIn();
|
|
});
|
|
|
|
if(si<7){
|
|
$('#moreurl').hide();
|
|
}else{
|
|
var urls = $('#'+showid).data("url") || 'javascript:;';
|
|
$('#moreurl').children('a').attr("href",urls);
|
|
$('#moreurl').show();
|
|
}
|
|
|
|
$('.Tags li').click(function(){
|
|
var ti = 0;
|
|
if($(this).attr('class') == 'actives'){
|
|
return false;
|
|
}
|
|
$('.Tags li').removeClass('actives');
|
|
var tar_ = $(this).attr('id');
|
|
$('.list').removeClass('listMiddlebrank');
|
|
$('.list').hide();
|
|
$('.'+tar_).each(function(index, element) {
|
|
if( (index-1)%3==0){
|
|
$(this).addClass("listMiddlebrank");
|
|
}
|
|
});
|
|
$('.'+tar_).each(function(indexs, elemenst) {
|
|
ti++;
|
|
if(ti>6){
|
|
return false;
|
|
}
|
|
$(this).fadeIn();
|
|
});
|
|
if(ti<7){
|
|
$('#moreurl').hide();
|
|
}else{
|
|
$('#moreurl').show();
|
|
}
|
|
//$('.'+tar_).fadeIn();
|
|
$(this).addClass('actives');
|
|
var urls = $(this).data("url") || 'javascript:;';
|
|
$('#moreurl').children('a').attr("href",urls);
|
|
//$('#moreurl').show();
|
|
});
|
|
|
|
//$('.CityArticle:last').attr("class","CityArticleLast");
|
|
|
|
$('#featured').orbit({animation: 'fade', bullets: true, 'bulletThumbs': false, captions: true, afterSlideChange: function(){}});
|
|
$(".advertising-container").mouseover(function(){
|
|
$(".slider-nav .right,.slider-nav .left").show();
|
|
});
|
|
$(".advertising-container").mouseout(function(){
|
|
$(".slider-nav .right,.slider-nav .left").hide();
|
|
});
|
|
});
|