Topic: HELP: Postcard viewer not embedded properly
Can someone check this code for me? I can't get the postcard viewer to display. : (
You are not logged in. Please login or register.
SimpleViewer Forum → PostcardViewer → HELP: Postcard viewer not embedded properly
Can someone check this code for me? I can't get the postcard viewer to display. : (
You are using SWFObject v1.5 embed code but have uploaded FlashObject v1.3d.
Upload the swfobject.js file found in the current PostcardViewer download on this page http://www.simpleviewer.net/postcardviewer/ to your http://www.thepersianphotographer.com/postcard/ folder and use the following code in the <head> section of your index.html file.
<script type="text/javascript" src="postcard/swfobject.js"></script>
Thank you. : ) Is there a way to embed a small version of the postcard viewer into the html page?
You can change the dimensions by editing the "800" and "600" in the following line:
var fo = new SWFObject("postcard/viewer.swf", "viewer", "800", "600", "8", "#000000");
... where "800" is the width and "600" is the height in pixels. Values can also be percentages of the parent container, eg:
var fo = new SWFObject("postcard/viewer.swf", "viewer", "100%", "100%", "8", "#000000");
At present, all references to files within the 'postcard' folder (swfobject.js, viewer.swf and gallery.xml) begin with a leading forward slash which should be removed, eg:
fo.addVariable("xmlDataPath", "postcard/gallery.xml");
... instead of:
fo.addVariable("xmlDataPath", "/postcard/gallery.xml");
They should put you on as a moderator. : )
I was coming to post a similar question and got it answered already. Thanks monkey! :D
SimpleViewer Forum → PostcardViewer → HELP: Postcard viewer not embedded properly
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.