This code works in Chrome and IE, but nothing in Firefox!
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
JS:
$(window).load(function(){
$("#bostitchTitle_Printable_1, #bostitchTitle_Printable_2").hover(function () {
$(this).toggleClass("hoverblueL");
});
$(".printableTitle").hover(function () {
$(this).toggleClass("hoverblue");
});
});
CSS:
.hoverblue {
background:url('images/border-bottom.png') !important;
height:20px;
}
.hoverblueL {
background:url('images/border-bottom.png') !important;
height:36px;
}
HTML:
All of the relevant IDS above look like the below (but with their element name, ie. _1 and _2). Notice class .printableTitle
is shared among all in the <span>
tag, but I needed to define the other two unique DIVS because they required different height treatment.
<li id="bostitchPrintable_1">
<a href="http://www.canada.org" target="_blank">
<span id="bostitchTitle_Printable_1" class="printableTitle bos_title shimify">Rollin to Canada tonight!!</span>
</a>
</li>
IE and Chrome perfect... nothing resolves at all for Firefox!!