The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to get this javascript to work

View previous topic View next topic Go down

how to get this javascript to work

Post by gperry on January 28th 2011, 5:22 pm

<HTML>
<HEAD>
<TITLE>
jogging summary
</TITLE>
<LINK REL=''stylesheet'' TYPE=''text/css'' HREF-tma03.css''>
<SCRIPT LANGUAGE = ''javascript''>
document.write('Summary for week beginning 12 july 2010'+'<BR>');
document.write('<BR>');
for(vardayArray=6;day<dayArray.length;day=day+1)
{
document.write('Mon'+-+'2'+'km'+'<BR>');
document.write('Tue'+-+'4'+'km'+'<BR>');
document.write('Wed'+-+'2'+'km'+'<BR>');
document.write('Thu'+-+'1'+'km'+'<BR>');
document.write('Fri'+-+'5'+'km'+'<BR>');
document.write('Sat'+-+'4'+'km'+'<BR>');
document.write('Sun'+-+'3'+'km'+'<BR>');
document.write('<BR>
maximumDistce=0;
for(var distance=0;distance<distanceArray.length;distance=distance+1)
{
if(distanceArray[Fri]>distanceArray[Fri])
{
maximumDistanceindex=0;
}

}
document.write(The maximum distance was'+maximumDistanceindex+'km+'run on'dayArray[maximumDistanceindex]);
</SRCIPT>

</HEAD>
<BODY>
</BODY>
</HTML>

gperry
New Member

Posts : 1
Reputation : 0
Language : GB

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum