Thread:Joeytje50/@comment-4316832-20120316050107/@comment-4316832-20120610042918

For the fade-in and fade-out styles, I tried this code of jQuery: $('document').ready(function {   $('.mainpagehover, mainpagehover2').css {        opacity: '0';    };    $('.mainpagebutton').mouseover {        $('.mainpagehover, mainpagehover2').animate( {               opacity: '0.8'; },           200,        };    $('.mainpagebutton').mouseout { $('.mainpagehover, mainpagehover2').animate(            {                 opacity: '0';             },             200,         }; }); What did I do wrong, as it didn't work?