Go to Home page Go to Railfan 
Guide Go to Tour Guide Train Gifs by Chris Denbow Go to Stanly 
County Railroad Overview e-Mail Tony Hill Visit the Frograil Railfan Store


Basic Scene Components

To do a javaScript-enabled scene, you must have the following, and I'd suggest for simplicity's sake, you have them in the same folder:

Brian Clough's scripts (go here to download)
Dr. Clue's scripts (go here to download)
Train gif (this one will do fine)
Skeleton scripted scene HTML file (crank this one up)*

*Yes, the skeleton scripted scene's HTML is just lovely, but will not work as written.  You must do the following:

Create a new folder, and name it trainGifScenes

Put Brian Clough's and Dr. Clue's scripts in the new folder.
Put the train gif and the skeleton script in the new folder.

Now, here are the HTML changes you'll have to make to the skeleton scripted scene's HTML code.  The anchors in the HTML file I've given you are addressing files in Frograil itself.  You must change them to point to your file locations.  Since all of the scripts and other files are in the same folder, your anchors will actually be greatly simplified:

1.  In the  createConsist("chooChoo","../../graphics/gifs/class1/kcs/kcs2000ac4400cwright.gif"); anchor to the loco image, substitute the following:


2.  In the src="../trainGifScenes/tgjsp2.js" ..... anchor to Brian's scripts, substitute the following:


3.  In the src="../trainGifScenes/jsDHTMLlib.js"..... anchor to Dr. Clue's scripts, substitute the following:


When you've done this, save the file and test it by opening it in your browser, via Windows Explorer.  When the file opens, nothing will happen for several seconds, and then you should see the KCS engine going from left to right over and over again.  At that point, you've successfully created your first "train gifs scene".

 Congratulations.  Now, you're ready to begin adding cars, trains and other objects.