[ Edit Parameters ( eA02SL ) ]


1) Open eA02SL.html with a text-editor program.
2) Change parameters for your railroad.

* Check "Quotation" !
Number1without quotation
True or falsefalse
File Name"sample.gif"with quotation
RGB Color Code"#ff0066"



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
* If another language on this page, change the character set to your language. iso-8859-1 is the set of English and the relative language.
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Opaku's Train Kit: eA02SL v2.61</title>
* Write the title of your page.
<script language="JavaScript" type="text/javascript"><!--
/*
Opaku's Train Kit eA02SL ver.2.61 (May 2016)
eA02SL is English version of A02SL.
scripted by (C) 2003-2016 Mr.Opaku = Sonobe Souan.
v2.61 May 2016/v2.6 Jun.2014/v2.5 Apr.2014/v2.4 Apr.2011/v2.33 Jul.2010/v2.32 Jul.2009/v2.31 May 2007/v2.3 Aug.2006/v2.2 Jun.2006/v2.1 Mar.2005/v2.05 Dec.2004/v2.04 Oct.2004/v2.03 Jul.2004/v2.02 Jun.2004/v2.01 May 2004/v2.0 Apr.2004/
v1.5 Jan.2004/v1.4 Dec.2003/v1.3 Nov.2003/v1.2 Oct.2003/v1.11 Sep.2003/v1.02 Aug.2003/v1.0-1.01 Jul.2003
http://www.mars.dti.ne.jp/~opaku/zigzag/railway/e/
Trains Illustrated by (C) --Name of the Illustrator of the train picture--
http://www --Your URL--

*/
//NEVER CHANGE HERE!----------
locoROK=new Array();locoLOK=new Array();locoPictureR=new Array();locoPictureL=new Array();locoRLength=new Array();locoLLength=new Array();doubleLocoR=new Array();doubleLocoL=new Array();pushR=new Array();pushL=new Array();nextcarROK=new Array();nextcarLOK=new Array();nextPictureR=new Array();nextPictureL=new Array();nextcarRLength=new Array();nextcarLLength=new Array();nextToHeadR=new Array();nextToHeadL=new Array();tailcarROK=new Array();tailcarLOK=new Array();tailPictureR=new Array();tailPictureL=new Array();tailcarRLength=new Array();tailcarLLength=new Array();tailcarDoor=new Array(); trainPicture=new Array();trainLength=new Array();precountmax=20;doorOpenLimit=new Array();trainLPicture=new Array();LRdifferentPict=new Array(); SLOK=new Array();locoWheelDiameterL=new Array();locoWheelMoveFramesL=new Array();locoWheelDiameterR=new Array();locoWheelMoveFramesR=new Array();locoWheelHeadL=new Array();locoWheelHeadR=new Array();wheelOffsetR=new Array();wheelOffsetL=new Array();doubleDriverR=new Array();doubleDriverL=new Array();driverRLength=new Array();driverLLength=new Array();driverIntervalR=new Array();driverIntervalL=new Array();wheelSuffix=new Array(); locoSmoking=new Array();locoSmokeR=new Array();locoSmokeL=new Array();smokeWidthR=new Array();smokeWidthL=new Array();smokeOpacity=new Array();smokeOnlyWinIE=new Array();smokeView=new Array();locoSmokePngR=new Array();locoSmokePngL=new Array(); glassOK=new Array();glassFileR=new Array();glassFileL=new Array();glassPngFileR=new Array();glassPngFileL=new Array();glassOpacity=new Array();glassPngOK=new Array();glassOffsetR=new Array();glassOffsetL=new Array();
for(i=1;i<=precountmax;i++){SLOK[i]=false;wheelOffsetR[i]=0;wheelOffsetL[i]=0;locoSmoking[i]=false;doubleDriverR[i]=false;doubleDriverL[i]=false;driverIntervalR[i]=0;driverIntervalL[i]=0;trainPicture[i]=new Array();trainLPicture[i]=new Array();LRdifferentPict[i]=false;smokeView[i]=0;smokeOnlyWinIE[i]=false;glassOK[i]=false;glassOpacity[i]=100;glassPngOK[i]=false;locoROK[i]=false;locoPictureR[i]="";locoRLength[i]=0;doubleLocoR[i]=false;pushR[i]=false;locoLOK[i]=false;locoPictureL[i]="";locoLLength[i]=0;doubleLocoL[i]=false;pushL[i]=false;nextcarROK[i]=false;nextPictureR[i]="";nextcarRLength[i]=0;nextToHeadR[i]=false;nextcarLOK[i]=false;nextPictureL[i]="";nextcarLLength[i]=0;nextToHeadL[i]=false;tailcarROK[i]=false;tailPictureR[i]="";tailcarRLength[i]=0;tailcarLOK[i]=false;tailPictureL[i]="";tailcarLLength[i]=0;tailcarDoor[i]=false;wheelSuffix[i]=".gif";glassOffsetR[i]=0;glassOffsetL[i]=0;};
expressTrain=new Array();passingspeed=new Array();maxspeed=new Array();doorHandling=new Array();stationStopSecondR=new Array();stationStopSecondL=new Array();stopPointSetR=new Array();stopPointSetL=new Array();trainAcceleration=new Array();trainDeceleration=new Array();




