A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Validating HTML code for movie Swishmax

  1. #1

    Validating HTML code for movie Swishmax

    I'm trying to find a way to validate the coding generated from Swishmax for my site.

    I've found a Javascript but it isn't working . . . and website is down so I can't check to see what I might have done wrong as yet.

    Is there a way of modifying the code generated so that it meets W3C's standards?

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Which w3c standards?
    each are different. No browser has as of yet to discontinue previous versions of html
    and each browser still does not comply with html4.01 or xhtml

    IE and current mozilla browsers support xhtml though not fully Opera I'm not sure about this week it can only run html4.01

    Contrary to popular belief no browser has to comply with the w3c.
    One should be more concerned with does it work in these major browsers.
    If so....test passing grade. If not failing grade.

    If you feel compelled to write an xhtml transitional object code (it's the embed part that screws up validation but not operation of a page)
    Then try this little object no embed I wrote.
    It's different then satay....and it displays alternative text if no flash plugin or fthe flash plugin is disabled.
    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase=
    "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
     width="300" height="120"><param name="movie" value=
    "http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <!--[if !IE]> <-->
    <object data=
    "http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
     width="300" height="120" type=
    "application/x-shockwave-flash"><param name="quality" value=
    "high">
    <param name="bgcolor" value="#FFFFFF">
    <param name="pluginurl" value=
    "http://www.macromedia.com/go/getflashplayer">
    FAIL (the browser should render some flash content, not
    this).</object> <!--[endif]-->
      </object>

  3. #3
    I was trying to validate to 4.01 strict actually . . . sorry I didn't mention it.

    Thank you so much for taking the time to create the code and for the explanation. It is appreciated.

  4. #4
    Junior Member
    Join Date
    Oct 2005
    Posts
    1
    Although the code above was very usefull to me, i still got some small suggestions and points of attention.

    My IE is somehow not able of viewing further contents of the page after reading the if/else statement in HTML. This could be a problem in other IE browsers too.

    I wrote a little peace of code, that will work as validated HTML 4.01 Transitional in a SGML (http://validator.w3.org/) parser:


    <?php

    $browser = $_SERVER['HTTP_USER_AGENT'];
    $browser_name = explode(" ",$browser);

    if ($browser_name[0] == "Mozilla/4.0")
    {
    ?>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="200">
    <param name="movie" value="adwords.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    </object>

    <?php
    }
    else
    {
    ?>

    <object data="adwords.swf" width="380" height="200" type="application/x-shockwave-flash">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
    </object>

    <?php
    }
    ?>
    If this code is used in a html 4.01 trans. page, and named yourfile.php, instead of yourfile.html, it will work finely (File should be uploaded on a server, or be installed on a localhost to be viewed though).

    Regards,

    Tyden

  5. #5
    Junior Member
    Join Date
    Oct 2006
    Posts
    1

    not working in firefox?

    Quote Originally Posted by Frets
    Which w3c standards?
    each are different. No browser has as of yet to discontinue previous versions of html
    and each browser still does not comply with html4.01 or xhtml

    IE and current mozilla browsers support xhtml though not fully Opera I'm not sure about this week it can only run html4.01

    Contrary to popular belief no browser has to comply with the w3c.
    One should be more concerned with does it work in these major browsers.
    If so....test passing grade. If not failing grade.

    If you feel compelled to write an xhtml transitional object code (it's the embed part that screws up validation but not operation of a page)
    Then try this little object no embed I wrote.
    It's different then satay....and it displays alternative text if no flash plugin or fthe flash plugin is disabled.
    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase=
    "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
     width="300" height="120"><param name="movie" value=
    "http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <!--[if !IE]> <-->
    <object data=
    "http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
     width="300" height="120" type=
    "application/x-shockwave-flash"><param name="quality" value=
    "high">
    <param name="bgcolor" value="#FFFFFF">
    <param name="pluginurl" value=
    "http://www.macromedia.com/go/getflashplayer">
    FAIL (the browser should render some flash content, not
    this).</object> <!--[endif]-->
      </object>
    doesn't seem to work in firefox. then again, i'm a pleb in these things, so it might just be my chopheadiness... thanks for the coffee...

    jansie

  6. #6
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Hi

    A url please.

  7. #7
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Also....

    If you did a fresh install of Firefox make sure you have the flash plugin installed....

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center