视频
作者:互联网
$('.introduce .arrow').on('click',function(e){
if($(this).attr('tip')==1){
$(this).css({backgroundImage:'url(img/arrow2.png)'});
$('.introduce .briefing').hide();
$('.introduce .details').show();
$(this).attr('tip',2);
}else{
$(this).css({backgroundImage:'url(img/arrow.png)'});
$('.introduce .briefing').show();
$('.introduce .details').hide();
$(this).attr('tip',1);
}
e.stopPropagation();
});
//播放视频 var video=document.getElementById('video'); video.onclick=function(){ if(this.paused){ this.play(); }else{ this.pause(); } };
//播放视频 var video=document.getElementById('video'); video.onclick=function(){ if(this.paused){ this.play(); }else{ this.pause(); } };
标签:视频,hide,attr,show,tip,introduce,video 来源: https://www.cnblogs.com/xuyanjiayou/p/15002776.html