//**********************************************************************************
//PARAMETERS
//set here and make your railroad on the web-browser.

//BASIC Parameter
trainHeightPixel=60;//pixels of train pictures (default=60)
//Train Kit's standard (TK standard) is 60px height. Scale: 1pixel=10cm.
trainFolderName="traingif";//(default="traingif")
randomTrains=false;//if true, changing train in random.
LstartingTrain=2;//the number of the first "RunToLeft" train. if zero, the number is set into mid-number of trains (if 6trains, No.3 train runs first on "RunToLeft" line).
LtrainReverse=false;//if true,"RunToLeft" train changes in the reverse order.


//1st TRAIN ( [train number] )

//Locomotive of "RunToRight"
locoROK[1]=true;//if no-loco train, set false.
locoPictureR[1]="kitWSL_drgT18a_bodyR.gif";//picture name with suffix (gif or png format)
locoRLength[1]=235;//picture width pixels.
doubleLocoR[1]=false;
pushR[1]=false;
//Locomotive of "RunToLeft"
locoLOK[1]=true;
locoPictureL[1]="kitWSL_drgT18a_bodyL.gif";
locoLLength[1]=235;
doubleLocoL[1]=false;
pushL[1]=false;
//Next car of "RunToRight"
nextcarROK[1]=false;//nextcar is always next to locomotive.
nextPictureR[1]=".gif";//picture name.
nextcarRLength[1]=0;//picture width pixels.
nextToHeadR[1]=false;//when loco-push and set this true, nextcar becomes the head car.
//Next car of "RunToLeft"
nextcarLOK[1]=false;
nextPictureL[1]=".gif";
nextcarLLength[1]=0;
nextToHeadL[1]=false;
//Tail car of "RunToRight"
tailcarROK[1]=false;//Tail car is always tail of the train.
tailPictureR[1]=".gif";//picture name.
tailcarRLength[1]=0;//picture width pixels.
//Tail car of "RunToLeft"
tailcarLOK[1]=false;
tailPictureL[1]=".gif";
tailcarLLength[1]=0;
tailcarDoor[1]=false;//door handling of the tailcar.
//it is able to omit parameters above (loco, nextcar and tailcar) on ver.2.0 or later.
//--------------------------------
trainLength[1]=1000;//overall width of the train pictures (without locomotive, nextcar and tailcar)
trainPicture[1][1]="sampleFC_type1.gif";//picture name of the 1st car (leftend is the 1st)
trainPicture[1][2]="sampleFC_type1.gif";//2nd
trainPicture[1][3]="sampleFC_type1.gif";//3rd
trainPicture[1][4]="sampleFC_type1.gif";//4th
trainPicture[1][5]="sampleFC_type1.gif";//5th
//trainPicture[1][6]="";//6th
//trainPicture[1][7]="";//7th
//trainPicture[1][8]="";//8th
//trainPicture[1][9]="";//9th
//trainPicture[1][10]="";//10th
//number is [train number][car number]
//number starting from 1, not 0.
//delete or comment-out(add //) the line of non-use cars.
//--------------------------------
expressTrain[1]=false;//if true, this train does not stop the station. (It can't set the 1st train to express)
stationStopSecondR[1]=7;//sceond (minimum 5)
stationStopSecondL[1]=7;
doorHandling[1]=true;//if true, doors open and close.
stopPointSetR[1]=0;//pixels. plus to the right, minus to the left
stopPointSetL[1]=0;
passingspeed[1]=70;//km/h.
maxspeed[1]=95;//km/h
trainAcceleration[1]=1.5;//km/h/s. (minimum 0.5)
trainDeceleration[1]=2.0;
//--------------------------------
//if you want to use different pictures in "RunToLeft" and "RunToRight", set "RunToLeft" train here.

