0
I am unique in jQuery and need to create a simple way to detect via mouseenter, or Hover elements with the same class.
I created a menu with four buttons, all with the same class, so I put the mouse over one of them give an APPEND with a variable that adds two spans that will be effect masks.
Kind of:
<ul>
<li class="linkMenu"><a href="#" class="classeDoLink">Link1</a></li>
<li class="linkMenu"><a href="#" class="classeDoLink">Link2</a></li>
<li class="linkMenu"><a href="#" class="classeDoLink">Link3</a></li>
<li class="linkMenu"><a href="#" class="classeDoLink">Link4</a></li>
</ul>
And the CSS:
.linkMenu {
display: table;
padding: 10px 15px;
background: #900;
position:relative
}
.linkMenu a {
text-decoration: none;
color: #FFF;
font-size: 14px;
font-family: Arial, Sans-Serif
}
.spanMask1, .spanMask2 {
width: 100%;
height: 100%;
position: absolute;
}
.spanMask2 {
background: url(img.png) center center no-repeat;
z-index: 10;
}
.spanMask2 {
background: url(img2.png) center center no-repeat;
z-index: 20;
}
I’m not getting to add the SPANS .spanMask2
and .spanMask2
independently inside the button the mouse is on top of. When the mouse is on top of one of them all receive the SPANS.
Thanks for the help Beet XD It was bad for the bad edition of the question... I will apply what you passed me then put here the result. Thanks even more for the quick response :D
– Zambarah