Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, April 2nd, 2005

Time Event
1:41p
I know this is proberly a simple question but can anyone tell me how to make this code loop so it diplays the verse's in a broswer but takes a bottle away every verse until the first 8 verses are diplayed

<HTML>

<HEAD>

<SCRIPT>



var bottleNumber

bottleNumber = 10



  document.write(bottleNumber);

document.write(' green bottles sitting on the wall' + '<BR>');

  document.write(bottleNumber);

document.write(' green bottles sitting on the wall' + '<BR>');

  document.write('But if 1 green bottle should accidentally fall'+ '<BR>');

  document.write('There\'ll be ' + (bottleNumber - 1) + ' green bottles sitting on the wall.' +'<BR>')





</SCRIPT>

</HEAD>



<BODY>

</BODY>



so i end up with a browser displaying the first 8 verses, hope that makes sense.....sorry it wont let me do a LJcut for some reason

<< Previous Day 2005/04/02
[Calendar]
Next Day >>
About LiveJournal.com
Image