//trainLPicture[1][1]="samplePC_type2.gif";

//number is [train number][car number]
//delete or comment-out(add //) the lines when using the same pictures.
//if number of cars is not the same, this parameter becomes false.
//--------------------------------
//GLASS
//if with colored window glass, add these parameters. v1.3-
glassOK[1]=false;//true=using glass, false=no glass.(translucent by CSS opacity)
glassFileR[1]=".gif";//R. glass image.(one image for one train)
glassFileL[1]=".gif";//L.
glassOpacity[1]=30;//percent.
glassPngOK[1]=false;//true=using glass, false=no glass.(translucent PNG picture)
glassPngFileR[1]=".png";//R. glass image.(one image for one train. 24bit PNG)
glassPngFileL[1]=".png";//L.
//using which glass? v2.5-
glassChoice[1]=0;//select below.
//0=standard=CSS-windows IE9 or ealier/PNG-other browsers.
//1=CSS first=CSS-almost browsers/PNG-MacIE
//2=PNG first=CSS-windows IE6 or ealier/PNG-IE7 or later and other browsers.

translucent glass Netscape4 MacIE WinIE -6 IE7 - IE9 IE10-, Safari, Firefox or others.
glassChoice[ ]=0 none PNG CSS CSS PNG
glassChoice[ ]=1 none PNG CSS CSS CSS
glassChoice[ ]=2 none PNG CSS PNG PNG

//offset between body and glass. v2.3-
glassOffsetR[1]=0;//R. pixels. plus to right, minus to left. if you omit this parameter, offset is 0.
glassOffsetL[1]=0;//L.
//--------------------------------
//STEAM LOCOMOTIVE

//if Steam-Locomotives, add these parameters.
//if SL, you need to set both(R and L) locomotives into true.
//if SL, put body picture to locomotive parameter.
//delete or comment-out(add //) the lines when no SL.
//if animatedGIF (ex. crossingAlert), SL runs too slow on the low-speed computer. it is better no-SL or no-crossing.
wheelSuffix[1]=".gif";//picture format of wheels. dot and suffix. v2.2-
//Moving Wheel of "RunToRight"
locoWheelDiameterR[1]=17;//pixels
locoWheelMoveFramesR[1]=12;//pictures of one round.
locoWheelHeadR[1]="kitWSL_drgT18a_wheelR";//the head of the picture name.
//Head+CodeNumber+".gif"=file name.
//CodeNumber start from 100 and count-up in clockward. if 8 pictures in one round, CodeNumbers are 100-107.
wheelOffsetR[1]=0;//offset pixels between the body and the wheel. plus to wheel right, minus to wheel left.
doubleDriverR[1]=false;//if true, driving wheel set double when loco is not double.
driverIntervalR[1]=0;//pixels between double driving wheel pictures.
//Moving Wheel of "RunToLeft"
locoWheelDiameterL[1]=17;
locoWheelMoveFramesL[1]=12;
locoWheelHeadL[1]="kitWSL_drgT18a_wheelL";
wheelOffsetL[1]=0;
doubleDriverL[1]=false;
driverIntervalL[1]=0;
//smoking
locoSmoking[1]=true;
locoSmokeR[1]="smoke_drgT18a_R.gif";//picture name of "RunToRight" smoke.
smokeWidthR[1]=235;//picture width pixels.
//height pixels is fixed in 121. default "scene-height"(130px)-"rail-height"(9px)=121px.
locoSmokeL[1]="smoke_drgT18a_L.gif";
smokeWidthL[1]=235;
smokeOpacity[1]=40;//percent.
smokeView[1]=2;//view on browsers (set number below).
//0=every browser.
//1=only on browsers with CSS translucent.
//2=use png file below without WinIE6 or earlier.
locoSmokePngR[1]="smoke_drgT18a_R.png";//PNG picture name of R.
locoSmokePngL[1]="smoke_drgT18a_L.png";//L.
//from v1.4, parameter"smokeOnlyWinIE[1]" does not use.
//--------------------------------


