jquery script that used to work is not working with jquery 1.4.2

Posted by Zayatzz on Stack Overflow See other posts from Stack Overflow or by Zayatzz
Published on 2010-06-01T11:53:30Z Indexed on 2012/03/23 5:29 UTC
Read the original article Hit count: 256

Filed under:

... and i cant figure out why.

The script is following:

<script type="text/javascript" src="http://path/to/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
            function openMediaPlayer() {
                $('#flashMovie').animate({'height':'333px'});
            }
            function closeMediaPlayer() {
                $('#flashMovie').animate({'height':'80px'});
            }
            jQuery(function($){
                $('#videoholder').bind('mouseenter', function(){
                    openMediaPlayer();
                });
                $('#videoholder').bind('mouseleave', function(){
                    closeMediaPlayer();
                });
            });
</script>
<div id="videoholder" style="height:80px;width:412px;">
<object width="412" height="80" type="application/x-shockwave-flash" id="flashMovie" name="flashMovie" style="height: 80px;" data="http://path/to/Player.swf"><param name="menu" value="false"><param name="bgcolor" value="#666666"><param name="allowFullscreen" value="true"><param name="flashvars" value="playlistURL=http://path/to/Player/data/playlist.xml"></object>
</div>

pure and simple resizing flash object. It worked with older(1.3.2) jquery verision. The animate just does not work.

Can anyone tell me what i should change to get it working again?

Alan.

© Stack Overflow or respective owner

Related posts about jQuery