jQuery(document).ready(function($) { // Assuming your element has an ID 'delta-1223424877' var deltaElement = $('#delta-1223424877'); ladyaElement.find('.adv-link').click(function(e) { // Get the coordinates of the click relative to the image var x = e.pageX - $(this).offset().left; var y = e.pageY - $(this).offset().top; // Create a temporary canvas to get pixel data var tempCanvas = document.createElement('canvas'); tempCanvas.width = $(this).width(); tempCanvas.height = $(this).height(); var ctx = tempCanvas.getContext('2d'); ctx.drawImage($(this)[0], 0, 0, $(this).width(), $(this).height()); // Get the pixel data of the clicked point var pixel = ctx.getImageData(x, y, 1, 1).data; // Check if the alpha channel (transparency) is 0 if (pixel[3] === 0) { e.preventDefault(); // Prevent the default link behavior // Optionally, you can add additional actions for the transparent part click } }); });