Problem with jquery + plugin – opacity
-
I have one more question, because in my website at home page, im using pro version of your plugin https://zolkiewskiego7.bielsko.pl/. And I already I added 3 photos with marked areas and I want them to be displayed after pressing the buttons “Parter”, “Piętro I” and “Piętro II” I already used jquery and wrote the function but its not working because when I switch photos between buttons, it changes me opacity 0 in styles and i can only see one of the three photos. Currently I tried the hot fix and instead of hide () and show () in jquery I use opacity 1. Thats how my jquery function looks like:
jQuery(document).ready(function($){
$( “#hotspot-145, #hotspot-152” ).css(‘opacity’, ‘0’)
$( “.parter” ).click(function(){
$( “#hotspot-145, #hotspot-152” ).css(‘opacity’, ‘0’)
$( “#hotspot-125” ).css(‘opacity’, ‘1’)
});
$( “.jeden” ).click(function(){
$( “#hotspot-125, #hotspot-152” ).css(‘opacity’, ‘0’)
$( “#hotspot-145” ).css(‘opacity’, ‘1’)
});
$( “.dwa” ).click(function(){
$( “#hotspot-125, #hotspot-145” ).css(‘opacity’, ‘0’)
$(‘#hotspot-152’).css(‘opacity’, ‘1’)
});
});
The problem with this solution is that I cannot rigidly set position: relative and negative margins, because the strokes in the photos do not work however, pictures are displayed correctly.The page I need help with: [log in to see the link]
The topic ‘Problem with jquery + plugin – opacity’ is closed to new replies.