Assignment 8 - Cool JavaScript examples. Today we are going to ...

12 downloads 38 Views 59KB Size Report
Assignment 8 - Cool JavaScript examples. Today we are going to explore some neat JavaScript examples and you will add at least one that you find to a class ...
Assignment 8 - Cool JavaScript examples. Today we are going to explore some neat JavaScript examples and you will add at least one that you find to a class folder so others can check it out as well. To start, I want you to just open and check out these 4 sample files that I found. They are listed on our class website: https://cs.mtsu.edu/~rbucher/1150/ JavaScript can be added to webpages to add all sorts of extra features. The code can get very complex. Today we are just going to get a small glimpse into the kinds of things that JavaScript can do. Open these files with several browsers to check to see what happens. ChooseColor.html Clock.html (analog clock is in the bottom right hand corner) ExplodingStars.html (only works in Internet Explorer, allow content) FallLeaves.html The examples came from one of these sites below. Usually the code can be copied for free, pasted into notepad or an HTML editor like ActiveState Komodo, and then saved with a filename with .html at the end. Then you can open the file with a browser to see what it does. (You can also add the code to an existing html document) http://www.javascriptfreecode.com/ http://javascriptsource.com/ Now go out to the web sites listed above and see if you can find some cool examples, copy the code, paste into notepad, save the file with an html extension, test it in the browser, and make sure it works. You will drag and drop at least one working example to the \\161.45.160.98\Bucher1150\CoolJavaScript folder so others can see it. When you add your own file, it MUST be saved with this format for the filename so I can assign points for this assignment: ClassSectionNumberYourNameDescriptiveName.html So for example it might look like this: Section003RebeccaBucherRainbowClock.html If you are doing the assignment outside our lab room, just email me your file as an attachment. [email protected]

Suggest Documents