Looking for an "autosurf" type script I can install on my site.
June 10, 2007 10:09 PM Subscribe
Looking for an "autosurf" type script I can install on my site.
I am a PC technician, and we frequently get customers in saying that they have problems with their computers when surfing the internet, or their systems become disconnected, etc. I would like to install a script onto my site so that I can point to something like mydomain.com/surf, and it will automatically surf specific URLs that I can set up. It would probably be setup in a frame to do something like go to google.com, after 30 seconds go to yahoo.com, after 30 seconds go to cnn.com, and so forth.
I know of the "free traffic exchange" and "autohits" sites, but since I cannot control which sites these links take me to, I would like to setup something on my own site and that does not require a login or anything like that.
Thanks!
I am a PC technician, and we frequently get customers in saying that they have problems with their computers when surfing the internet, or their systems become disconnected, etc. I would like to install a script onto my site so that I can point to something like mydomain.com/surf, and it will automatically surf specific URLs that I can set up. It would probably be setup in a frame to do something like go to google.com, after 30 seconds go to yahoo.com, after 30 seconds go to cnn.com, and so forth.
I know of the "free traffic exchange" and "autohits" sites, but since I cannot control which sites these links take me to, I would like to setup something on my own site and that does not require a login or anything like that.
Thanks!
Best answer: Try this:
<html>
<script type="text/javascript">
var i = 0;
var sites = new Array (
"http://www.google.com",
"http://www.cnn.com",
"http://www.yahoo.com"
);
function startSurfing() {
document.getElementById("surfFrame").src=sites[i++];
if (i != sites.length) {
setTimeout(startSurfing,30000);
}
}
</script>
<body onload="startSurfing();">
<iframe width="640" height="480" id="surfFrame"></iframe>
</body>
</html>
But, why not use something like 'ping' or 'traceroute' to test connectivity?
posted by mebibyte at 12:40 AM on June 11, 2007 [1 favorite]
<html>
<script type="text/javascript">
var i = 0;
var sites = new Array (
"http://www.google.com",
"http://www.cnn.com",
"http://www.yahoo.com"
);
function startSurfing() {
document.getElementById("surfFrame").src=sites[i++];
if (i != sites.length) {
setTimeout(startSurfing,30000);
}
}
</script>
<body onload="startSurfing();">
<iframe width="640" height="480" id="surfFrame"></iframe>
</body>
</html>
But, why not use something like 'ping' or 'traceroute' to test connectivity?
posted by mebibyte at 12:40 AM on June 11, 2007 [1 favorite]
why not just use meta redirect, instead of javascript? :)
posted by slater at 1:34 AM on June 11, 2007
posted by slater at 1:34 AM on June 11, 2007
This thread is closed to new comments.
posted by ilikebike at 10:15 PM on June 10, 2007