Automatically Visit Websites?
// Set the array to the number of URLs
var url=new Array(4)
// Create the list of URLs
url[0] = "http://www.google.com"
url[1] = "http://www.
yahoo
.com"
url[2] = "http://www.sandydk.blogspot.com"
url[3] = "http://www.sandydk.blogspot.in"
// Set the number of seconds between cycles
var seconds = 15
var i = 0
function winClose() {
popWindow.close()
}
function winOpen() {
popWindow = window.open(url[i], "Automatic", 'location=1,status=1,scrollbars=1,width=800,height=600')
self.setTimeout('winClose()', (seconds*1000)-5000)
i++
if (i==url.length) {
i = 0
}
}
var interval = setInterval(winOpen, seconds*1000)
No comments:
Post a Comment