Sample 9 - Calling JavaScript Functions

This example shows how 3D Gallery can call a JavaScript function outside of the animation.
With JavaScript Event Calls, you have virtually unlimited options for calling up Lightbox images, YouTube clips, Amazon products, EBay auctions, Google search results and more!
Control and appearance of the Gallery are effected entirely via the XML file 3dgalleryv2.xml (Help File).



Events

Settings in 3dgalleryv2.xml:
- JSImageMouseOverFunctionName="GalleryV2ImageMouseOver"
- JSImageMouseOutFunctionName="GalleryV2ImageMouseOut"
- JSImageClickedFunctionName="GalleryV2ImageClicked"
- JSDetailPageLoadedFunctionName="GalleryV2DetailPageLoaded"
- JSDetailImageClickedFunctionName="GalleryV2DetailImageClicked"
- JSDetailPageClosedFunctionName="GalleryV2DetailPageClosed"
- JSAnimationLoadedFunctionName="GalleryV2AnimationLoaded"

Settings in ClickMe.html:
function GalleryV2ImageMouseOver(param){
  ...
}

function GalleryV2ImageMouseOut(param){
  ...
}

function GalleryV2ImageClicked(param){
  ...
}

function GalleryV2DetailPageLoaded(param){
  ...
}

function GalleryV2DetailImageClicked(param){
  ...
}

function GalleryV2DetailPageClosed(param){
  ...
}

function GalleryV2AnimationLoaded(param){
  ...
}