Monkeydummy / Web and code-related work and explorations Monkeydummy Feed
  • ARCHIVE / TAG ARCHIVE
  • Javascript-Session 2-Multiplication Table 3

    A multiplication table where the number of rows  are randomly generated from a number between 10 and 20 by passing on the variable RandomNumRow; and columns from 1 to 5 by passing on the variable RandomNumCol. Here is the link, refresh to generate new numbers.
    <html>
    <body>
    <script language=”JavaScript”>
    document.write(’<table border=0>’);
    //—creates random number for rows—
    minimum     =    10;
    max         =    [...]

    Posted on Jun 12.09 to Javascript   Add a Comment   

  • Javascript-Session 2-Multiplication Table 2

    A multiplication table where the number of rows and columns are randomly generated from a number between 1 and 10 by passing on the variable RandomNum. Here is the link, refresh to generate a new number.
    <html>
    <body>
    <script language=”JavaScript”>
    document.write(’<table border=0>’);
    minimum     =    1;
    max         =    10;
    numb         =    genRand(minimum, max);        //call function, pass and receive data
    function [...]

    Posted on Jun 12.09 to Javascript   Add a Comment   

  • Javascript-Session 2-Multiplication Table 1

    A multiplication table where the number of rows and columns are set by the variables: rowNum and colNum. A link to the table is here.
    <html>
    <body>
    <script language=”JavaScript”>
    document.write(’<table border=0>’);
    var rowNum =    20
    var colNum =    10
    //—creates index(red) row ‘X’ through number set in “var colNum”—
    document.write(’<tr style=color:red>’);
    document.write(’<td>’+’X’+’</td>’);
    for (row1=1; row1<=colNum; row1++)
    {
    document.write(’<td>’+row1+’</td>’);
    }
    document.write(’</tr>’);
    //—
    var col1=1
    for (row=1; row<=rowNum; row++)
    {
    document.write(’<tr>’);
    //—creates index(red) column, number of rows [...]

    Posted on Jun 12.09 to Javascript   Add a Comment   

  • Javascript-Session 1-Variables

    Multiplication where numbers to be multiplied, the result and output are determined by variables. Online here.
    <html>
    <head>
    <title>Variable</title>
    </head>
    <body>
    <h1>Multiply</h1>
    <script language=”JavaScript”>
    document.write(”<h2>var num and num2</h2>”);
    var num = 4;
    var num2 = 6;
    var num3 = num * num2;
    document.write(num + ” x “+ num2 + ” = ” + num3);
    </script>
    </body>

    Posted on Jun 11.09 to Javascript   Add a Comment   

INSIDE    ←


Monkeydummy

  • Sections

    • Javascript (7)
    • Processing (1)
  • Archives

    • June 2009 (7)
    • May 2009 (1)
  • Links

    • CSS Course at NYU
    • Electricitypond
    • Javascript Course at NYU
    • Officebrown
    • Processing Wiki
    • w3schools-CSS
    • w3schools-Javascript
  • Websites

    Complete and partial websites, built using the programming languages and techniques featured on this site.

    Coming soon.

  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Copyright © 2009 by Monkeydummy, unless otherwise noted. All rights reserved. Powered by WordPress. Modio theme by Upstart Blogger.