Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video.js videosjs-当工具提示效果应用于标题时”;cc";偶像_Video.js - Fatal编程技术网

Video.js videosjs-当工具提示效果应用于标题时”;cc";偶像

Video.js videosjs-当工具提示效果应用于标题时”;cc";偶像,video.js,Video.js,我正在尝试为videojs an编写一个皮肤代码,我需要在div.vjs-volume-control中的音量栏中应用与cc(字幕)相同的效果。如何将工具提示效果复制到音量栏 我可以自己用jquery来实现这一点,但我想知道是否可以不用jquery来实现这一点 在video.js第1446行中,我有: _V_.MuteToggle = _V_.Button.extend({ init: function(player, options){ init: function(play

我正在尝试为videojs an编写一个皮肤代码,我需要在div.vjs-volume-control中的音量栏中应用与cc(字幕)相同的效果。如何将工具提示效果复制到音量栏

我可以自己用jquery来实现这一点,但我想知道是否可以不用jquery来实现这一点

在video.js第1446行中,我有:

_V_.MuteToggle = _V_.Button.extend({

    init: function(player, options){
    init: function(player, options){
    this._super(player, options);
    player.addEvent("volumechange", _V_.proxy(this, this.update));    
    });
},
我看了一下,然后做了:

_V_.MuteToggle = _V_.Button.extend({

    init: function(player, options){  
    this._super(player, options);
    //var volume = _V_('volumeBar');
    player.addEvent("volumechange", _V_.proxy(this, this.update));
    this.addEvent("mouseover",  function(){
     var barra = new _V_.VolumeControl(this.player);
    //alert('sdsd');
    barra.fadeOut();
    });
},

警报起作用了。但当我想隐藏音量栏时,它就不起作用了

欢迎使用堆栈溢出!你试了什么?喂!我用我试过的方法编辑了这个问题。谢谢