Currently, I am working on creating an image slice show to showcase various product images.
The idea is to have smaller thumbnails that when clicked, will display a larger image in a different section. The default view will be the big image of img1.
In addition, hovering over the large image will change the cursor to a magnifying glass (zoomin.cur), and clicking on the image will reveal another div (class="detailview-container-bg) on top of everything. Within this hidden div, small thumbnail images will be displayed at the top with a large image shown below, with img1 initially being the main display.
While I have successfully implemented the functionality to display a larger image upon the first click on a thumbnail, I am facing challenges with changing the cursor and showing the hidden div upon the second click. Despite writing jQuery for the second click event, it does not contain any errors - leaving me puzzled as to why the div is not appearing as intended.
$(function(){
$('#primaryImageDisplay').on("click",function(){
$('#productSlide').css({'display':'absolute'});
});
})
I have shared my code via JSFiddle and would greatly appreciate any insights or ideas you may have. Thank you for your time.