Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Chocolate570

  1. No problem. Anytime :)Choco
  2. This works in Opera 9.0,Opera 8.0, FireFox 1.5, FireFox 2 beta 2, IE 6, and IE 5. I think most of your users will be able to display this. :)Also, you might want to consider changing the background of the form elements. They're super-hard to see in IE and Opera, but are so-and-so in FireFox. Here's the code: <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 onsubmit="return false;"><input type="text" id="word" bgcolor=202020 style="background:808080"><br><input type="button" value="Say" onclick="chat(word);return false;" 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 tome.</center></td></tr></table></center></body></html> Hope that helps!Choco
  3. Hello again! <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=="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//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="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> I added some code to check if the button pressed was "e". It's crossbrowser, thanks to Quirksmode! If you press enter, it clears the word box and changes the reply box to your reply. If you click the button, it does the same. I think that's what you want :)Choco
  4. Chocolate570

    Net Zero

    NetZero's quality is not too bad. A bit better than dial up, but not enough to be able to tell the difference.
  5. No problem. Good luck with JS!
  6. I don't understand. You want it so that when you click a link it stays at the same point on the page until the page changes? It should happen already! What browser are you using?
  7. Try this. <html><head><script type="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> Don't use language=, use type= in the <script> tag.
  8. Try using this if you're using FireFox. It's cool. :)And this if you use IE...
  9. You can download the free trial of the software for Mac from adobe and use the same serial/authentication codes, I think.
  10. They're just different. It's like saying what's the difference between javascript and vbscript. ASP is by microsoft and is much less common on servers, while php is open-source developed and is common.
  11. Oh. Sorry for the false alarm guys. I didn't see the script. I just saw the tag that caused a fade in for IE and, since it faded in Firefox, thought it was implemented.
  12. Heh. Are you using Opera 9? I heard they had made some extra transition fixes... I didn't know what that meant at the time. :S
  13. Mozilla is probably so sick of so many web pages not working due to IE-only tags/methods being used that it's started incorporating these methods. I just noticed that in RahXephon's web page, where he/she (sorry! dunno what gender you are )'s layout use a page transition. http://oneuse.awardspace.com/layout/I feel sorry for them! That transition works in FireFox 2 beta 2...for a second I was like "Wtf, did I load IE by mistake?"What do you guys think about firefox's ongoing attempt to match IE's commonly-used attributes and methods? :)Choco
  14. Ok, this tag is deprecated, but if you want it simple, just wrap your image code with:<marquee> img code </marquee>And it'll scroll.
  15. Here's a sample code. <html><head><script type="text/javascript">function moseOver(which) { //yes, moseOver. No need to complicate it with 'mouse' //Ok, this checks whether the which variable says it's morning or night//(1 or 0)if(which=1) { //set the box to say "Yes its a good morning" document.getElementById("right").innerHTML="Yes it is a good morning."}else { //set the box to say "I'm tired, going to go to bed. Good night" document.getElementById("right").innerHTML="I'm tired, going to go to bed. Good night"}}/*The following function sets the box to blank when the user takes his mouse off either one of the set tables (a and b). You can remove the "onmouseout" events of the tables if you like. */function moseOut() {document.getElementById("right").innerHTML="";}</script></head><body><table border="1" width="100%" id="table1"><tr id="topleft"><td id="intopleft" onmouseover="moseOver(1)" onmouseout="moseOut()">Text A</td><td id="right" rowspan="2">Result A/B</td></tr><tr id="bottomleft"><td id="inbottleft" onmouseover="moseOver(0)" onmouseout="moseOut()">Text B</td></tr></table></body> Try that?
  16. Ok, I see we don't have any advanced users with Image maps here. First of all, make a new image of all the shapes, but with the shape you want blown up blown up. Do this for all of the shapes. Then use javascript code called by the mouseover function in the map areas to change the image to the blown up image of the shape. In onmouseout, make it change the image back to the original, with no shapes blown up.If you don't understand a word I just said, give me 5 images: 1 with no shapes enlarged, then each of the next with one shape enlarged. I'll help you with the code.
  17. Found it. Save the following code as a file. <script language="JavaScript" type="text/javascript"><!--function writeJS(){var str='';str+='<object classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application\/x-oleobject"';str+=' codebase="http:\/\/activex.microsoft.com\/activex\/controls\/mplayer\/en\/nsmp2inf.cab#Version=6,4,5,715"';str+=' standby="Loading Microsoft Windows Media Player components..."';str+=' width="60" height="32"';str+=' name="media_player">';str+=' <param name="Autostart" value="false">';str+=' <param name="volume" value="100">';str+=' <param name="url" value= "Waves\/<?php echo $exhortation_wma; ?>"';str+=' <p>';str+=' ActiveX is not installed or is not working properly.';str+=' If you are using Firefox, please refer to the following Guide:';str+=' <a href="http:\/\/forums.mozillazine.org\/viewtopic.php?t=206213">';str+=' Embedded Windows Media in Firefox';str+=' <\/a>';str+=' <\/p>';str+=' <\/object>';document.write(str);}writeJS();//--></script> Now put this where your object is: <script type="text/javascript" src="your code url.js"></script> It should work in IE, as it's loaded by a script. Hope that helps!Choco (PS-I mean to remove your current object code and replace it with this.)
  18. <script type="text/javascript">theObjects = document.getElementsByTagName("media_player");for (var i = 0; i < theObjects.length; i++) {theObjects.outerHTML = theObjects.outerHTML;}</script>That wouldn't work because there aren't any HTML tags called "<media_player>" I don't think that script works anyway. How would setting its outerhtml to the same thing fix anything?Edit- Hey awesome! If you uninstall the "KB912945" microsoft update from your add/remove program list, the click-to-activate thing will stop
  19. Nice!Look at this:http://developer.mozilla.org/samples/canva...s_combined.htmlThat's soo cool! All drawn with the canvas tag. Who wants a challenge? Draw the whole board...
  20. Ahh. 21" CRTs? I didn't even know they made 21 inch CRTs...
  21. I'm about to connect a TV tuner to my monitor, so it displays TV All the tv tuner does is, without a computer, takes an input of cable and outputs a vga signal which the monitor can pick up and use.
  22. 1280x1024. How big is your moniter, justsomeguy? (the middle one) I have a 19 inch LCD.
  23. All you do is copy that code and put it after the objects on your page. For example, if the last flash thing you have on your page is a menu, just put that code underneath the menu code. :)I don't think you need to link to it...
  24. Ya know? I really don't see many differences in the GUI of IE 6 and 7. I don't mean options and all of that, I mean they've kept the same boring, mostly non-gradiented grey. All that you can tell is different the first time you look at it is the tab. :S
×
×
  • Create New...