<script>
$(document).ready(function(){
$('a.menu-box').click(function(){
var largeImage = $(this).attr('data-full');
var pathImage = $(this).attr('data-target');
$('.selected').removeClass();
$(this).addClass('selected');
$('.full img').hide();
$('.full img').attr('src', largeImage);
$(".full a").attr('href', pathImage);
$('.full img').fadeIn();
}); // closing the listening on a click
No comments:
Post a Comment