Topic: Embed in Dreamweaver

I am having troubles embedding my autoviewer gallery into my html file.

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

<style type="text/css">    

    /* hide from ie on mac \*/

    html {

        height: 100%;

        overflow: hidden;

    }

    

    #flashcontent {

        height: 100%;

    }

    /* end hide */



    body {

        height: 100%;

        margin: 0;

        padding: 0;

        background-color: #333333;

        color: #ffffff;

    }

</style>
</head>

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

<style type="text/css">    

    /* hide from ie on mac \*/

    html {

        height: 100%;

        overflow: hidden;

    }

    

    #flashcontent {

        height: 100%;

    }

    /* end hide */



    body {

        height: 100%;

        margin: 0;

        padding: 0;

        background-color: #333333;

        color: #ffffff;

    }

</style>
</body>

The flash gallery won't show up at all.
Am I missing something?

Re: Embed in Dreamweaver

It wont show in Dreamweaver or it doesn't show when the page is opened in a browser?

Mike Richards
SimpleViewer Support Team.

Re: Embed in Dreamweaver

it doesn't show up in dreamweaver nor when the page is opened in a browser.

Re: Embed in Dreamweaver

Please post a URL to the page you are having issues with.

Mike Richards
SimpleViewer Support Team.

Re: Embed in Dreamweaver

www.rvision.ca/test4.html

The gallery should show up in the "portfolio tab" but it doesn't. I don't see it in Dreamweaver either.

Re: Embed in Dreamweaver

Your embed code:

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

<script type="text/javascript">
        var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#333333");    
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "..gallery/test/gallery.xml");
        fo.addVariable("xmlURL", "..gallery/test/gallery.xml");
        fo.addVariable( "langOpenImage", "Open Image in New Window" );
        fo.addVariable("langAbout", "About");    
        fo.write("flashcontent");    
</script>

At least some of the issue is the path to your files, all of the following give a 404 not found error. This means either the path is wrong or the file is not in the folder specified.

<script type="text/javascript" src="..gallery/test/swfobject.js"></script>
fo.addVariable("xmlURL", "..gallery/test/gallery.xml");

..gallery/test/ does not seem to exist.

var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#333333");

viewer.swf does not exist in the same directory as the html. Unless you have renamed the file AutoViewer uses a swf named autoviewer.swf not viewer.swf you need to fix this in your HTML. autoviewer.swf also does not exist in the same directory as the html.

xmlDataPath is a SimpleViewer param and you should remove it.
fo.addVariable("xmlDataPath", "..gallery/test/gallery.xml");

Mike Richards
SimpleViewer Support Team.

Re: Embed in Dreamweaver

Ive updated the files, they should be online. Also, I removed that piece of code, and it still doesn't work.