setting object param value in external stylesheet

K

Koen

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>
 
B

brucie

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
 
K

Koen

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">
 
S

Spartanicus

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).
 
S

Stanimir Stamenkov

/Koen/:
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
 
M

Mark Parnell

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?
 
M

Mark Parnell

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.
 
S

Spartanicus

Mark Parnell said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top