//2nd TRAIN ( [train number] )

//Locomotive of "RunToRight"
locoROK[2]=true;//if no-loco train, set false.
locoPictureR[2]="kitWDL_DBv200.gif";//picture name with suffix (gif or png format)
locoRLength[2]=187;//picture width pixels.
doubleLocoR[2]=true;
pushR[2]=false;
//Locomotive of "RunToLeft"
locoLOK[2]=true;
locoPictureL[2]="kitWEL_DB103.gif";
locoLLength[2]=203;
doubleLocoL[2]=false;
pushL[2]=false;
//it is able to omit parameters above (loco, nextcar and tailcar) on ver.2.0 or later.
//--------------------------------
trainLength[2]=1300;//overall width of the train pictures (without locomotive, nextcar and tailcar)
trainPicture[2][1]="samplePC_type1.gif";//picture name of the 1st car (leftend is the 1st)
trainPicture[2][2]="samplePC_type1.gif";//2nd
trainPicture[2][3]="samplePC_type1.gif";//3rd
trainPicture[2][4]="samplePC_type1.gif";//4th
trainPicture[2][5]="samplePC_type1.gif";//5th
//trainPicture[2][6]="";//6th
//trainPicture[2][7]="";//7th
//trainPicture[2][8]="";//8th
//trainPicture[2][9]="";//9th
//trainPicture[2][10]="";//10th
//number is [train number][car number]
//number starting from 1, not 0.
//delete or comment-out(add //) the line of non-use cars.
//--------------------------------
expressTrain[2]=false;//if true, this train does not stop the station.
stationStopSecondR[2]=10;//sceond (minimum 5)
stationStopSecondL[2]=10;
doorHandling[2]=true;//if true, doors open and close.
stopPointSetR[2]=0;//pixels. plus to the right, minus to the left
stopPointSetL[2]=0;
passingspeed[2]=70;//km/h.
maxspeed[2]=95;//km/h
trainAcceleration[2]=1.5;//km/h/s. (minimum 0.5)
trainDeceleration[2]=2.0;
//--------------------------------
//GLASS
//if with colored window glass, add these parameters. v1.3-
glassOK[2]=true;//true=using glass, false=no glass.(for WindowsIE9 or earlier)
glassFileR[2]="glass_pc5_DBv200R.gif";//R. glass image for Windows IE9.(one image for one train)
glassFileL[2]="glass_DB103_pc5L.gif";//L.
glassOpacity[2]=30;//percent
glassPngOK[2]=true;//true=using glass, false=no glass.(for MacIE, IE10-, Netscape7, Firefox or Safari)
glassPngFileR[2]="glass_pc5_DBv200R.png";//R. glass image for another browser.(one image for one train. 24bit PNG)
glassPngFileL[2]="glass_DB103_pc5L.png";//L.
glassChoice[1]=0;
//--------------------------------
//this place, you can add "RunToLeft" train parameters / SL parameters.

