- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I took the code from the MenuFader tutorial and changed a few things about so it would work in the way I needed it to. It now works great in any browser other then IE but doesn’t work at all in IE.
Here is the Code I’m using:
CSS:
#content{width: 620px; height: 500px; border-top: 1px solid #666; padding: 1px;}
.buttonf {float: left; margin: 0; cursor: pointer; }
#one {display: block; opacity: 1}
#one-button {opacity: 1.0;}
#two {display: none; opacity: 1}
#two-button {opacity: 0.5;}
JQuery:
$(“#page-wrap .buttonf”).click(function(){
$clicked = $(this);
if($clicked.css(“opacity”) != “1” && $clicked.is(“:not(animated)”))
{
$clicked.animate({
opacity: 1,
borderWidth: 4
}, 600 );
var idToLoad = $clicked.attr(“id”).split(‘-‘);
$(“#content”).find(“div:visible”).fadeOut(“fast”, function(){
$(this).parent().find(“#”+idToLoad[0]).fadeIn();
})
}
$clicked.siblings().animate({
opacity: 0.5,
borderWidth: 1,
}, 600 );
});
});
Note: I’m using the jQuery(document) so that it will work in wordpress.
HTML:
Any ideas why this won’t work in IE?
Thanks?
I got the same problem for IE with wordpress
see related post if any ideas can come up: http://www.css-tricks.com/forums/viewtopic.php?f=5&t=1521
cheers.