Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #278

With the Auto Play in Horizontal Glider Magic (HGM) is there a way to have the Auto Play go back to the first panel when it finishes?

The Answer

Prepared Dec. 2009 by Gerry Jacobsen, PVII

You can tweak the Auto Play in Horizontal Glider Magic (HGM) to return to the first slide at the end of the rotation, here's how:

1. Open the p7HGMscripts.js file and locate this code block in the P7_HGMshowPanel(md,d) function, around line 461:

if(tB.hgmCurrentPanelID==tB.hgmPanels[tB.hgmPanels.length-1]&&tB.p7opt[6]!=1&tB.p7opt[11]!=1){
  P7_HGMpause(tB.id,true);
  }

2. Add this new code line:

   setTimeout("P7_HGMcontrol('"+tB.id+"','first')",tB.p7opt[8]);

directly after the second line so that it now looks like this:

if(tB.hgmCurrentPanelID==tB.hgmPanels[tB.hgmPanels.length-1]&&tB.p7opt[6]!=1&tB.p7opt[11]!=1){
  P7_HGMpause(tB.id,true);
  setTimeout("P7_HGMcontrol('"+tB.id+"','first')",tB.p7opt[8]);
  }

3. Save and close the file.

That's it! Now the Auto Play will always end on the first slide.

Back to the questions list