I have this snippet of code:
<script type="text/javascript">
$(window).load(function() {
if(!$.browser.msie){
$('#myDiv').animate({opacity: 1}, 300);
} else if ($.browser.msie) {
$('#myDiv').css({opacity:1});
}
});
</script>
How can I say the same thing using the " : something ? somethingElse " syntax?
Thanks in advance?
Not sure I got the question, however:
Also, I’m not an expert of IE anymore, but I wonder if you could do something like:
That should be applied immediately, and made it more readable with an external variable:
Or something like that.