I am using jquery addClass code to show/hide elements when rolling over a div. in all browsers it works but in IE it only works when i rollover some text, not the full div.
so in this example, if I rollover the showingtext section of the main div, the hiddentext div will show. but if I mouse into the space in between the two floating divs (where there is now text or anything), the hover doesnt work.
UPDATE: the code below seems to work, but my production code does not. Please refer to this link: jsfiddle.net/H2anm/5 There are some broken images and such, but if you roll your mouse over the element into the whitespace to the right of the usernames, the location coordinates and the Pref.brand: Gamehouse.. or some of the surrounding whitespace of the Share/Bookmark links, the div collapses and the buttons/bgcolor change disappear.
javascript:
$(function() {
$("div.DivThatsTriggeredOnRollover").hover(
function() { $("div.hiddentext").addClass("hiddentextShow"); },
function() { $("div.hiddentext").removeClass("hiddentextShow"); });
});
pseudo-html code:
<div class="DivThatsTriggeredOnRollover" style="width:500px;">
<div id="showingtext" style="float:left;width:100px;">
here is showing text
</div>
<div class="hiddentext" style="float:right;width:100px;">
here is hidden text
</div>
</div>