here's Some Codes I Picked Up While Doing Some Basic HTML Stuff:

BOLD TEXT:

Code:
<b>This text is entirely BOLD!</b>


ERROR MESSAGE:

Code:
<script>alert("-TEXT HERE-")</script>


LOG IN:

Code:
<html>

<head>
<SCRIPT LANGUAGE="JavaScript">
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="member1" && password=="password1") { window.location="page1.html"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>
</head>

<body>
<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Members-Only Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login!" onClick="Login()"></td></tr>
</table>
</form>
</center>

</body>

</html>


NAME ENTRY:

Code:
<HTML>

<HEAD>
<script type="text/javascript" src="userName.js"></script>
</HEAD>

<BODY>
<form>
Please enter your name: <input type="text" name="nameinput">
<br><br>
<input type="button" value="Next Step" onclick="set_name(this.form)">
</form>

</BODY>

</html>


SEARCH BAR:

Code:
<form name="formx" method=GET action="http://www.google.com/search">
<input type="text" name="q" value="" size="40" maxlength="38" onSubmit="search()">
<input type="submit" name="btnG" onClick="search()" value="Search It!">
</form>


TEXT/COMMENT BOX:

Code:
<form method="post" action="">
<textarea name="TI Coder V.1" cols="4000" rows="500">
~Enter Data Here - Remove This Label Before Starting~
</textarea><br>
<input type="submit" value="Submit" />
</form>
That little [Code] button above the post typing box is handy for this kind of thing; I edited your post. Interesting stuff, a bit cut-and-paste for my tastes, but glad you're learning. This kind of thing will be most helpful to you if you understand how all the markup above works instead of blindly using it.
Grazie!
I have a code for you:


Code:
D01C8675 0020
811DAC50 40CB


Gives you Invisible Link in Legend of Zelda: Ocarina of Time.
Ultimate Dev'r wrote:
I have a code for you:


Code:
D01C8675 0020
811DAC50 40CB


Gives you Invisible Link in Legend of Zelda: Ocarina of Time.
What do you think the odds are that that crashes your calc?
KermMartian wrote:
Ultimate Dev'r wrote:
I have a code for you:


Code:
D01C8675 0020
811DAC50 40CB


Gives you Invisible Link in Legend of Zelda: Ocarina of Time.
What do you think the odds are that that crashes your calc?


I doubt GameShark codes will do anything significant on a calc.
ExecAsm() it.
didn't do anything to my emuator...in fact it didn't do anything at all
Eeems wrote:
didn't do anything to my emuator...in fact it didn't do anything at all


No Invisible Link? Sad
nope it just said done without doing anything
Svakk wrote:
LOG IN:


Worst login ever. Get rid of that ASAP.

Quote:
NAME ENTRY:

Code:
<HTML>

<HEAD>
<script type="text/javascript" src="userName.js"></script>
</HEAD>

<BODY>
<form>
Please enter your name: <input type="text" name="nameinput">
<br><br>
<input type="button" value="Next Step" onclick="set_name(this.form)">
</form>

</BODY>

</html>


No need for javascript at all. That is just a basic form with a text input and a submit button.

Quote:
SEARCH BAR:

Code:
<form name="formx" method=GET action="http://www.google.com/search">
<input type="text" name="q" value="" size="40" maxlength="38" onSubmit="search()">
<input type="submit" name="btnG" onClick="search()" value="Search It!">
</form>


Again, no need for javascript (and "search()" is never defined). You also will end up calling "search()" twice, which probably isn't what you want. Also, your HTML is invalid and specifying an empty value serves no point.

Quote:

TEXT/COMMENT BOX:

Code:
<form method="post" action="">
<textarea name="TI Coder V.1" cols="4000" rows="500">
~Enter Data Here - Remove This Label Before Starting~
</textarea><br>
<input type="submit" value="Submit" />
</form>


If there is no action why do you have a submit button?


All of this is super basic HTML (or bad HTML) that W3 schools more than covers. Why did you post this?
also. putting usernames and passwords in javascript is UBER fail.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement