• Home
  • Photo Gallery
    • Game Scrnshots
      • Battlefield 2
      • Gmod9->HL2
    • Weather Chaos
      • NorEaster
    • Assorted Pics
      • My Car(s)
      • Food Art
      • Box Art
      • My Hardware
      • Close Art
      • Portraits
      • Senior HS Art
      • Bordum Art
  • Tutorials
    • SSH & Tunnels
      • SSH & Putty
      • SSH & The Shell
    • Game Tips
      • Battlefield 2
    • Hacks
      • itrip
      • Spyware bg
      • ScrnSavr Tab
    • GNU/Linux
      • Hardware
  • Projects
    • CompSci0
      • Simple HTML
      • HTML Frames
      • JavaScript
    • CS108
      • Course Work
    • CP2
      • Course Work
    • Eng102
      • Course Work
    • Modified Games
      • OneSlime
      • OrbitzAD
    • Mods & Maps
      • BF2 MapPack
      • HL2 Coop Mod
    • Game Remakes
      • JezzBall
    • Server List
      • BF2
JavaScript
Table of Contents
  • Disclaimer
  • Page Overview
  • Intended Audience
  • Browser Check
  • Rotating Images
  • Mouse Over
  • Looping Slide Show
  • Slide Show
  • Form
Disclaimer

Do whatever you want with the example code. Not sure what licensing it falls under but I am pretty sure you can do whatever you want with it. Most of the example code came from a dated HTML and JavaScript book.

Top

Page Overview

This page contains assorted code examples and excercises from my class at Westchester Community College called Computer Science 0 (CompSci0). The professor's name is Robert Sciabbarrasi. I was way to advanced for the course but needed to take the course because it was a required prerequisite for the advanced computer courses. I'm glad its all over with. The teacher was great at presenting the material and was willing to hear my suggestions on better coding practices and tricks. Please note that the code presented here is depreciated and has bad coding practices in it. As much as I wanted to fix it up and follow better coding standards the teacher insisted that I follow the crap/depreciated code presented in the class book otherwise classmates would get confused. The book used is HTML and JavaScript BASICS, third edition by Karl Barksdale and E. Shane Turner

Course Description from 2005-2007 Catalog:

This course is designed for students who would like to learn some programming and general knowledge about computers, and want to explore options in computer related disciplines. Students learn how to design a web page using HTML and JavaScript, and about computer networking and hardware, issues in the interaction of computers with society and computer related curricula and careers. Class hrs. 2; Lab hrs. 2.

Top

Intended Audience

People who wish to see bad coding practice or the depreciated/obsolete methods of web development. This section is not intended to serve as a tutorial but just links to the projects we did in class. Keep in mind that I am missing some coursework.

Top

Browser Check

Checks the current version of your web browser and lets you know what browser your using via JavaScript Alert. I MIGHT use this code snippet to check the users browser. If they are not using FF then I will prompt the user with an alert dialog warning them that the web site may not work in some parts. So far I have decided against adding this browser check because it may make the web site look amatuer and who likes dialog boxes anyway? In each web browser release CSS is becomming ever more stable. Eventually the users that were using unsupported browsers will upgrade their browser or switch to a different one. The more web developers add hacks to their pages to accomodate such browsers the more bugs are introduced, code gets less elegant, and slows the user from upgrading their browser. The user will certainly know if some things do not work. This web site for example does not interpret my CSS Menu or CSS Picture box's at all in Internet Explorer 6. If I wanted to accomodate that user base I could do a few things. I could add some JavaScript or something else to check if the user is using a unsupported browser. If the user is in fact using a unsupported browser I could have it warn them, redirect them to an alternate web page that is supported, or add hacks to my code.

Click here to open page.

Top

Rotating Images

Each time you move your mouse cursor on any image then move it off the image the images rotate once clockwise. Professor had the class do this excersise to help us understand how arrays work and the mouse over events.

Click here to open page

Top

Mouse Over

Yet another mouse over event. Image changes once you hover over it. Its also a hyperlink.

Click here to open page

Top

Looping Slide Show

This is a Slide Show that simply changes images every 2 seconds. It loops to the begginning image after it ends the images.

Click here to open page

Top

Slide Show

Yet another Slide Show. Except this time it has a next and back hyperlinks to go through images.

Click here to open page

Top

Form

This is a form that does not submit anywhere. It contains textbox's, checkbox's, and two buttons. The first button is reset which resets the form and the second is the submit button which checks to see if all forms were filled in. It does not properly reset the form. The checkbox's do not reset but the textbox's do. I was the only person in the class who wrote the assignment according to how the the professor wanted.

Click here to open page

Top

Copyright George P.S. Mouyios 2009