add display none

This commit is contained in:
lh_wang
2015-08-04 13:32:02 +08:00
parent f716ce21d5
commit ca72d48566
2 changed files with 10 additions and 10 deletions
+8 -8
View File
@@ -254,17 +254,17 @@
}
//开启、关闭弹幕
var tag = 0;
$('.danmu').on('click', function(){
if(tag % 2 === 0){
$('#toupiao_frame').hide();
if($('#tanmu_div').css('display') === 'none' || parseInt($('#tanmu_div').css('top')) < 0){
$('#tanmu_div').fadeIn();
$('#tanmu_div').css('right', '79px');
$('#tanmu_div').css('top', '70px');
$('#tanmu_div').css('visibility', 'visible');
}else{
$('#tanmu_div').fadeOut();
}
tag ++;
});
//获取小车的位置
@@ -549,14 +549,13 @@
}
//开启、关闭投票
var tou_tag = 0;
$('.toupiao').on('click', function(){
if(tou_tag % 2 === 0){
$('#toupiao_frame').fadeIn();
}else{
$('#tanmu_div').hide();
if($('#toupiao_frame').css('display') !== 'none'){
$('#toupiao_frame').fadeOut();
}else{
$('#toupiao_frame').fadeIn();
}
tou_tag ++;
});
@@ -633,4 +632,5 @@
}, 1000);
}
})(window, $);