Project 3. Description.

Main assignment

I will split the description of the project into two parts: how it should look and what it should do. Please notice that not all interface elements are to be completely functional by the time you complete this assigment (some are not functional at all). You will really complete the slide show page in project 5.

Interface

For your third project you should design and develop a web page that will show a set of pictures to a user. The design is totally up to you and it won't be graded. Below there is a template layout I use to describe all of the required pieces your page should have.

The elements on the layout are:

Functionality

All the information about the images is given to you as a JavaScript array of objects in the following form:

var img_info = new Array (
                                  { fname: "first.jpg", title:"My first picture", date:"Oct 12, 2004",
                                    time:"12:30pm", camera:"Sony", descr:"Log text goes here" },
                                  { fname: "second.jpg", title:"My second picture", date:"Oct 15, 2004",
                                    time:"13:30pm", camera:"Sony", descr:"Another long-long text goes here"},
                                  { fname: "third.jpg", title:"My last picture", date:"Dec 31, 2004",
                                    time:"12:00am", camera:"Canon", descr:""}
                                );
You should automatically generate the contents of the thumbnail area using information from this array. You should also use information from this array when you are showing the next/previous picture from the list. This, for example, can be done using the document.writeln() statement as follows:
for(i=0;i<img_info.length;i++)
   document.writeln("<img src='"+img_info[i].fname+"' width='60px'>");
Note: this example doesn't include any event handlers. It only shows how to make javascript create page contents dynamically using the array of data. Your code will be a little different.

Additional credits

For additional credits you can demonstrate all your abilities to use the JavaScript for dynamic page programming. For example:

Note: You should have at least 5 different images with their description and everything else in your array. Do not forget to place all your files into your directory on the CIT-PROJECTS server and insert the link to the second project into your index.html page.