Results 1 to 2 of 2

Thread: Animated gif and sound

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated gif and sound

    Hi, I am new to using javascript or any code for that matter and I am trying to get an animated gif to play at the same time as my wav file since sound can't be added to the gif. I attempted to make them both load completely before either starts playing but I am obviously doing something wrong because they still aren't synchronized. Here is my code attempt so please let me know where I went wrong. BTW the web page I am trying to do this on is kineticsparks.com in case you need to see it. Thanks!

    Code:
    <img name="kinetic" src="http://web.mac.com/kineticadvertising/media/kineticadvertisingdoneaniweb.gif" width="800" height="600" border="0" alt=" ">
    
    <EMBED 
       SRC="http://web.mac.com/kineticadvertising/media/sparks.wav"
       HEIGHT=60 WIDTH=144>
    
    <HEAD>
    <TITLE>play</TITLE>
    
    <script language="javascript">
    function done(){
            var movie = window.document.kineticadvertisingdoneaniweb.gif";
    	movie.play();
    }
    function done2(){
    	var sound=window.document.sparks.wav";
    	sound.play();
    }
    </script>
            
    </HEAD>
    <BODY bgcolor="#FFFFFF" onLoad="done();done2()">
    </BODY>
    </HTML>

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    The only help I can offer you is a link to this, it produces animation with sound.

    http://www.freedownloadmanager.org/d...375_p/free.htm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •