| cjreynolds1 2007-01-10, 6:39 pm |
| I am adding Flash applets to a website, and my nav bar was causing the prompt
to press space or enter to use the interface. I downloaded swfobject.js and am
using the javascript included with the js file to display both applets (there's
one for navigation and one for looks). The navigation applet is at the top of
the page. It displays fine, but the other swf displays immediatly beneath the
first one. I have put the second swf in a table further down the page, I've
even wrapped it in a DIV tag with absolute positioning to try to force the
applet to appear where I want it, but nothing affects the positioning.
Here's the javascript they recommend:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("Banner-1.swf", "bannerNav", "995", "173", "8",
"#80B6F1");
so.addVariable("flashVarText", "this is passed in via FlashVars for example
only"); // this line is optional, but this example uses the variable and
displays this text inside the flash movie
so.write("flashcontent");
// ]]>
</script>
and here's what I used for the second applet:
<script type="text/javascript">
// <![CDATA[
var so2 = new SWFObject("texas-4.swf", "texas", "224", "217", "8", "#80B6F1");
so2.addVariable("flashVarText", "this is passed in via FlashVars for example
only"); // this line is optional, but this example uses the variable and
displays this text inside the flash movie
so2.write("flashcontent2");
// ]]>
</script>
I also have DIVs with IDs of "flashcontent" and "flashcontent2"
How do I re-position the second applet?
joe
|