/*
from train No.3 to No.20, add the parameter in the same form of the 1st train.
trainPicture[train number][car number]
20 trains max.
*/


//RUNNING PATTERN
trainInfrequency=5;//(default=5, minimum=0)
trainLstartpointOffset=100;//meter, not pixels. start point of "RunToLeft" train goes back.
highFrequencyTerminal=true;//if true, very high frequent when trackPattern is terminal.

//TRACK PATTERN
trackPattern=0;//select number below
//0=double track
//1=one way - left only (invalid Right signal)
//2=one way - right only (invalid Left signal)
//3=single track (signal for single track)
//4=terminal - left train goes back to right. (invalid signal, crossing and blur effect./ required station)
//5=terminal - right train goes back to left. (invalid signal, crossing and blur effect./ required station)
//6=synchronous passing
//7=switching (invalid left signal./ required station)
//even if one way, oposite train is exist. only hidden. picture of oposite train becomes preloaded.
//even if one way, you need set both direction steam locomotives.

//Train in Station
startPointSet=0;//first "RunToRight" train's starting point(station stop) offset.
stopToDooropen=1;//second.
doorcloseToStart=2;//second
dooropencars=3;//cars of this number from the rightend are handling the doors. if zero, all cars open the doors.
doorOpenCodeR="a";//door open code of right train. (default="a")
doorOpenCodeL="a";//door open code of left train. (default="a") - you can change it on v2.1 or later.

//STATION
stationOK=true;//if false, no stations on the scene.
individualStationObjectOK=true;//if false, individual station pictures are not loaded. v2.1-
singlePlatform=false;//for single track. v2.1-
islandPF=true;//island platform or oposite platform.
PFoverTheTrack=false;//single platform over the track or fore the track. (when singlePlatform is true) v2.1-
PFimgFile="station_eA.gif";//picture name of island platform.
PFimgFileOPB="station_eA.gif";//picture name of oposite platform (over the track)
PFimgFileOPF="station_eA.gif";//picture name of oposite platform (fore the track)
PFrightEnd=440;//coordinate from the leftend.


//AERIAL WIRES
electrified=true;
wireXposition=0;//coordinate from the leftend.
wireImgFile="wire_e.gif";//picture name of the wire and catenary.
poleOK=true;//if false, no poles.
poleFOK=true;//if false, no poles fore the rail.
poleImgFileF="pole_e.gif";//picture name of fore the rail.
poleImgFileB="pole_e.gif";//picture name of over rail poles. if no-use set same file of the pole fore the rail.
pantographHeight=5.5;//meter. (default=5.5 english version, default=5.1 japanese version)

//RAILS
railOK=true;//if false, no individual track object. v2.1-
railImgFile="rail_normal.gif";
liftupPixel=0;//plus to up. (if railOK=true, 0pixel is 9pixels up from the bottom of the scene. 9pixels is the height of the rail.)

liftupWithStation=true;
simpleLiftOffsetR=0;//only "RunToRight" train lift in this pixels. but there is only one rails, so you have to draw another rails on scene pictures(background, foreground or mid-object).

//LEVEL CROSSING

crossingOK=true;
crossingPos=500;//coordinate from left end.
crossingwidth=130;//pixels
//all crossing pictures must be the same pixels.
//height is fixed in 130pixels.
crossingBarOK=true;
barBHead="barEAB";//Head of the picture name of the crossing bars. (over the rail)
barFHead="barEAF";//(fore the rail)
barMoveAngle=15;//(default=15)
outsideBars=true;//if Japanese style crossing machine, set false.
//Head+MovingCode+".gif"=file name. gif only.
//MovingCode: fullopen=100, close=190. bar angle+100.
crossingAlertOK=true;
crossHead="crossEA";//Head of the picture name of the crossing alert.
//Head+"F1.gif" is alert on, Head+"F0.gif" is alert off, Head+"B.gif" is over the rail.
crossingBackAlertOK=false;//If true, changing of warning lights over the rail is enabled. v2.4-
//When back-alert is true, Head+"B1.gif" is back-alert on, Head+"B0.gif" is back-alert off.
crossingLROK=true;//indicator of train direction.
crossDirHead="dirEA_";//Head of the picture name of the direction indicator.
//Head+"L.gif", Head+"R.gif", and Head+"LR.gif".

