ouyang789987 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Problem with Alternative Content using SWFObject 2.2 #406

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I have a problem with SOFObject 2.2 alternative content while using 
dynamic publishing for multiple movies on one page. Only the alternative 
content of the last movie is generated while the alternative content for 
the first movie is not. hereafter my HTML page code.

===========================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
    var flashvars = {lang: "1"};
    var params = {  menu: "false"};
    var attributes = {  id: "HeadBase",  name: "HeadBase"};
    swfobject.embedSWF
("/english/flash/HeadBase.swf", "HeadBase", "940", "220", "10.0.0", "/engli
sh/flash/expressInstall.swf", flashvars, params, attributes);
</script>
<script type="text/javascript">
    var flashvars = {lang: "1"};
    var params = {  menu: "false"};
    var attributes = {  id: "slideshow",  name: "slideshow"};
    swfobject.embedSWF
("/english/flash/slideshow.swf", "slideshow", "680", "208", "10.0.0", "expr
essInstall.swf", flashvars, params, attributes);
</script>

</head>

<body id="pages">

<div id="HeadBase">
    <div class="nonflash">
        Altenative Content for movie 1
    </div>
</div>

<div id="slideshow">
    <div class="nonflash">
        Altenative Content for movie 2
    </div>
</div>
</body>
</html>
===========================================================================
====

I added the following script for a fake movie before the script of the 
first movie what fixed the problem but I still don't agree with this 
solution

<script type="text/javascript">
    var flashvars = {lang: "1"};
    var params = {  menu: "false"};
    var attributes = {  id: "empty",  name: "empty"};
    swfobject.embedSWF
("empty.swf", "empty", "0", "0", "10.0.0", "expressInstall.swf", 
flashvars, params, attributes);
</script>

Any Ideas?

Thank you in Advance

Original issue reported on code.google.com by hany.so...@gmail.com on 22 Nov 2009 at 12:02

GoogleCodeExporter commented 9 years ago
Please post authoring questions to the list before submitting a "bug".

Original comment by aran.rhee@gmail.com on 23 Nov 2009 at 12:15