Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf8" >
- <title>LAN Party 2018</title >
- <script type="text/javascript">
- function getRandom() {
- var random;
- do{
- random = Math.floor((Math.random() * 3) + 1);
- } while ( random == document.URL. charAt(document.URL.length -6)) ;
- return random;
- }
- function reload() {
- setTimeout(location.replace('LP' +getRandom ()+'.html' ), 3000);
- //alert(document.URL.substring(0, document.URL.length - 6)+getRandom ()+'.html' );
- }
- </script >
- </head>
- <body onload="reload();" >
- Str1
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement