|
|
|
|
|
by r12e
4475 days ago
|
|
Couldn't resist optimising the script. <html>
<body>
<script>
setTimeout(function() {
var page = ["http://bluestatedigital.com",
"http://microsoft.com",
"http://ngpvan.com",
"http://mongodb.com",
"http://comcast.com",
"http://scientology.org",
"http://timewarnercable.com",
"http://godaddy.com",
"http://loggly.com",
"http://php.net",
"http://eclipse.org",
"http://intuit.com",
"http://mysql.com"];
window.location = page[Math.floor(Math.random()*page.length)];
}, 1500);
</script>
</body>
</html>
Any good ideas for compressing the array? At the expense of legibility, obviously. |
|