Clarification of Question by
cmonkey-ga
on
11 Dec 2005 20:40 PST
I think the code below would be a good start still missing the base
url with a +1 function though.
<html>
<head>
<title>For neutral-ga</title>
<script language="javascript">
var urls;
var order = 0;
var mywin;
function rotate()
{
if( order < urls.length - 1 )
order++;
else
order = 0;
mywin.location = urls[order];
setTimeout('rotate();', document.getElementById("time").value*1000);
}
function init()
{
if( document.getElementById("urls").value.length != 0 )
{
urls = document.getElementById("urls").value.split(",");
mywin = window.open(urls[0], '87931', 'width=' +
screen.availWidth + ', height=' + screen.availHeight + ', screenX=0,
left=0, screenY=0, top=0, toolbar=1, scrollbars=1, location=1,
status=1, menubar=1, resizable=1');
mywin.focus();
setTimeout('rotate();', document.getElementById("time").value*1000);
}
else
{
alert("No url's here");
}
}
</script>
</head>
<body>
URL's: <textarea id="urls" name="urls" rows="5"
cols="40"></textarea> (Comma Separated Variable format with full url,
like '://www.google.com/')<br>
Time: <input type="text" id="time" name="time"> (seconds)<br>
<input type="button" value="Visit" onclick="init();">
</body>
</html>