//WIGWAG in USA

wigwagOK=false;//if you need wigwag, set true. (if true, normal crossing is set into false)
wigwagwidth=141;//pixels.
//height is fixed in 130pixels.
wigwagHead="wigwag";//Head of of the picture name of the wigwag.
//Head+MovingCode+".gif"=file name. gif only.
//MovingCode: F1, F0, B0, B1. (F is fore the rail, B is over the rail, 0 is stop, 1 is moving)

//SIGNALS

signalROK=true;
signalRpos=660;//for "RunToRight" train. coordinate from the leftend.
signalFileNameHeadR="signalER";//Head of the signal file name for "RunToRight" train.
signalLOK=true;
signalLpos=800;//for "RunToLeft" train.
signalFileNameHeadL="signalEL";//Head of the signal file name for "RunToLeft" train.
signalChanging=5;//2,3,4,or 5.
//if 5, colors are R,YY,Y,YG,G.
//if 4, colors are R,Y,YG,G.
//if 3, colors are R,Y,G.
//if 2, colors are R,G.
//Head+colorCode(R,YY,Y,YG,G)+".gif"=file name. gif only.
//when single track, 2 colors only.

//ADDITIONAL SCENERY OBJECT
//over the track
backObjOK=false;
backObjImg=".gif";//picture name.
backObjTop=0;//coordinate from the top.
backObjLeft=0;//coordinate from the left.
//between "RunToRight" and "RunToLeft"
midObjOK=false;
midObjImg=".gif";
midObjTop=0;
midObjLeft=0;
//fore the track
foreObjOK=false;
foreObjImg=".gif";
foreObjTop=0;
foreObjLeft=0;
foreObjOpacity=50;//0-100 percent.
foreObjView=0;//select below.
//0=every browser.
//1=only on browsers with CSS translucent.
//2=use png file below without WinIE6 or earlier.
foreObjPng=".png";//substitute 24bit PNG picture with transparency.

//BACKGROUND and FOREGROUND
backgroundImgFile="scene_eA.png";//gif, png or jpg.
foregroundOK=false;
foregroundImgFile=".gif";
sceneHeightPixels=130;//(default=130, minimum=130)
sceneWidthPixels=1600;//(default=1600, minimum=590)

//BLUR (only Windows IE6 - IE9)
blurEffect=false;//if true, train runs very slow on low speed computer.
blurRatio=1;//(default=1, minimum=0.1, maximum=2.0)

//ETC
keepRight=true//if UK or Japan, set false to keepLeft.
autostart=false;//if true, no start button.
keycontrolOK=true;//if true, hit space key to change start/stop. (ver1.1-)
onlyWindowWidth=true;//if true, scene out of the window becomes hidden.
zeroTopMargin=false;//if true, railroad scene moves to the top of the page.
textUnderTheRail=true;//if true, set spacer.
loadedToFocus=true;//if not in frames and no spacer, focus on when loaded.

//End of PARAMETERS
//**********************************************************************************



( ellipsis )



//***********************************End of Train Kit Program.
//--></script>


<style type="text/css"><!--
body{
background-color:#494949;
color:#dddddd;
overflow-x:hidden;
}

--></style>
<!--Change this style in the design of your page-->
* Write your style here.


</head>
<body>

<p>TEXT over the railroad.<small> (if no text here, set parameter "zeroTopMargin=true")</small></p>
* Write your text here or delete it.
* If using CSS on this text, train does not run on Netscape 4 (a bug of the Netscape browser).

<!--Start of Railway Object-->



( ellipsis )



<!--End of Railway Object-->

<p>TEXT under the railroad.</p>
* Write your text here or delete it.

</body>
</html>


<< Return

Opaku's Train Kit (C) Mr.Opaku