Page is a not externally linkable
Rain_Lover - 12:20 pm on Jul 24, 2011 (gmt 0)
Thanks for the answers, but they are two different things. To see what I mean please try adding bgcolor="#00FF00" to the embed code and compare it with changing the style background color.
I'm building a widget in which users might choose a custom background color or set it to transparent.
Here's what I initially tried:
<!DOCTYPE HTML>
<html>
<head>
<title>Test</title>
<script type="text/javascript">
var x;
var y;
var z;
z = "#00FF00";
if (z == "transparent" || z == "") {
x = ""; y = "transparent";
}
else {
x = z; y = "window";
}
</script>
</head>
<body>
<embed id="foo" bgcolor="'+x+'" wmode="'+y+'" src="http://www.w3schools.com/media/bookmark.swf" width="400" height="40" type="application/x-shockwave-flash" />
</body>
</html>
But it didn't work. I wonder what I did wrong.