JavaScript On/Off Buttons
All of these eleven files need to be placed into the same folder on your computer. The names I gave these should make it easier to see what's going on in the HTML source scripting.
1. The demo of Javascript (the "javascripting.html" file)
blurryA.gif | blurryB.gif | blurryC.gif |
2.![]() |
3.![]() |
4.![]() |
clearA.gif | clearB.gif | clearC.gif |
5.![]() |
6.![]() |
7.![]() |
questionmark.gif | theletterA.gif | theletterB.gif | theletterC.gif |
8.![]() |
9.![]() |
10.![]() |
11.![]() |
When you're done downloading everything, you should have a folder on your computer that has these eleven files in it:
Once you've got everything there, open up the "javascripting.html" and take some time thinking why things are where they are. Try to figure out what's going on. It'll take some time, but a light will pop on after enough time. Oh... and once you get involved with this and changing the javascript up, you might run into little stupid errors you might do. I'll tell you right now, it's kind of like math in a way. If you remember doing math problems like {5(4x(5-2))+6} in high school, you can figure this stuff out. DON'T GET SCARED!!! ;-) I'm just trying to explain why semicolons, brackets and the parenthesis are in javascript. In other words, if a parenthesis is not closed with another parenthesis, it won't work. You know, like if you have a "{" in a math problem, you need the other squiggly thingy "}" to close it up. ;-) And javascripting language doesn't like it when you start a quotation mark, and don't close it up with the second quotation mark. You can get MORE errors that way. ;-)
I guess that now, all I can say is go and fumble around with the javascript.html and think about why it's doing what it's doing. It's just gonna take time.