Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Generator</title>
- <script language="JavaScript">
- function showAndClearField(frm){
- var o=document.getElementById("output")
- if (frm.firstName.value == "")
- alert("Hey! You didn't enter anything!")
- else
- o.textContent="Players ={'"+frm.firstName.value + "'}";
- frm.firstName.value = ""
- }
- </script>
- <style type="text/css">
- *{
- margin:0;
- }
- body{
- font-family:verdana;
- font-size:14px;
- margin:0;
- padding:0;
- background-color:#BCDDFF;
- text-align:center;
- }
- h1{
- padding-top:20px;
- text-align:center;
- font-size:35px;
- color:#004C99;
- font-family:verdana;
- }
- #firstName{
- width:200px;
- }
- #output{
- width:400px;
- height:300px;
- align:center;
- }
- #submit{
- margin-top:3px;
- }
- </style>
- </head>
- <body>
- <form NAME="test">
- <H2><font face='Verdana' color='#A160E9'><p align='center'>Game's Generator</p></font></H2>
- <P><font face='Verdana'>Enter your username: <input placeholder="Example: Safwanrockz" type="TEXT" name="firstName"><br><br>
- <input type="Button" value="Submit" onClick="showAndClearField(this.form)">
- </P>
- <textarea id="output" title="Hey"></textarea>
- <ul>
- <li>Name must begin with a capital letter.
- <li>This generator is only for the "Unspecified yet" game.
- </ul><br><br>
- <font face='Verdana' size='1'>~Made by <B><a href='http://cheese.formice.com/forum/members/safwanrockz.58343/'>Safwanrockz</a></B></font>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment