Richard.
I’m assuming you don’t want to be random and don’t want to scroll between series.
On that basis here is a js script that’ll do the job. Pop it in your html directory and call it scroller.js
Edit the classes (var bookmarks = to list all your classes you might want)
Edit the delay to be appropriate.
Now go to your C:\Program Files\Sailwave\Templates and edit Results.htm and under
add:
Save it.
Publish your file as normal but now access it by typing:
yourdomain/yourfile.html?scroll=true
If you don’t want to scroll just don’t add the ?scroll=true and it behaves like normal.
From here down is the JS File:
// Set some variables that are needed to define the operation of the script
var delay = 5000; //milli-seconds
// List of bookmarks to be followed
var bookmarks = [
“#wayfarer”,
“#topper”,
“#dart”,
“#dolphin”
];
setTimeout(“scroller()”, delay);
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&#]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
function scroller() {
// Identify if scrolling enabled
var scroll = getUrlVars()[“scroll”];
if (scroll == “true”) {
// Carry out the reloading phase
// Identify the url of the calling page (without the bookmark)
var currentURL = window.location.href;
// Identify the current bookmark
var hash = window.location.hash ;
for(var i=0; i
if (bookmarks[i] == hash) { break; }
}
// Identify the next bookmark
if (i < bookmarks.length -1) {
i = i + 1 ;
} else {
i = 0 ;
}
window.location.hash=bookmarks[i];
window.location.reload();
} else {
// Do not reload the page
return;
}
}