Disclaimer: I am new to jQuery.
I am trying to implement the fadeOut effect in jQuery for a div block, and then the fadeIn effect for two other div blocks.
However, these effects only work in the Chrome browser (i.e. they will not work in Safari, FireFox, Opera), which puzzles me quite a bit. I tried to clear my cache if it stores the old file, but did none of this.
The main idea (stored in the mainsite.js file):
$("#videoThumbnail_XYZ").click(function () { $("#thumbnailDescription_XYZ").fadeOut(300); $("#videoPlayer_XYZ").delay(300).fadeIn(100); $("#videoHiddenOptions_XYZ").delay(300).fadeIn(100); });
So, when you click the div tag with the identifier videoThumbnail_XYZ it launches fadeOut and fadeIn calls of other div tags.
I upload javascript files to the page in this order (so jQuery is loaded first):
<script src="http://code.jquery.com/jquery-1.4.4.js"></script> <script async="" type="text/javascript" src="javascripts/mainsite.js"></script>
Any guidance you could give is greatly appreciated!
source share