
Hide/show "Who's who" actor images
By: a guest on
Jul 11th, 2012 | syntax:
JavaScript | size: 0.46 KB | hits: 25 | expires: Never
<script type="text/javascript">
require(['jquery-1'], function ($) {
$(document).ready(function () {
$("span.depiction > img").hide(); // would be better if the images were defined as hidden to start with, then we wouldn't need this line
$("span.depiction").css("text-align", "center").append("<br/><br/><span>click to toggle actor image</span>").click( function (event) {
$(this).children().toggle();
return false;
});
});
});
</script>