Transparent HTML colours?

M

Mac

I have a bit of flash running on my site
http://homepage.ntlworld.com/chris.macnamara/ , but it's got a background of
turquoise, and really I'd prefer it to have no background, so that the
animation is on top of the main bubbles background.

Does that make any sense at all?

Is this possible?

If so, how do I do it?

Thanks for helping a complete amateur.

In case you need it, here's the bit of code for the flash animation

<body bgcolor="00FFFF" text="00FFFF">
<font size=30 face="comic_sans_ms" color="00FFFF"></title></head>
<body bgcolor=00FFFF><center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0" id="movie_3" width=468 height=60>
<param name=movie value="movie_3.swf">
<param name=quality value=best>
<param name=bgcolor value=00FFFF>
<param name=wmode value=window>
<embed src="movie_3.swf" quality=best bgcolor=00FFFF width=468 height=60
wmode=window type="application/x-shockwave-flash"
pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash">
</embed></object>
</center></body>
<DIV ALIGN="CENTER">
<body background="bubbles.jpg">




Chris
 
M

Mark Parnell

Mac said:
I have a bit of flash running on my site
http://homepage.ntlworld.com/chris.macnamara/ , but it's got a
background of turquoise, and really I'd prefer it to have no
background, so that the animation is on top of the main bubbles
background.

Does that make any sense at all?

Yes.

Is this possible?

Not in HTML.
If so, how do I do it?

In Flash.
<body bgcolor="00FFFF" text="00FFFF">
<body bgcolor=00FFFF>
<body background="bubbles.jpg">

How many <body>s does your page have!?!?

http://validator.w3.org is your friend.

Ick. I had a look at the page. You have far more serious problems than
getting a background to show through a flash animation. I have a much
better idea - lose the bubbles altogether. They are really hard on the
eyes.
 
O

Owen Jacobson

Mac said:
I have a bit of flash running on my site
http://homepage.ntlworld.com/chris.macnamara/ , but it's got a
background of turquoise, and really I'd prefer it to have no
background, so that the animation is on top of the main bubbles
background.

This is not a function of the HTML document or relevant stylesheets.
The Flash animation has its own background; you'd be better off asking
about this part in a Flash newsgroups.
In case you need it, here's the bit of code for the flash animation

<body bgcolor="00FFFF" text="00FFFF">
<font size=30 face="comic_sans_ms" color="00FFFF"></title></head>
<body bgcolor=00FFFF><center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version
=4,0,0 ,0" id="movie_3" width=468 height=60>
<param name=movie value="movie_3.swf">
<param name=quality value=best>
<param name=bgcolor value=00FFFF>
<param name=wmode value=window>
<embed src="movie_3.swf" quality=best bgcolor=00FFFF width=468
height=60 wmode=window type="application/x-shockwave-flash"
pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1
_Prod_ Version=ShockwaveFlash">
</embed></object>
</center></body>
<DIV ALIGN="CENTER">
<body background="bubbles.jpg">

And that monstrosity actually *renders* in something? Holy moses.
That's possibly the worst HTML I have ever seen:
- Colours specified without the leading #
- Interleaved <head> and <body> elements
- Multiple <body> elements
- <font> elements
- <font size="..."> outside of valid range (1-7 or -3 - +3) for font
element
- "comic_sans_ms" (That's not a font! Even on Windows!)
- Unquoted attribute values (not a crime under some HTML versions, but
bad style)

I hope this was automatically generated for you; if you actually built
that markup yourself you've got (more) serious issues with your
understanding of HTML.

Try this (noting that I do not use flash and may have the param
elements wrong):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>My Animation</title>
<style type="text/css">
/* this should be in an external stylesheet, but it's here for demo
purposes. */
body {
background: url('bubbles.jpg') #00ffff;
color: black; /* chose a colour that will be readable on the
background */
text-align: center; /* work around IE issues */
}

object {
margin-left: auto;
margin-right: auto;
}
</style>
</head>

<body>
<h1>My Flash Movie</h1>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4
,0,0,0" id="movie" width="468" height="60">
<param name="movie" value="movie_3.swf">
<param name="quality" value="best">
<param name="wmode" value="window">
<object>

</body>
</html>
 
M

Mac

Mark Parnell said:
Not in HTML.


In Flash.




How many <body>s does your page have!?!?

http://validator.w3.org is your friend.

Ick. I had a look at the page. You have far more serious problems than
getting a background to show through a flash animation. I have a much
better idea - lose the bubbles altogether. They are really hard on the
eyes.

"I was not able to extract a character encoding labeling from any of the
valid sources for such information. Without encoding information it is
impossible to validate the document. The sources I tried are:

a.. The HTTP Content-Type field.
b.. The XML Declaration.
c.. The HTML "META" element.
And I even tried to autodetect it using the algorithm defined in Appendix F
of the XML 1.0 Recommendation.

Since none of these sources yielded any usable information, I will not be
able to validate this document. Sorry. Please make sure you specify the
character encoding in use. "

from http://validator.w3.org ?

And I quite like my bubbles!! :)





Chris
 
M

Mark Parnell

Mac said:
"I was not able to extract a character encoding labeling from any of
the valid sources for such information.
Please make sure you
specify the character encoding in use. "

from http://validator.w3.org ?

You need to configure the server to tell the "browser"[1] what character set
the document uses. How to do this will depend on what sort of server it is.
And I quite like my bubbles!! :)

Personal preference, I suppose. I find them hard on the eyes. Others may
not.

[1] In this case, the validator.
 
T

Terry

Matthias said:
Uh-uh. Unless you own the rights to all those sound and video files in
your /marbles directory and its subdirectories, it might be wise to not
make these files available to the world.


Matthias
also, you maps are on a c:\ drive somewhere. certainly not mine!
 

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,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top