NationStates Jolt Archive


Multiland Train Times

Multiland
11-04-2006, 18:52
For anyone who is planning on using the Multiland National Train Service, from Freedom City Train Station the times are now online :)

http://www.geocities.com/pjcroad/multilandtraintimes

There is only one platform at each Multiland station, which is why no platforms have been listed.

Multiland Department of Transport

OOC: Yes I know this is just pretend :D
Swilatia
11-04-2006, 22:47
For anyone who is planning on using the Multiland National Train Service, from Freedom City Train Station the times are now online :)

http://www.geocities.com/pjcroad/multilandtraintimes

There is only one platform at each Multiland station, which is why no platforms have been listed.

Multiland Department of Transport

OOC: Yes I know this is just pretend :D
can you tell me how to make one of those?
Multiland
12-04-2006, 08:06
I cut and pasted some scripts (codes that do stuff on the internet).

I'll log into my website later and give you the details of what I used.

But first you need a website where you can edit something called HTML. Freewebs and Geocities both let you do this, Geocities takes longer to sign up for but works better than freewebs (if you use more than one code on the same page anyway) and you can customise the website more than you can on Freewebs, but Geocities is more difficult to get the hang of.

If you don't have a website already, I suggest going for Geocities and I'll help with using it and putting in the codes I mentioned.

P.S. I dunno about Freewebs, but with Geocities you can't have more than one of THE SAME code on the same page.
Multiland
12-04-2006, 20:41
I'm sorry, I feel dizzy, I'll do it tomorrow instead.

Don't worry about me though, it's just lack of fluids and lack of sleep, and I'm about to have plenty of fluids and I'll go to sleep later.
Multiland
14-04-2006, 13:04
O.K. here's the codes... [the bits in red are telling you what to do. you can remove them or leave them EXACTLY as they are (otherwise it may mess up the script)] Do NOT use anything outside of the TWO dashed lines (They look like this: ------- do NOT count this as one of the two), and do NOT include the dotted lines:

For the thing at the top left:

---------------------------------------

<script language="JavaScript1.2">

//Translucent scroller- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var scroller_width='300px' //THIS CHANGES THE WIDTH OF THE SQUARE
var scroller_height='80px' //THIS CHANGES THE HEIGHT OF THE SQUARE
var bgcolor='#E0EFD1'
var pause=5000 //SET THE AMOUNT OF TIME IT TAKES FOR A SLIDE TO CHANGE TO THE NEXT ONE (3000=3 seconds)

//This section is where you put the info.
var scrollercontent=new Array()
//Put in train times and places or whatever you want. The blue bit is an example of what I put in. You MUST leave the quotation marks intact..
scrollercontent[0]='<FONT SIZE="2">1. </FONT>PEACE CITY... 12:30 <br>LOVE CITY... 13:00 <br>KINDNESS TOWN... 13:30 <br>UNITY CITY... 14:00'
scrollercontent[1]='OAKS... 14:30 <br>PASTON... 15:00 <br>FRIENDSHIP TOWN... 15:30'
scrollercontent[2]='<FONT SIZE="2">2. </FONT>PEACE CITY... 16:00 <br>LOVE CITY... 16:30 <br>KINDNESS TOWN (LAST)... 17:00 <br>UNITY CITY (LAST)... 17:00'
scrollercontent[3]='OAKS (LAST)... 17:30 <br>PASTON... 18:00 <br>FRIENDSHIP TOWN... 18:30'
scrollercontent[4]='<FONT SIZE="2">3. </FONT>PEACE CITY (LAST)... 19:00 <br>LOVE CITY (LAST)... 19:30 <br>PASTON (LAST)...19:30 <br>FRIENDSHIP TOWN(LAST)... 20:00'

////NO need to edit beyond here/////////////

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter :alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter :alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
}

var curpos=scroller_height*(1)
var degree=10
var curcanvas="canvas0"
var curindex=0
var nextindex=1

function moveslide(){
if (curpos>0){
curpos=Math.max(curpos-degree,0)
tempobj.style.top=curpos+"px"
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=scrollercontent[curindex]
nextindex=(nextindex<scrollercontent.length-1)? nextindex+1 : 0
setTimeout("rotateslide()",pause)
}
}

function rotateslide(){
if (ie4||dom){
resetit(curcanvas)
crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else if (document.layers){
crossobj.document.write(scrollercontent[curindex])
crossobj.document.close()
}
curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0
}

function resetit(what){
curpos=parseInt(scroller_height)*(1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.top=curpos+"px"
}

function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (ie4||dom){
crossobj.innerHTML=scrollercontent[curindex]
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}

if (ie4||dom||document.layers)
window.onload=startit

</script>

-------------------------------------

Note: <br> is the equivlant of pressing "RETURN/ENTER" if you were writing a normal document - it puts the following text on the next line. Eg.:

If you type:

BISCUIT<br>RABBIT

then it will look like this on the internet:

BISCUIT
RABBIT

<P> sends any following text to the line AFTER the next, eg:

BISCUIT<p>RABBIT

will show

BISCUIT

RABBIT

on the internet

<FONT SIZE="1"> changes the size of the text to 1. You must type it like this:
<FONT SIZE="1">YOUR TEXT</FONT>

You don't have to use numbers like I did (just delete them, eg. you can delete <FONT SIZE="2">1. </FONT> from above (the bit in purple)

Let me know if this is O.K. or if you want me to add the scripts for the other two things as well