Jump to content

Naosyth

Members
  • Posts

    6
  • Joined

  • Last visited

About Naosyth

  • Birthday 09/25/1992

Contact Methods

  • AIM
    Naosyth
  • Website URL
    http://naosyth.com

Profile Information

  • Location
    Las Vegas

Naosyth's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Couldn't you use <body alink=#something vlink=#something>?Or am I misunderstanding the question?
  2. Yay, it all works! Thanks for helping me so much, lol.
  3. Thanks again, lol. But, when i hit enter.. the reply appears and disappeares really fast. Also, in the code you posted, i tihnk this line was messed up:<input type="text" id="word" bgcolor=202020 style="background:808080" onkeypress="noenter()">so i changed it to:<input type="text" id="word" bgcolor=202020 style="background:808080" onkeypress="trythekey()">But it still is messed up...Http://naosyth.com/Misc/TalkBot.html to see for yourself.Thanks again, lolAlso, ive added some more replies:<html><head><script type="text/javascript">function trythekey(e) { var code; if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; if(code=="13") chat();}function chat(word){//hi,bye,small talkif(document.getElementById("word").value=="hi")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="hello")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="hey")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hi")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hello")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hey")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="bye")document.getElementById("reply").value="Naosyth2.0: Good Bye."if(document.getElementById("word").value=="cya")document.getElementById("reply").value="Naosyth2.0: Good Bye."if(document.getElementById("word").value=="good night")document.getElementById("reply").value="Naosyth2.0: Good night."if(document.getElementById("word").value=="Bye")document.getElementById("reply").value="Naosyth2.0: Good Bye."if(document.getElementById("word").value=="Bya")document.getElementById("reply").value="Naosyth2.0: Good Bye."if(document.getElementById("word").value=="Good night")document.getElementById("reply").value="Naosyth2.0: Good night."if(document.getElementById("word").value=="how are you?")document.getElementById("reply").value="Naosyth2.0: Im good, and you?"if(document.getElementById("word").value=="good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="im good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="How are you?")document.getElementById("reply").value="Naosyth2.0: Im good, and you?"if(document.getElementById("word").value=="Good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="Im good")document.getElementById("reply").value="Naosyth2.0: Thats good"//randomnessif(document.getElementById("word").value=="do you like pie?")document.getElementById("reply").value="Naosyth2.0: Of course I do!"if(document.getElementById("word").value=="Do you like pie?")document.getElementById("reply").value="Naosyth2.0: Of course I do!"if(document.getElementById("word").value=="can i have pie?")document.getElementById("reply").value="Naosyth2.0: No! All of the pie is for me!"if(document.getElementById("word").value=="Can i have pie?")document.getElementById("reply").value="Naosyth2.0: No! All of the pie is for me!"if(document.getElementById("word").value=="do you know tycho?")document.getElementById("reply").value="Naosyth2.0: Yeah, we go way back."if(document.getElementById("word").value=="Do you know tycho?")document.getElementById("reply").value="Naosyth2.0: Yeah, we go way back."//questionsif(document.getElementById("word").value=="what is your name?")document.getElementById("reply").value="Naosyth2.0: My name is Naosyth2.0"if(document.getElementById("word").value=="What is your name?")document.getElementById("reply").value="Naosyth2.0: My name is Naosyth2.0"if(document.getElementById("word").value=="who is naosyth?")document.getElementById("reply").value="Naosyth2.0: He is the coolest person in the world!!!"if(document.getElementById("word").value=="Who is naosyth?")document.getElementById("reply").value="Naosyth2.0: He is the coolest person in the world!!!"if(document.getElementById("word").value=="who is hybrid mouse?")document.getElementById("reply").value="Naosyth2.0: A person who thinks i am a pathetic bot! >"if(document.getElementById("word").value=="Who is hybrid mouse?")document.getElementById("reply").value="Naosyth2.0: A person who thinks i am a pathetic bot! >"if(document.getElementById("word").value=="who is chewy?")document.getElementById("reply").value="The most awesome giant yorkie ever!"if(document.getElementById("word").value=="Who is chewy?")document.getElementById("reply").value="The most awesome giant yorkie ever!"//pricesif(document.getElementById("word").value=="how much is sig 1?")document.getElementById("reply").value="Sig 1 (qwerty) costs 400 gold."if(document.getElementById("word").value=="How much is sig 1?")document.getElementById("reply").value="Sig 1 (qwerty) costs 400 gold."//specialdocument.getElementById("word").value=""}</script></head><body onkeypress="trythekey(event)" bgcolor=202020><br><br><br><center><form><input type="text" id="word" bgcolor=202020 style="background:808080" onkeypress="trythekey(e)"><br><input type="button" value="Say" onclick="chat(word)" style="background:808080"></form><br><form><input type="text" id="reply" size="100" style="background:808080"></form></script><br><br><br><br><br><br><br><br><br><table border=0 bgcolor=404040 width=50% height=20%><tr><td><center>I am the not so amazing talking bot named Naosyth2.0.<br> I can reply to some things you say to me.</center></td></tr></table></center></body></html>
  4. Ive ran into another problem... it isnt a big one but it'd be nice to fix it.Im trying to make this reply to stuff i say, and it does.. but i want the text in the word box to disappear when i hit enter. But i dont want the text in the reply box to go away. <html><head><script type="text/javascript">function noenter() {chat()clear() return !(window.event && window.event.keyCode == 13);}</script><script type="text/javascript">function clear(){document.getElementById("word").value=""}</script><script type="text/javascript">function chat(word){//hi,bye,small talkif(document.getElementById("word").value=="hi")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="hello")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="hey")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hi")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hello")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="Hey")document.getElementById("reply").value="Naosyth2.0: Hello."if(document.getElementById("word").value=="how are you?")document.getElementById("reply").value="Naosyth2.0: Im good, and you?"if(document.getElementById("word").value=="good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="im good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="How are you?")document.getElementById("reply").value="Naosyth2.0: Im good, and you?"if(document.getElementById("word").value=="Good")document.getElementById("reply").value="Naosyth2.0: Thats good"if(document.getElementById("word").value=="Im good")document.getElementById("reply").value="Naosyth2.0: Thats good"//randomnessif(document.getElementById("word").value=="do you like pie?")document.getElementById("reply").value="Naosyth2.0: Of course I do!"if(document.getElementById("word").value=="do you know tycho?")document.getElementById("reply").value="Naosyth2.0: Yeah, we go way back."//questionsif(document.getElementById("word").value=="what is your name?")document.getElementById("reply").value="Naosyth2.0: My name is Naosyth2.0"if(document.getElementById("word").value=="who is naosyth?")document.getElementById("reply").value="Naosyth2.0: He is the coolest person in the world!!!"if(document.getElementById("word").value=="who is hybrid mouse?")document.getElementById("reply").value="Naosyth2.0: A person who thinks i am a pathetic bot! >:("if(document.getElementById("word").value=="who is chewy?")document.getElementById("reply").value="The most awesome giant yorkie ever!"//prices//special}</script></head><body bgcolor=202020><br><br><br><center><form><input type="text" id="word" bgcolor=202020 style="background:808080" onkeypress="return noenter()"><br><input type="button" value="Say" onclick="chat(word)" style="background:808080"></form><br><form><input type="text" id="reply" size="100" style="background:808080"></form></script><br><br><br><br><br><br><br><br><br><table border=0 bgcolor=404040 width=50% height=20%><tr><td><center>I am the not so amazing talking bot named Naosyth2.0.<br> I can reply to some things you say to me.</center></td></tr></table></center></body></html> You can try it at http://naosyth.com/Misc/TalkBot.htmlThanks
  5. It worked! Thanks, lol.
  6. Ok, i want this to reply in a form to stuff i type... 10 minutes ago it worked, but i did something and now it wont work and i cant figure out why...<html><head><script language="text/javascript">var word=getElementById("word")function chat(word){if(document.getElementById("word").value=="hi")document.getElementById("reply").value="Hello."if(document.getElementById("word").value=="how are you?")document.getElementById("reply").value="Im good."if(document.getElementById("word").value=="do you like pie?")document.getElementById("reply").value="Of course I do!"if(document.getElementById("word").value=="do you know tycho?")document.getElementById("reply").value="Yeah, we go way back."if(document.getElementById("word").value=="what is your name?")document.getElementById("reply").value="My name is Naosyth2.0"}</script></head><body><center><form><input type="text" id="word"><br><input type="button" value="Say" onclick="chat(word)"></form><br><form><input type="text" id="reply" size="100"></form></center></body></html>Im prety sure the problem is at the beginning with my function... but i cant see anything wrong with it.
×
×
  • Create New...