Created
April 18, 2020 01:39
-
-
Save Squids47/719762d7293c4bd2544aa946b6defbef to your computer and use it in GitHub Desktop.
Random // source https://jsbin.com/kanuzog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
body{ | |
text-align: center; | |
background-color:rgb(46,243,250); | |
} | |
a:link { | |
color: red; | |
<script src="https://code.jquery.com/jquery-git.js"></script> | |
} | |
a:visited { | |
color: rgb(234, 245, 86); | |
} | |
a:hover { | |
background-color: rgb(42, 52, 247); | |
} | |
a:active { | |
background-color: rgb(50, 223, 235); | |
} | |
a:focus { | |
background-color: rgb(62, 20, 201); | |
} | |
.button{ | |
background-color:rgb(62,130,255); | |
margin-top:200px; | |
} | |
</style> | |
<title>Random</title> | |
</head> | |
<body> | |
<script> | |
<!-- | |
/* | |
Random link button- By JavaScript Kit (http://javascriptkit.com) | |
Over 300+ free scripts! | |
This credit MUST stay intact for use | |
*/ | |
//specify random links below. You can have as many as you want | |
var randomlinks=new Array() | |
randomlinks[0]="https://drawastickman.com/" | |
randomlinks[1]="https://clickspeedtest.com/" | |
randomlinks[2]="https://deeeep.io/" | |
randomlinks[3]="https://www.youtube.com/watch?v=npjF032TDDQ" | |
randomlinks[4]="https://tenor.com/view/cereal-milk-guy-bowl-gif-5810127" | |
randomlinks[5]="https://www.myinstants.com/instant/reeeeeeeeeeeeeeeeeee/" | |
randomlinks[6]="https://www.youtube.com/watch?v=SiMHTK15Pik" | |
function randomlink(){ | |
window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)] | |
} | |
//--> | |
</script> | |
<form method="post"> | |
<p><input type="button" name="B1" value="Click For Random Website" onclick="randomlink()"></p> </form> | |
<!--Uncomment below to use a regular text link instead | |
<a href="javascript:randomlink()">Random Link</a> | |
--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment