CPSC 120 Lab 8
March 23, 2001
For the eighth lab in CS 120, you should work on improving or replacing your web page, using the information found in this worksheet. Your new or improved page should be available on-line no later than the next lab, on March 30. You Web site should have more than one Web page, with relative URL's in the links between pages. It should use either frames or tables. You will get full credit for this lab if your Web site meets these criteria. You can work with a partner, if you want, but if you do, please let me know where I should look for your web page. You are not required to make a personal home page about yourself. If you would like to start a page about some other topic, feel free to do so.
The monitors on the computers in the lab are set to an annoyingly low 800 pixels by 600 pixels. The folder "cpsc120" on the "N" drive contains a program called "QuickRes" which makes it possible to increase the screen resolution on the computer monitor. If you run this program, by double-clicking it, you won't see anything happen. But a little icon will have been added to the right end of the toolbar at the bottom of the screen. If you right-click this icon, you get a pop-up menu with a list of possible screen settings. I recommend selecting a resolution of 1024-by-768 from this menu.
You should leave this lab worksheet open in Netscape throughout the lab, so you can refer back to it. Note that it might also be convenient to use copy-and-past to copy text from these Web pages into the Web pages you are writing.
You will be working in your account on the math department's computers. To review: Start up the program X-Win32. From the list of computers that appears, choose one of the computers named cslab1, cslab2, etc. When you get a login screen for that computer, enter your user name and the password for your math account.
This week, I suggest that you try working with the Linux graphical user interface. Open a directory window for your home directory by clicking on the folder icon at the bottom of the screen or by choosing "Home directory" from the K menu. Click the www folder to see the contents of your web site. (Remember to use a single click, not a double click.) If you see your Web page, instead of a set of files in your www directory, you should go to the "View" menu and turn off the "HTML View" option. Then go to the "Options" menu and select "Save Options" so you won't have the same problem again.
When you want to edit a html file, right click on it and select "Open With" from the pop-up menu. Enter nedit as the name of the program that you want to use. This will open the file in an editing window. If you want to start a new Web page, a quick way to do this is to right-click and drag your index.html file and move it a bit. When your release the mouse, you will get a pop-up menu. Select "Copy" from this menu. This will make a copy of the file. You will get a chance to give a name to the new file. Then, you can edit the new file.
The same browser that shows you your home directory and your www directory is also a Web browser. Open another copy of your home directory, by clicking the folder icon at the bottom of the screen. In the "Location" box, enter http://math.hws.edu/eck/cs120/ and press return to get to the Web page for this course. You can get to any other Web page in the same way, such as your home page. The only thing that the Web browser doesn't do is Java, which is why we didn't use it last time.
Remember that you can always see the source code of a Web page. In Netscape, for example, use the "Page Source" command under the "View" menu. Or to view the source code for frame, right-click the frame and choose "View Frame Source" from the pop-up menu. If you see something on a Web page that you would like to try on one of your own pages, take a look at the source. You might be able to figure out how it's done.
[ Next ]