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 #271

Is there way to have the Slide Show Magic (SSM) system always start with a random image?

The Answer

Prepared Oct. 2009 by Gerry Jacobsen, PVII

Here's how to tweak the Slide Show Magic (SSM) scripts to auto start with a randomly selected image:

1. Open the p7SSMscripts.js file and locate this line in the P7_SSMinit() function, around line 178:

 x=P7ssma[5];

2. Replace that line with this new line:

 x=Math.floor(Math.random()*(p7sstmb.length))

3. Save and close the file.

That's it, the SSM system will now start with a randomly selected image. Each time the page loads the SSM system will start with a different image, randomly selected from the images in the Slide Show.

Back to the questions list