Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > setting object param value in external stylesheet

Reply
Thread Tools

setting object param value in external stylesheet

 
 
Koen
Guest
Posts: n/a
 
      01-23-2004
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>
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      01-23-2004
in post: <news:(E-Mail Removed). com>
http://www.velocityreviews.com/forums/(E-Mail Removed) (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
 
Reply With Quote
 
 
 
 
Koen
Guest
Posts: n/a
 
      01-24-2004
Hmm i am having troubles getting it to work...

<style type="text/css">
<!--
object,embed{background:red;}
-->
</style>
</head>
<object classid="clsid27CDB6E-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 <****@bruciesusenetshit.info> wrote in message news:<bus9m3$l6st1$(E-Mail Removed)-berlin.de>...
> in post: <news:(E-Mail Removed). com>
> (E-Mail Removed) (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

 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      01-24-2004
(E-Mail Removed) (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
 
Reply With Quote
 
Stanimir Stamenkov
Guest
Posts: n/a
 
      01-24-2004
/Koen/:
> brucie <****@bruciesusenetshit.info> wrote in message news:<bus9m3$l6st1$(E-Mail Removed)-berlin.de>...
>
>> object,embed{background:red;}
>>
>> browser support varies

>
> Hmm i am having troubles getting it to work...
>
> <object classid="clsid27CDB6E-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/fl...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
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      01-26-2004
On 23 Jan 2004 12:22:02 -0800, (E-Mail Removed) (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
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      01-26-2004
On Sat, 24 Jan 2004 16:58:46 +0000, Spartanicus <(E-Mail Removed)>
declared in alt.html:
> (E-Mail Removed) (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!



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

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      01-27-2004
Mark Parnell <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML::Template->param() : You gave me an odd number of parameters to param()! Dave Perl Misc 5 04-26-2011 02:44 AM
External stylesheet setting in Firefox Barry Javascript 4 10-06-2006 10:32 AM
Overload by deriv class param; call w base class param ectoplasm C++ 12 07-28-2005 08:20 AM
Stylesheet referanse i stylesheet =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?= XML 3 07-04-2004 03:16 PM
XSLT: How to replace param name with this param's value ? Geathaa XML 2 07-30-2003 06:48 AM



Advertisments