Hi,
You guys were nice enough to help me sort out a problem I had with borders on a page, and I thought everything was set to go. Unfortunately, I have a new problem that I hope someone's come across before.
I inserted a flash animation using swfobject. (There's supposed to be a 6px wide border to the right of where the animation is ... between the animation and the navigation menu.) When someone doesn't have flash or javascript enabled, it's supposed to display a static image in its place. So, the code uses the regular img tag inside a div with the ID of "anim", and I applied the right border to this div. It works fine in IE6 and IE7, but the right border doesn't display in Firefox (3.0.10) "when the flash animation is run". If flash or javascript is disabled it displays the static image and displays the right border like it's supposed to.
Does anyone know what would cause this? Here's the applicable javascriptcode that I have in the head section ... the swfobject code is external:
And here's the css:
Now that I think about it, maybe I should have posted this in the javascript forum, but I don't know if it's a javascript issue or just a firefox issue with css, although my style sheet validates (as does the html).
Anyway, does anyone have any thoughts about why this is happening?
Thanks!
You guys were nice enough to help me sort out a problem I had with borders on a page, and I thought everything was set to go. Unfortunately, I have a new problem that I hope someone's come across before.
I inserted a flash animation using swfobject. (There's supposed to be a 6px wide border to the right of where the animation is ... between the animation and the navigation menu.) When someone doesn't have flash or javascript enabled, it's supposed to display a static image in its place. So, the code uses the regular img tag inside a div with the ID of "anim", and I applied the right border to this div. It works fine in IE6 and IE7, but the right border doesn't display in Firefox (3.0.10) "when the flash animation is run". If flash or javascript is disabled it displays the static image and displays the right border like it's supposed to.
Does anyone know what would cause this? Here's the applicable javascriptcode that I have in the head section ... the swfobject code is external:
Code:
<script type="text/javascript">
var flashvars = {};
var params = {};
params.bgcolor = "#FFFFFF";
var attributes = {};
attributes.id = "anim";
swfobject.embedSWF("flash/home3b.swf", "anim", "500", "200", "6.0.0", false, flashvars, params, attributes);
</script>
And here's the css:
Code:
#anim {border-right: 8px solid #3E76B5}
Now that I think about it, maybe I should have posted this in the javascript forum, but I don't know if it's a javascript issue or just a firefox issue with css, although my style sheet validates (as does the html).
Anyway, does anyone have any thoughts about why this is happening?
Thanks!