As far as I know this procedure will work only with users of FrontPage
You make the Random Page Generator in three stages
- First you 'install the Jimco FrontPage
addin for their Spawn function [a popup window generator, cross browser
If you want the page popup to go away after 10 seconds the BODY tag of EACH page to be displayed must contain the code:
You can adjust the time.
Get the Spawn function here
Spawn must be added to your copy of FrontPage or none of this will work.
Highlight the script below and copy/paste to the HEAD section of your working
|Next is the Random Page Generator|
Highlight the page below and copy/paste it to a NEW page called random.html
random.html edit instructions
- change 'var howMany = 5;' to the number of pages you will be displaying
[+1 as you're starting at 0]
- change parameter 'page[0-n]' to the location of the page[s] you want displayed. In my example the pages are in the same folder as random.html. Remember to keep the numbers sequential!
Now - To start it running
Insert this on your web page where you want the user to select your random pages.
Change '../random-jokes/' to the location of your random page generator.
Test locally before publishing to web to make sure all the links/scripts