Preview: http://thetteessttforum.smfforfree4.com/index.php click on the button that says "Enter your name!"!
This code will make a button that when you click it opens a program and then you enter your name and it says "Hi 'your name'"!
code:
Put this in your headers or where ever you want it:
<SCRIPT language="JavaScript">
<!--
function getname()
{
var yourname=prompt('Enter your name, NOW!','');
if (yourname.length > 10)
{
alert('That name is just too long, give me a shorter one!');
getname();
}
else
alert('Hi '+yourname+'!');
}
//-->
</SCRIPT>
Then enter this code:
<FORM>
<input type="button" value="Enter your name!" name="button 9" onclick="window.location='javascript:getname()'"<
</FORM>
On the first code you can edit:
-where is says if (yourname.length > 10) edit "10" to edit the max charecters you can enter.
-where it says var yourname=prompt('Enter your name, NOW!',''); edit "Enter your name, NOW!" to what you want it to say on the application!
In the second code you can edit:
-Where it says value="Enter your name!" edit "Enter your name!" to edit what the button says.
-I don't care i wouldn't but you can change where it says name="button 9" change the name it dosen't show up anywhere so whats the point rofl...
Enjoy!!!
-Blahs