Modifying the refernece file
The text references and several other "control" are contained in a non-HTML file called "reflist.js". This is simply a text file that is called by all of the pages for common use. It is easily modified to suit. The instructions below should suffice. It is recommended that you make a copy of "reflist.js" before modifying it to protect against errors. Making an error in changing "reflist.js" will not likely be disabling to using the files, but it could cause spurious error messages to be produced.
reflist.js is a simple text file and can be modified using any text editor. A couple of general points should be emphasized
- Make sure that the modified file is saved as reflist.js. Don't save it with any other name or extension.
- In making your changes, be absolutely certain that you do not add or remove any quotation marks. These act as string delimiters and changing them is certain to produce a "broken" file.
- Your best bet is to make the modifications locally and verify that all is well before distributing them to the students or replacing reflist.js on a server.
Below is the opening section of reflist.js. It contains all of the relevant information. Most of the entries should be self-explanatory.
- The first two lines declare two needed arrays-theref and comment. Don't change these.
- The next line is the text title. Change as desired, making sure that the quotation marks are not changed.
- The next line is the email link. If you wish your students to be able to email you from the pages, replace gwiger@chemistry.csudh.edu with you complete email address. Again, do not change either the single or double quotes.
- Don't change the returnlink
- Skip down to "Basic Concept Section". Never change the function unless you're certain about what you're doing.
- Each web page has its own pair of entries and the entries are headed by the page title/topic. Thus, the entry shown here is for the significant figures page. The first entry,theref[1], is the detailed text reference. The second,comment[1], is for comments on the topic that you might want to add. Both of these can be changed readily. Again, make sure that the quotes are not changed. As distributed, this file contains no comments. If you decide to add some, you should keep them brief and make sure that you comments are placed between the quotation makrs provided.
reflist.js begins below
theref=new Array()
comment=new Array()
booktitle="General Chemistry, Seventh Edition... Petrucci and Harwood;MacMillan Publishing
"
emaillink="...='mailto:gwiger@chemistry.csudh.edu'>Feedback to George
"
returnlink=" ...='lechelpcs.html'>Back to Top"
function setrefs(){
if(ie4){
refspot.innerHTML=booktitle+theref[refnumber]+emaillink+returnlink
}
else{
document.refspot.document.open()
document.refspot.document.write(booktitle,theref[refnumber],emaillink,returnlink)
document.refspot.document.close()
}
}
//Basic Concept Section
//Significant Figures
theref[1]="Chapter 1,p.19-23,Fig 1-10(p.20)"
comment[1]=""