My Account
Bookmark and Share

Art Photo Gallery

Art Photo Gallery organically blends with any design thanks to flexible appearance settings. You can publish any photos and images on your site in a matter of minutes using this photo gallery. More Info

Help  >  FAQ  >  How To Put(embed) More Galleries On A Page(website)


How to put/embed more galleries on a page/website

  1. Create an XML file for each gallery (e.g. gallery1.xml и gallery2.xml)
  1. Specify the path for images in a XML file:
    <imagesFolder>images/</imagesFolder>
  1. Specify a path for your XML file in object HTML code using a "XMLFile" parameter:

<script type="text/javascript">
var flashvars = {XMLFile: "mygallery/gallery1.xml"};
….
swfobject.embedSWF(..., "myAlternativeContent_1"...);
</script>
<div id="myAlternativeContent_1">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
</a>
</div>

For the second gallery:

<script type="text/javascript">
var flashvars = {XMLFile: "mygallery/gallery2.xml"};
….
swfobject.embedSWF(..., "myAlternativeContent_2"...);
</script>
<div id="myAlternativeContent_2">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
</a>
</div>

  1. Specify a path for the SWF file

<script type="text/javascript">
…..
swfobject.embedSWF("ArtFlashGallery.swf", …..);
</script>

  1. Set the size for the gallery:

<script type="text/javascript">
……
swfobject.embedSWF(….."500", "400", …..);
</script>

More on this topic: Publishing a gallery on your website