0
I have a code so structured
<?php
$p=0;
$delay=0;
while($p<=16){
$p++;
$delay+=0.2;
?>
<div class="column wow fadeInDown" onmouseout="outside(<?=$p; ?>)" onmouseover="inside(<?=$p; ?>)" data-detail="<?=$p; ?>" data-wow-delay="<?=$delay; ?>S">
<div class="details detail<?=$p; ?>" style="">
<div style="position:absolute;top:50%;left:50%;transform: translate(-50%,-50%);color:white;">
<b>Nome do Produto</b>
</div>
</div>
<img src="images/teste/<?=$p; ?>.jpg" style="max-width:100%;" />
</div>
<?php } ?>
In the code above there is an image gallery where passing over would show the name of the product. However, when I step over it, it shows but if pass to another the previous one remains. How do I hide others and keep the same?
These are the functions inside
and outside
function inside(e){
$(".detail"+e).fadeIn(500);
}
function outside(e){
$(".detail"+e).fadeOut(500);
}
should not have a "." point before Detail on
$("detail"+e).fadeOut(500);
?– Costamilam
@Only a typographical error, I will correct, but even normal does not work
– I_like_trains
Where the CSS style of code?
– Fabiano Monteiro