0
我想創建一個導航鏈接,點擊後,可以過濾標記有數據過濾器的頁面上的視頻。這可以用HTML完成嗎?我需要jQuery嗎?如何爲嵌入式視頻創建過濾器?
<ul class="nav navbar-nav navbar-left">
<li><a href="#" data-filter="video1" tabindex="-1">Video 2</a></li>
<li><a href="#" data-filter="video2" tabindex="-1">Video 1</a></li>
</ul>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
<h4>Video 2 title</h4>
<div class="embed-responsive embed-responsive-16by9" data-filter="video2">
<iframe class="embed-responsive-item" src="video2" frameborder="0" scrolling="no" allowtransparency="true" allowfullscreen></iframe>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
<h4>Video 1 title</h4>
<div class="embed-responsive embed-responsive-16by9" data-filter="video1">
<iframe class="embed-responsive-item" src="video1" frameborder="0" scrolling="no" allowtransparency="true" allowfullscreen></iframe>
</div>
</div>