Welcome, Guest
  • Author Topic: Placing flash into HTML / PHP  (Read 5669 times)

    jarmanje

    • Senior Programmer
    • ****
    • Posts: 334
      • View Profile
    Placing flash into HTML / PHP
    « on: 05/28/08, 09:17 »
    Hello there. I have a flash project and would like it to be search engine optimized with the correct tags.

    Please may someone look at my index.php and let me know if i must make any changes to have it nicely optimised?

    Also, I am not sure what practice to use for the case that the user must update their flash player.

    I really appreciate any help
    Thanks a lot in advance

    Code: [Select]
    <html>
    <title>Ttitle of my website</title>
    <meta name="description" content="Description of my site">
    <meta name="keywords" content="a key word, another key word, some key word">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Company name</title>
    <style type="text/css">
    <!--
    body {                            
    margin-left:0px;
    margin-top:0px;
    margin-right:0px;
    margin-bottom:0px;
    background-image:url(image/bg.jpg);
    }
    #copyright {
    color:#000000;
    width:750px;
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    }
    #copyright a {
    color:#000000;
    text-decoration:none;
    }
    #copyright a:hover {
    color:#000000;
    text-decoration:underline;
    }
    -->
    </style>
    <script type="text/javascript" src="swfobject.js"></script>
    </head>

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re: Placing flash into HTML / PHP
    « Reply #1 on: 05/28/08, 13:54 »
    Use swfObject for embedding your Flash.  It will handle all testing and embedding.
    http://blog.deconcept.com/2007/02/28/swfobject-1-5-released/
    http://code.google.com/p/swfobject/

    I see you are already using it, but I wanted to post that for others.

    For search engine optimizations, you should consider this.  Google has been crawling swf's and collecting all text found for some time now.  If you use text instead of images in your Flash pieces and populate your page with appropriate tags, you should be fine for basic SEO measures.  There is also a place to enter a description and title in your "Document Properties" in Flash.  These will also be viewable by Google.  You can also populate your alternate content inside of the flashcontent div with relevant text.

    -Ian

    jarmanje

    • Senior Programmer
    • ****
    • Posts: 334
      • View Profile
    Re: Placing flash into HTML / PHP
    « Reply #2 on: 05/28/08, 16:55 »
    Thanks for the help

    when i put my site into google, it has underneath the Page title:

    You need to upgrade your Flash Player. Copyright © 2007 my company. Terms & Conditions.

    Which is just what i have if someone doesnt have flash player...

    how can i choose a nicer description?

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re: Placing flash into HTML / PHP
    « Reply #3 on: 05/28/08, 17:06 »
    You have to fill that flashcontent div to display more information.  Try placing a div above it with a css style to make it hidden.  I am unsure if they will read that into the search, but worth a try if you do not want to replace your message for no flash.

    -Ian

    jarmanje

    • Senior Programmer
    • ****
    • Posts: 334
      • View Profile
    Re: Placing flash into HTML / PHP
    « Reply #4 on: 05/28/08, 18:09 »
    Thanks for the reply,

    How do i change the DIV? i'm decent at flash, terrible at html!

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re: Placing flash into HTML / PHP
    « Reply #5 on: 05/28/08, 19:56 »

    Something like this...
    Code: [Select]
    <div style="visibility: hidden;">Descriptive text for the site here.....</div>
    <div id="flashContent">The site requires Flash Player.  Click here to get the newest version...</div>

    Right above your flashContent <div>. 

    -Ian