1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Please] Need help with my first attempt with html -- lol... noobie alert!

Discussion in 'HTML & JavaScript' started by We Go, Dec 6, 2012.

  1. We Go

    We Go Junior Member

    Joined:
    May 8, 2012
    Messages:
    163
    Likes Received:
    54
    Greetings!


    I have not done any html to speak of yet, so I am trying to see that I am on the right track to get this working. :crazy:Any input from experienced person that has done something similar is GREATLY appreciated!


    Intent is to have an animated gif (everything is hosted offsite) included on a web page or possibly an email: while the gif is playing there is an included white panel that will have a .mov playing (I want the sound so I am not using animated gif for everything). I have finally figured I should be able to use a client side map to make this work, but not sure about a few things. I am still struggling in GIMP to complete the animation, but that is a different forum. I want to be sure what I need can be done easily.:rolleyes:


    I used this as a resource:
    Code:
    http://www.w3.org/TR/html401/struct/objects.html
    
    If I am off base and you can find an area on the resource page to point out what I am wrong about, that would help as well as fixing my code.


    These are my concerns:


    1. I dont think the .mov will play without some action on part of the person viewing the page. If so how can I get it started automatically as the gif loads?


    2. I am guessing I still have something seriously missing in the code but I have no clue !!




    Code:
    <HTML>
    
    
        <BODY>
    
    
    <P><OBJECT img="http://www.mysite.com/designs/animated.gif" type="image/gif" usemap="#map1">
       <P>This is an picture that was animated.
        alt="animated picture of a man"
    <!-- Else render the text -->
         The big man is jumping animation is unavailable.
       </OBJECT>
    
    
    <MAP name="map1">
     <AREA href="http://www.mysite.com/designs/funny.mov" 
              alt="Funny Ad" 
              shape="rect" 
              coords="0,0,118,28">
    <!-- Else render the text -->
         The funny movie is not currently available to your browser.
            </MAP>
    
    
        </BODY>
    
    
    </HTML>
    
    Thanks very much,:cool:
    We
     
  2. johndoejohndoe

    johndoejohndoe Junior Member

    Joined:
    Feb 13, 2011
    Messages:
    177
    Likes Received:
    33
    I'm not sure what you're trying to accomplish but it's fair to say that you should not put a movie in an email 90% of the time.

    If you're learning HTML, then learn HTML5 not HTML4 from 15 years ago. I've never seen object or area tags used they way you're trying.
    Note that you're missing a doctype. It is pretty important or you'll wonder why your good code isn't working half the time.
    http://www.w3schools.com/html/html5_intro.asp
     
  3. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    mov works if the client install the right plugin.

    better use flash-based player like mp4 or HTML5 with fallback to flash.