Right now, I have a very limited knowledge of JavaScript. More to the point, I know a lot about what you shouldn’t do, but I don’t know enough about what you should do to actually get anything done. So today when I had an idea for something to do, my approach was “try stuff and see if it works”.
It didn’t. In fact, it nearly did, but I kept getting the one same error message over and over again. After a few hours I (think I) figured out the problem, but not how to fix it, and at that point I decided I should actually learn starting from the beginning, and maybe then I’d have a solid enough foundation to figure out my error.
So here is what I’m getting to: Why are there no good javascript tutorials anywhere on the web? I looked around and I can find nothing that seems to have been written by someone knowledgeable about Web Standards and the Right Way to do Things. My criteria? If a tutorial tells me to put the script element in the body, it gets closed immediately. If it starts me off with a “Hello World” using document.write, I get very skeptical, and close it in a few pages if it doesn’t redeem itself.
And no tutorial so far has passed even those two tests. There are a few sites out there that I can tell are good—like the unobtrusive javascript page I linked to before, but those aren’t basic enough for me. I’ve tried taking things off those sites and adapting them to my needs, but failed. They’re just a bit to advanced for me.
So where are the good tutorials, that explain for a beginner the right way to do things?
P.S.: If you’re interested in helping me do this one thing, all it is is that I have a div with an original background-color of black, and I want to make it transparent when it’s hovered over with the mouse—and do it in a way that separates content, style, and behavior. And no, I can’t use :hover, because I want to do other things to it later.