Conditional statements SHOULD work just fine in a .asp page

MSDN article -
http://msdn.microsoft.com/en-us/library/ms537512(v=VS.85).aspx



<http://msdn.microsoft.com/en-us/library/ms537512(v=VS.85).aspx>Can you try
this code as generated from the SWFObject generator:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js";></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "8.0.0");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="932"
height="250" id="myFlashContent">
<param name="movie" value="../images/slides.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../images/slides.swf"
width="932" height="250">
<!--<![endif]-->
alt content here...
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>


Cheers,
Aran

On Tue, Sep 14, 2010 at 6:49 PM, Justin <[email protected]> wrote:

> I'm trying to use swfobject to make it so that when I get visitors to
> our website that do not have flash, it will display alternative
> content.
>
> I have an default.asp page that includes the file I have my flash
> animation on and I put the required information within the head tags
> of that file:
>
> <script type="text/javascript" src="swfobject.js"></script>
> <script type="text/javascript">
> swfobject.registerObject("myFlashContent", "8");
> </script>
>
> Then, in the file that I have my swf file, I have the following:
>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> width="932" height="250" id="myFlashContent">
> <param name="movie" value="../images/slides.swf" />
> <!--[if !IE]>-->
> <object type="application/x-shockwave-flash" data="../images/
> slides.swf" width="932" height="250">
> <!--<![endif]-->
> <img src="flash_banner.gif" alt="Get Adobe Flash!" />
> <!--[if !IE]>-->
>
> </object>
> <!--<![endif]-->
> </object>
>
>
> With this config, I get the error:
>
> Active Server Pages error 'ASP 0139'
>
> Nested Object
>
> /includes/topNav_home1.asp, line 30
>
> An object tag cannot be placed inside another object tag.
>
> Does any one here have some experience with doing this with ASP pages?
>
> --
> 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]<swfobject%[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