私はこのページのアクティブなサムネイルをどのように強調表示できるのだろうかhttp://www.doublezerofilms.com/doublezero-template-webSamples.htmlそれをクリックすると、別のサムネイルがクリックされるまでmouseover imgにとどまりますか?アクティブなサムネイルを強調表示する方法は?
これは私がビデオを選択するために使用しているコードであり、その下にhtmlのおかげです!
$(document).ready(function() {
$("#Thumb1").click(function() {
$("#hidden").hide().html('<iframe src="http://player.vimeo.com/video/38366163?autoplay=1" width="508" height="286" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>').fadeIn(4e3);
$("#leftsidePlayer").text("This is some text on the consulting video!")
});
<div class="thumbsWrap">
<div>
<div id="Thumb1" class="fadehover">
<img src="images/thumb1.jpg" alt="" class="a" />
<img src="images/thumb1-over.jpg" alt="" class="b" />
</div>
<div id="Thumb2" class="fadehover">
<img src="images/thumb2.jpg" alt="" class="a" />
<img src="images/thumb2-over.jpg" alt="" class="b" />
</div>
<div id="Thumb3" class="fadehover">
<img src="images/thumb3.jpg" alt="" class="a" />
<img src="images/thumb3-over.jpg" alt="" class="b" />
</div>
<div id="Thumb4" class="fadehover" style="margin:0px">
<img src="images/thumb4.jpg" alt="" class="a" />
<img src="images/thumb4-over.jpg" alt="" class="b" />
</div>
</div>
</div>
ホバーコード
$(document).ready(function() {
$("img.a").hover(function() {
$(this).stop().animate({
opacity: "0"
}, "fast")
}, function() {
$(this).stop().animate({
opacity: "1"
}, "fast")
})
});
有効な回答をマークして受諾率を上げてください。また、ホバースクリプトも含めてください。 –