Weeks 3 & 4  -- images, the law, and a bit of  review of JavaScript

The Z: drive can be accessed from off campus, under special circumstances  Try entering ftp://webclass.sru.edu from your favorite ftp software. Don't ask me to help with this, though,  as a student's choice of where to do homework is a bit beyond the instructor's purview. 

Bureaucracy -- Remember two things:

  1. proper format for e-mail assignments

  2. in the e-mail message to me (letting me know your assignment has been placed on webclass.sru.edu), please include the http: address of the material that is, its URL (which, please, reread, if needed). Something like:

    http://webclass.sru.edu/CPSC-217-01.0117/abc1234/mypage.htm
    If you are asked to authenticate use srunet\abc1234 (or whatever) as the username
  3. in the coming attractions category:  Information Technology Sophomore Survey 

Topics to cover this week:

Starting with Adobe Photoshop and a note on file formats

Beginning JavaScript: alert messages and debugging. 

Fancier JavaScript app (better version from week of Feb. 6) and a game with anagrams

New review:

Using the input with simple scripts  Experiment on your own!

Responding to simple events

Variables in JavaScript -- names for nouns

commands in JavaScript -- rather like verbs

Some of JavaScript's string handling mechanisms

Overview of functions and ways of activating functions

Building some images with script

More on HTML: Basics of a web page.  Forms, form elements.  Beginning JavaScript: functions, alert messages and debugging. Adobe Photoshop, more on legal issues, GIF and JPEG, images in tables, responding to simple events.

Legal issues (part 1):

a.       Differences between copyright, trademark, and patent

b.      Copyright: Title 17, (basic definitions, scope, exclusive rights, limitations) sections 102, 105, 106, 107, 120).

    copyright and  imagery and other web-related legal matters

c.       Differences between statute, treaty and case law

Legal issues (part 2):

d.      current legislation (e.g. copyright term extension act, database misappropriation act)

e.       current case law pertaining to the web (e.g., Bridgman v Corel, thumbnails, deep-linking)

f.        the public domain

Images:

a.       File formats: gif, jpg, and png as opposed to (for example) svg, targa, tiff, bmp and pct.

b.      compression, lossiness (jpg vs. gif) 

c. bitmapped versus vector graphics

d.      Dpi and bits per pixel; print vs. screen images

e.       Color space: RGB, HSB, and CIE

f.       anti-aliasing, dithering

g.        Creating images. (in class)

 


Scripting images: rollovers,  The document.images[] and document.forms[] arrays; JavaScript loops.


Assignment #3: Monday February 19th. Wednesday February 21st. Develop a web page containing a 2 by 2 table with an original graphic in each of the four cells. Each graphic should be 200 pixels high by 200 pixels wide. (Put real pigment, with colors different than the background, right up to the edges of each image to make sure the graphics really touch.) There should appear no space, gaps nor lines between any of the pictures as the table is viewed in both IE and Firefox. (That is, the pictures should nestle seamlessly next to one another so that the viewer cannot see the edges between them.) When one clicks on any of the cells (from IE and either Chrome or Firefox), an alert message should display the filename of the picture that was chosen as well as a count of the number of times that picture (and not that location) has been clicked.  Below the four pictures should be a button (centered under the pictures). When clicked, the button should make all four pictures change locations, moving to the table cell adjacent to it by clockwise rotation.

Notes on determining how often a picture has been clicked, regardless of where it happens to be.

A. Name your files sequentially like a0.gif, a1.gif, a2.gif, a3.gif and use JavaScript's string handling mechanisms to parse out just the numeric portion of the filenames (0,1,2,3) which can then be used as the index of an array of counters (count[n]++)

B. Parse the img's src down to just the part following the slash (which would represent the filename and not the path -- which varies from context to context) using the sting.split() method. 

C. Use strings as indeces of an associative array.

Images:

 a bit more on Photoshop

Slicing with ImageReady and slicing in Photoshop.

JavaScript:

document.images and document.forms


Assignment #4: TBA

Use Photoshop  or comparable software to draw

a) a face
or
b) a tree trees/tree1.jpg (6218 bytes)

Your drawing should each be exactly 400 pixels wide by 300 pixels high, and stored in .jpg format. Make the picture as realistic as you can (within the time allotted). Slice the image into four pieces, each 200 by 150 pixels. Create a 2 by 2 table containing all four pieces (in some predefined, but scrambled order). Whenever someone clicks on one of the pictures, swap the position of it with the image next to it in a clockwise direction. Whenever the picture is reassembled (i.e., all four pieces are in their proper positions) then pop-up an alert message. Put the table on a web page in your class space and e-mail me the address (http://webclass.sru.edu/cpsc217/... et cetera).