Page 581 - ProShow Producer Manual
P. 581
581
The code looks like this:
Line Code
1 <script language="javascript"
src="http://www.photodex.com/presenter.js"></script>
2 <script>
3 PresenterObject("ProShow","objectname","/hosted_shows/my_first_sh
ow/myslideshow.px",640,480,true);
4 </script>
The key elements of this code, by line number, are:
1. Loads the presenter.js script from Photodex. This contains the
necessary JavaScript code to initialize and prepare the show for
playback. This must be pulled from the Photodex server to ensure
that it is up to date with the current version of Presenter.
2. Start a new script block. The show will actually be played back
using a JavaScript function call, so we start a new script block first.
3. Call the PresenterObject function. This line actually creates and
executes the Presenter plug-in. It has six parameters you can set.
All of these are set based on options you choose in the Presenter
Show output dialog in ProShow, but you can set them manually
here in the code.
a. “ProShow” tells Presenter that the show you are playing
is a ProShow object. Do not change this.
b. “objectname” is the name of the Presenter object to be
created. If you are placing multiple shows on a page,
you’ll need to ensure that each show has a unique
object name.
c. “…myslideshow.px” is the relative name and path to
the slideshow file (*.PX) that was created by the Web
Show function in ProShow. If your show is in the same
folder as this HTML file, you can just use the filename.
Otherwise, be sure this is a valid relative path to the PX
file.