Skip to content
Snippets Groups Projects
Commit 2896a827 authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Now functioning properly in IE7.

parent 98f08bb1
No related branches found
No related tags found
No related merge requests found
WDN.jQuery(document).ready(function() {
if((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)){
WDN.jQuery('div.featuredWrapper').css({ height: 'auto' });
} else {
WDN.jQuery('p.hoverElement').hide();
WDN.jQuery('div.featuredWrapper').css({ cursor: "pointer" });
WDN.jQuery('div.featuredWrapper').mouseover(function(){
WDN.jQuery(this).before("<div class='spacer'></div>");
WDN.jQuery(this).addClass("selected");
WDN.jQuery(this).css("z-index", 999999);
WDN.jQuery(this).children('p.hoverElement').show();
WDN.jQuery(this).click(function(){
WDN.jQuery(document).ready(function() {
var $ = WDN.jQuery;
var ie7 = document.all && navigator.appVersion.indexOf("MSIE 7.") != -1;
$('p.hoverElement').hide();
$('div.featuredWrapper').css({ cursor: "pointer" });
$('div.featuredWrapper').mouseover(function(){
if (ie7) {
$(this).parent().css('z-index','999999');
}
$(this).before("<div class='spacer'></div>");
$(this).addClass("selected");
$(this).css("z-index", 999999);
$(this).children('p.hoverElement').show();
$(this).click(function(){
var theLink = WDN.jQuery(this).children('p.hoverElement').children('a').attr("href");
window.location = theLink;
});
WDN.jQuery(this).mouseout(function(){
WDN.jQuery('div').remove('.spacer');
WDN.jQuery(this).removeClass("selected");
WDN.jQuery(this).children('p.hoverElement').hide();
$(this).mouseout(function(){
if (ie7) {
$(this).parent().css('z-index','0');
}
$('div').remove('.spacer');
$(this).removeClass("selected");
$(this).children('p.hoverElement').hide();
});
});
}
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment