Contents
Getting started What are CSS? Some CSS tricks CSS cautions What is JavaScript? Some JavaScript tricks JavaScript cautions |
JavaScript is a scripting language developed by Netscape to add interactivity and power to web documents. Those nifty alerts, clocks, and image rollovers are all made with JavaScript. The beautiful thing about JavaScript is that it's easy as pie. You don't need to be a programmer to be able to master it, it has a simle enough syntax, but you do need to have HTML experience before you begin to learn it. You could theoretically learn it from scratch, but you would have no use for it :).
I will not attemt to teach you JavaScript here, because that would mean I'd have to commit myself to helping you with code once you start learning, and I don't have that kind of time. I have included a few simple JavaScripts for you to use on your pages if you want to, along with explanations. |
<SCRIPT LANGUAGE="JavaScript" TYPE=""> <!-- hide ~your code goes here~ //end hiding--> </SCRIPT>What's with that hide business? Well, some browsers [discussed in the Cautions section] do not understand JavaScript. The tags <!-- and //--> basically mask your JavaScript code, making it appear as a SGML comment, which no browser will show on the screen. If you don't use them, WebTV, for example, will show your code on the page [not exactly aesthetic, is it?] :)