Add a wrapper div around your alternative content div and apply the
border styles to that.

SWFObject totally rewrites the styles when it places your flash object
in there.  So, you can not set the styling of the alternative div, no
matter if it is in-line or external stylesheet.

<!-- add styles to this ID "wrapper" -->
<div id="wrapper">
<div id="myAlternativeContent">
<a href="http://www.adobe.com/go/getflashplayer";><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif";
alt="Get Adobe Flash player" /></a>
</div>
</div>


Nathan Mynarcik
Interactive Web Developer
[email protected]
254.749.2525
www.mynarcik.com



On Mon, Feb 8, 2010 at 9:42 AM, 000justin000 <[email protected]> wrote:
> Could somebody post the structure of how the JS renders the HTML when
> using swfOject dynamic? I'm having trouble applying styles to it. In
> the example below I've been trying to add a border to
> #myAlternativeContent but nothing happens so I'm guessing that the JS
> replaces that div with something else on page load. Could somebody
> tell me what that is so I can apply a border to my SWF?
>
> Thanks,
>
>
> <!-- head -->
>                <script type="text/javascript" src="swfobject.js"></script>
>                <script type="text/javascript">
>                        var flashvars = {};
>                        var params = {};
>                        var attributes = {};
>                        swfobject.embedSWF("untitled.swf", 
> "myAlternativeContent", "800",
> "600", "9.0.0", false, flashvars, params, attributes);
>                </script>
> <!-- end head -->
> <!-- body -->
>                <div id="myAlternativeContent">
>                        <a href="http://www.adobe.com/go/getflashplayer";>
>                                <img 
> src="http://www.adobe.com/images/shared/download_buttons/
> get_flash_player.gif" alt="Get Adobe Flash player" />
>                        </a>
>                </div>
> <!-- end body -->
>
> --
> You received this message because you are subscribed to the Google Groups 
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to