Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Hi every one I'm really very new to Java and HTML and the whole web code thing so I'm really need some help with something what will seem laughable for some of the more advanced people I've seen posting on this forum.
    When I add my SWFObject to my HTML page in the slot where I want to place my flash movie a space is made bellow and somewhat above the SWFObject placement. This in turn destroys my table and makes the whole page look very armature.

    I've included to resource files to assist any one that would be kind enough to lend a hand:
    The first one is the link to the site as is so you can look over what I'm dealing with

    http://www.johncliffordtaylor.com/test_2/

    Second is the source files if those will be helpful in looking over my code in more detail and see what I'm dong wrong or I need to add

    http://www.johncliffordtaylor.com/test_2.rar

    This compressed folder is unzipped with WinRaR

    Thx you sooooo much for the help

    John
    • CommentAuthorAran
    • CommentTimeJan 17th 2008
     
    Ok. A few things:

    1. move the <script type="text/javascript" src="swfobject.js"></script> out of the talbe and into the <head> of the document

    2. The div you are writing your flash file into: <div id="flashcontent"> </div> has no sizing definition, alignment etc. Even though you are specifying 533x541 as your flash size, it is the div which will ultimately control the sizing / layout.

    3. you have some table header tags </th> hanging around which are never opened / shouldn't be there


    Cheers,
    Aran
  2.  
    OK I made the changes to the HTML code

    1)I moved the "<script type/javascript" to the head of the code.

    2) In regards to SWFObject div id="flashcontent"> </div> sizing I've never defined one of these do you have any examples for defing size of flashcontent so I could us some help with that

    SWFObject code currnetly in the file:

    <div id="flashcontent">
    </div>
    <script type="text/javascript">
    var so = new SWFObject("b_flash.swf", "mymovie", "533", "541", "8", "#FFFFFF");
    so.write("flashcontent");
    </script>

    3)I removed the </th> tags

    I've updated these resource files to assist you in looking over the changes I've made to the code.
    The first one is the link to the site as is so you can look over what I'm dealing with

    http://www.johncliffordtaylor.com/test_2/

    Second is the source files if those will be helpful in looking over my code in more detail and see what I'm dong wrong or I need to add

    http://www.johncliffordtaylor.com/test_2.rar

    This compressed folder is unzipped with WinRaR


    Thx for all the help

    John
    • CommentAuthorAran
    • CommentTimeJan 19th 2008
     
    John.

    In regards to positioning/sizing a <div> - This can either be done with CSS or inline like a table element etc. Sizing and positioning elements is basic CSS, and is not really in the scope of this forum.

    The standard official swfobject example - http://blog.deconcept.com/swfobject/swfobject.html shows height of the flashcontent <div> being specified in the CSS

    Regards,
    Aran