Clicking a few images with borders

export function hikingImage_click(event, $w) {
if( $w(“#hikingBorder”).hidden )
{
$w(“#hikingBorder”).show();
}
}

export function hikingBorder_click(event, $w) {
if( $w(“#hikingBorder”).hidden )
{
$w(“#hikingBorder”).show();
}
else
{
$w(“#hikingBorder”).hide();
}
}

Thats the function I use when you click on hiking image.
The problem is…
I tried adding two more functions like that for each image but none works.
It seems likethe evens of clicking can work on one image only… or that is some of order I don’t understand

Hi Eilon,
Your code doesn’t work because the onClick event isn’t active if the element is hidden.
you need to add a container box and an invisible button, attach both button and image to the container. create an onClick event for the button which will hide the button and show the image.
Good luck.