javascript - Detecting the button click on z-index -1 -
hi jsfiddle code. there animation right left , left right when animation stops car image appear bottom. want detect if car image clicked have open new window. car image z-index set -1 close button visible if not able detect click functionality. can make work. when clicked on close button hides , shows single div.
#car_slider { position:fixed; bottom:-10px; width:300px; height:0; border:2px solid #000; z-index: -1; }
i tried using line of code not detect click.
$("#car_slider").click(function() { window.open('//www.google.com', '_blank'); });
put z-index:1;
#car_slider { position:fixed; bottom:-10px; width:300px; height:0; border:2px solid #000; z-index: 1; }
Comments
Post a Comment