www.webdeveloper.com
Results 1 to 3 of 3

Thread: Need some basic help please

  1. #1
    Join Date
    Dec 2002
    Posts
    2

    Question Need some basic help please

    Hi everyone. I am trying to do my computer homework and am having some difficulty. If you know anything about JavaScript, maybe you can help or help point me in the right direction. Here's the assignment: "Write a script that outputs XHTML text that displays the following checkerboard pattern":

    * * * * * * * *
    * * * * * * *
    * * * * * * * *
    * * * * * * *
    * * * * * * * *
    * * * * * * *
    * * * * * * * *
    * * * * * * *

    I have started it, but I start getting lost when you need to insert the document.write commands. It just ends up getting all screwy! The textbook is of no help, because quite honestly, it may as well be written in another language for all I understand! I also tried the website that the book recommends for tutorials but it is no longer in service! So, if anyone knows the slightest bit about this, it would be incredibly appreciated!!! Thanks :-)




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

  2. #2
    Join Date
    Nov 2002
    Posts
    631
    Do you mean like this?

    document.write("* * * * * * * *<br />* * * * * * *<br />* * * * * * * *<br />
    * * * * * * *<br />* * * * * * * *<br />* * * * * * *<br />* * * * * * * *<br />* * * * * * *<br />");

    (All of the above code should be on one line)

  3. #3
    Join Date
    Dec 2002
    Posts
    2

    Smile

    Thanks!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles