Topic: Images not showing, driving me crazy!

URL - http://www.hannahrichards.net/port.html

- Image files are under autoviewer/images for example

http://www.hannahrichards.net/autoviewe … s/wide.jpg

- Hotlink protection is disabled

- Autoviewer works here

http://www.hannahrichards.net/autoviewer/autoviewer.swf

but not when I try and embed it in to the URL posted above.

Code used to embed in to port.html is

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

under <head> and

<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>   
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer/autoviewer.swf", "viewer", "800", "600", "8", "#181818");
        fo.write("flashcontent");   
    </script>

under <body>. I've also tried adding

fo.addVariable("xmlDataPath", "autoviewer/gallery.xml");

but it doesn't work! The actual play/pause button shows and the next and previous arrows but no images.

Any ideas? Thanks.

Last edited by hannahrichards (2009-09-18 16:14:45)

Re: Images not showing, driving me crazy!

fo.addVariable("xmlDataPath", "autoviewer/gallery.xml"); should go just before fo.write("flashcontent");  like this:

<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>   
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer/autoviewer.swf", "viewer", "800", "600", "8", "#181818");
        fo.addVariable("xmlDataPath", "autoviewer/gallery.xml");
        fo.write("flashcontent");   
    </script>
Mike Richards
SimpleViewer Support Team.

Re: Images not showing, driving me crazy!

Tried it, doesn't work sad

Re: Images not showing, driving me crazy!

The fo.addVariable("xmlDataPath", "autoviewer/gallery.xml"); is functioning fine, but gallery.xml is not correct. The autoviewer.swf assumes that all of the files, autoviewer.swf, port.html, gallery.xml, and the image folders are within the same folder. If you are not going to have port.html in the same folder as the rest of the gallery you need  fo.addVariable("xmlDataPath", "autoviewer/gallery.xml"); and you need to update all of the paths. So in your gallery.xml images/wide.jpg should be autoviewer/images/wide.jpg.

Mike Richards
SimpleViewer Support Team.

Re: Images not showing, driving me crazy!

Thank you, I've finally cracked it!