Hello,
I'm trying to make a JavaScript dynamic display of an image.
Here’s my code:
<div class="info_image_click" style="display: none;">
<img src="slike/info_slika_click.jpg" />
</div><!--kraj info_image_click-->
<a href="javascript:void(null);">
<div class="info_image" style="margin: 0px auto;">
<img src="slike/info_slika.jpg"/>
</div>
</a><!-- info slika -->
<script>
$('.info_image').click(function () {
$('.info_image_click').show();
});
</script>
When someone clicks on "info_image" (that's the small picture) it opens the "info_image_click" (that's the large picture). I don't know how users can hide the "info_image_click" by clicking outside container in which he is. Sorry about my english :)