How to scroll through different webpages automatically

J

JAY

I want to set up a kiosk machine to change to different websites
automatically, how do I do this with in frontpage?
 
M

MD Websunlimited

Hi Jay,

You'd need to utilize frames or an iframe with a little JavaScript. The following uses an iframe.

<script type="text/javascript">
<!--
var MaxLinks = 0
var arrLink = new Array();
var curLink = 0

arrLink[MaxLinks++] = 'http://www.websunlimited.com';
arrLink[MaxLinks++] = 'http://www.microsoft.com';
arrLink[MaxLinks++] = 'http://www.netscape.com';


function nextLink() {
window.I1.document.location.href = arrLink[curLink++];
if (curLink == MaxLinks) curLink = 0;
setTimeout('nextLink()',30000);
}

//-->
</script>



<body onload="nextLink();">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top