Results 1 to 5 of 5

Thread: W3C Error

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

    Default W3C Error

    Hi,
    I have used a flash newsticker in my website and have only about 6 errors in the W3C Markup Validation Service one is below, can anyone help as would like website to be validated by W3C, can anyone help ?

    here is my HTML Code for the Ticker:

    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','763','height','30','title','Flash News Ticker','src','Assets/Images/Global/newsticker','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Assets/Images/Global/newsticker' ); //end AC code
    </script>
    <noscript>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="763" height="30" title="Flash News Ticker">
    <param name="movie" value="Assets/Images/Global/newsticker.swf" />
    <embed src="Assets/Images/Global/newsticker.swf" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="763" height="30"></embed>
    </object>
    </noscript>

    This is the Error I get

    Line 72, Column 197: there is no attribute "width"

    …aveFlash" type="application/x-shockwave-flash" width="763" height="30"></embed>



    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    Start there and see if that answers your question.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Oct 2009
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Hi,
    Thanks for reply, I checked the FAQ but am still very new to all this and need to learn from you guys and was wondering if someone could explain what I need to do to validate my site correctly, I,m not good with Flash so need a little help ?

    Thanks,
    Nick C

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Edit: Original post edited out in favor of BLiZZaRD's contribution below...


    \/ that looks pretty cool... something else to learn. thanks, Blizzard
    Last edited by traq; 03-17-2010 at 02:42 AM.

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    The Satay Method is largely outdated now. Using SWFObject is cleaner, easier and allows more control. full details, download/install and help found here

    It seems overwhelming so let me give this detail:

    Download the files, upload to the root in their own folder. Add the link in the <head> section to the folder just like any other JS.

    Create a div for your Flash like so:

    Code:
    <div id="flashStuff">
    Insert words here about not having Flash installed blah blah
    </div>
    Then add the SO code as shown on the link above, and publish it to the div ID. Done done.

    You only need the link in the head section on pages that have the flash and you can reuse the uploaded scripts for every page as well.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •