Topic: Problems getting SimpleViewer-Pro to load in an HTML Table

Hello,

I'm having problems getting my custom SimpleViewer-Pro v1.8 SWF file to load in an HTML Table.

The following code WITHOUT a table works on my site PERFECTLY:

***************************************************
<head>
<title>Project01</title>
<script type="text/javascript" src="Flash/featured_projects01/swfobject.js"></script>
</head>
<body>
No Table:
    <div id="flashcontent">SimpleViewer requires Macromedia Flash.
        <a href="/go/getflashplayer/">Get Macromedia Flash.</a>
        If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.
    </div>   
    <script type="text/javascript">
        var fo = new SWFObject("Flash/featured_projects01/viewer.swf", "viewer", "100%", "100%", "7", "#FFFFFF");   
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "Flash/featured_projects01/gallery.xml");   
        fo.write("flashcontent");   
    </script>   
</body>
</html>


The same code, in a table is not working:

***************************************************
<head>
<title>Project01</title>
<script type="text/javascript" src="Flash/featured_projects01/swfobject.js"></script>
</head>
<body>
Table:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <div id="flashcontent">SimpleViewer requires Macromedia Flash.
        <a href="/go/getflashplayer/">Get Macromedia Flash.</a>
        If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.
    </div>   
    <script type="text/javascript">
        var fo = new SWFObject("Flash/featured_projects01/viewer.swf", "viewer", "100%", "100%", "7", "#FFFFFF");   
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "Flash/featured_projects01/gallery.xml");   
        fo.write("flashcontent");   
    </script>   
</td>
  </tr>
</table>
</body>
</html>
*********************************************************

Any hints or ideas about how to get this to load in a table would be greatly appreciated.

THANKS SO MUCH!

Re: Problems getting SimpleViewer-Pro to load in an HTML Table

Hi All,

In case anyone needs and answer to this same issue, the fix was changing the following line:
var fo = new SWFObjectvar fo = new SWFObject("Flash/featured_projects01/viewer.swf", "viewer", "100%", "100%", "7", "#FFFFFF");

to be:
var fo = new SWFObject("Flash/featured_projects01/viewer.swf", "viewer", "565", "240", "7", "#FFFFFF");