Results 1 to 8 of 8

Thread: Valid Flash Object Code for HTML

  1. #1
    Abus's Avatar
    342
    posts
    Registered User

    Valid Flash Object Code for HTML

    I am using this code


    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" ID="menu" WIDTH="300" HEIGHT="56">
    <param NAME="movie" VALUE="images/referance.swf">
    <param NAME="quality" VALUE="high">
    <param NAME="wmode" Value="Transparent">
    <embed src="images/referance.swf" quality="high" bgcolor="#FFFFFF"
    WIDTH="300" HEIGHT="56" TYPE="application/x-shockwave-flash" >
    </object>

    but when I check the page with W3C Markup Validation Service it gives errors to this.

    By the way I am using this for DOCTYPE

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

  2. #2
    Have you insert it in any HTML file? If you had, upload it and give us the link. Maybe we can see actually what is goin wrong.

  3. #3
    Abus's Avatar
    342
    posts
    Registered User
    Quote Originally Posted by mmubashar
    Have you insert it in any HTML file? If you had, upload it and give us the link. Maybe we can see actually what is goin wrong.
    I have started using this code

    <object type="application/x-shockwave-flash" data="images/referance.swf" width="664" height="25">
    <param name="movie" value="images/referance.swf" />
    <param name="quality" value="high" />
    </object>

    and it is valid.

  4. #4

  5. #5
    176
    posts
    Registered User
    you dont need all that ... just replace the <object> with this:
    HTML Code:
    <script language="javascript" type="text/javascript">
    var flashScript = '<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" ID="menu" WIDTH="300" HEIGHT="56">';
    flashScript+='<param NAME="movie" VALUE="images/referance.swf">';
    flashScript+='<param NAME="quality" VALUE="high">';
    flashScript+='<param NAME="wmode" Value="Transparent">';
    flashScript+='<embed src="images/referance.swf" quality="high" bgcolor="#FFFFFF"
    WIDTH="300" HEIGHT="56" TYPE="application/x-shockwave-flash" wmode="transparent">';
    flashScript+='</object>';
    document.write(flashScript);
    </script>
    PHP Code:
    <zip> echo this; </zip

  6. #6
    Thats true Abus..Refer to antizip's code. That is better embedding with javascript complex. and it works well in FireFox too

  7. #7
    @antzip: That really is not making the page valid. That simply is a work-around to prevent the validator from catching it (as it doesn't have a javascript parser). Your page is still not technically valid. Let me repeat, that is not valid. I suggest FlashObject, instead.


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

  8. #8
    TheCanadian's Avatar
    10,302
    posts
    Noo doot aboot it, eh?
    The main problems is with not closing the elements and the capitalization. This code is valid except for the element node:
    HTML Code:
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" id="menu" width="300" height="56">
       <param name="movie" value="images/referance.swf" />
       <param name="quality" value="high" />
       <param name="wmode" value="Transparent" />
       <embed src="images/referance.swf" quality="high" bgcolor="#FFFFFF" width="300" height="56" type="application/x-shockwave-flash" />
      </object>
    Would someone mind telling me why element is not valid? I suppose you'll have to us the FlashObject JS class posted. How does the class embed the movie?
    Proud Montanadian
    We tolerate living and breathing. And niches.

    Name Brand Watches

    Maybe getTimer() or TweenMax is the answer to your problem . . .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012