setting object param value in external stylesheet

Discussion in 'HTML' started by Koen, Jan 23, 2004.

  1. Koen

    Koen Guest

    I am trying to set the value of bgcolor for the following object by
    using a style sheet. How can i do this?

    <object classid="donno" width="100" height="22">
    <param name="movie" value="button3.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#006633">
    <embed src="button3.swf" quality="high"
    type="application/x-shockwave-flash" width="100" height="22"
    bgcolor="#006633"></embed>
    </object>
     
    Koen, Jan 23, 2004
    #1
    1. Advertising

  2. Koen

    brucie Guest

    in post: <news:>
    (Koen) said:

    > I am trying to set the value of bgcolor for the following object by
    > using a style sheet. How can i do this?
    >
    > <object classid="donno" width="100" height="22">


    object,embed{background:red;}

    browser support varies


    --
    brucie - i usenet nude
     
    brucie, Jan 23, 2004
    #2
    1. Advertising

  3. Koen

    Koen Guest

    Hmm i am having troubles getting it to work...

    <style type="text/css">
    <!--
    object,embed{background:red;}
    -->
    </style>
    </head>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    width="100" height="110">
    <param name="movie" value="button4.swf">
    <param name="quality" value="high">
    <embed src="button4.swf" quality="high" width="100" height="110"
    ></embed>

    </object>
    </body>
    </html>


    brucie <> wrote in message news:<bus9m3$l6st1$-berlin.de>...
    > in post: <news:>
    > (Koen) said:
    >
    > > I am trying to set the value of bgcolor for the following object by
    > > using a style sheet. How can i do this?
    > >
    > > <object classid="donno" width="100" height="22">

    >
    > object,embed{background:red;}
    >
    > browser support varies
     
    Koen, Jan 24, 2004
    #3
  4. Koen

    Spartanicus Guest

    (Koen) wrote:

    >Hmm i am having troubles getting it to work...
    >
    ><style type="text/css">
    ><!--
    >object,embed{background:red;}
    >-->
    ></style>


    Try it without the "<!-- -->" (should not be there).

    --
    Spartanicus
     
    Spartanicus, Jan 24, 2004
    #4
  5. /Koen/:
    > brucie <> wrote in message news:<bus9m3$l6st1$-berlin.de>...
    >
    >> object,embed{background:red;}
    >>
    >> browser support varies

    >
    > Hmm i am having troubles getting it to work...
    >
    > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > width="100" height="110">
    > <param name="movie" value="button4.swf">
    > <param name="quality" value="high">
    > <embed src="button4.swf" quality="high" width="100" height="110">
    > </embed>
    > </object>


    That's because the Flash object is not transparent. You have to set
    "wmode" param to the object with "transparent" value. Search the
    Macromedia site for "flash movie transparent". Take a look at:

    http://www.macromedia.com/support/flash/ts/documents/tag_attributes.htm

    for complete reference. Note that this might not be supported on
    some platforms/plug-in versions.

    In addition: dropt the EMBED tag using this construct:

    <object data="button4.swf" type="application/x-shockwave-flash"
    width="100" height="110">
    <param name="movie" value="button4.swf">
    </object>

    It would break the progressive movie loading in IE but this would be
    only necessary for larger movies and there are workarounds (like
    plasholder/loader movie):

    http://www.alistapart.com/articles/flashsatay

    --
    Stanimir
     
    Stanimir Stamenkov, Jan 24, 2004
    #5
  6. Koen

    Mark Parnell Guest

    On 23 Jan 2004 12:22:02 -0800, (Koen) declared
    in alt.html:

    > I am trying to set the value of bgcolor for the following object by
    > using a style sheet. How can i do this?
    >


    Why not set the colour in the movie itself?

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Jan 26, 2004
    #6
  7. Koen

    Mark Parnell Guest

    On Sat, 24 Jan 2004 16:58:46 +0000, Spartanicus <>
    declared in alt.html:
    > (Koen) wrote:
    >
    >><style type="text/css">
    >><!--
    >>object,embed{background:red;}
    >>-->
    >></style>

    >
    > Try it without the "<!-- -->" (should not be there).


    But there's a pre-release version of (IIRC) NS3 Gold that will display
    the styles as text on the page if you don't enclose it in quotes!

    :-D

    No, they shouldn't be there, but they certainly aren't causing the
    problem.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Jan 26, 2004
    #7
  8. Koen

    Spartanicus Guest

    Mark Parnell <> wrote:

    >>><style type="text/css">
    >>><!--
    >>>object,embed{background:red;}
    >>>-->
    >>></style>

    >>
    >> Try it without the "<!-- -->" (should not be there).

    >
    >But there's a pre-release version of (IIRC) NS3 Gold that will display
    >the styles as text on the page if you don't enclose it in quotes!


    Shortly after posting I realized that there was an ancient reason to
    enclose the style in comment elements, no longer recommended to use it
    though imo.

    --
    Spartanicus
     
    Spartanicus, Jan 27, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Geathaa
    Replies:
    2
    Views:
    700
    Geathaa
    Jul 30, 2003
  2. =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=

    Stylesheet referanse i stylesheet

    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 3, 2004, in forum: XML
    Replies:
    3
    Views:
    578
    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=
    Jul 4, 2004
  3. ectoplasm
    Replies:
    12
    Views:
    646
    Zorro
    Jul 28, 2005
  4. Dave
    Replies:
    5
    Views:
    669
    John Bokma
    Apr 26, 2011
  5. Barry
    Replies:
    4
    Views:
    107
Loading...

Share This Page