Created
August 4, 2008 15:17
-
-
Save digitalscientists/3907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" charset="utf-8"> | |
(function($){ | |
$(document).ready(function(){ | |
$('.prevImg').each(function(){ | |
$(this).click(function(){ | |
$(this).hide().siblings('.movie').show(); | |
}); | |
}); | |
}); | |
})(jQuery); | |
</script> | |
<div class="section"> | |
<div class="movie" style="display:none"> | |
movie | |
</div> | |
<div class="prevImg"> | |
image | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment