Is there anything more I can do with this program

Discussion in 'JavaScript' started by Sawarnik Kaushal, Jun 29, 2013.

  1. #1
    <html>
    <head>
    <title>
    Javascript
    </title>
    </head>
    <body topmargin=15><p align=center>
    <script>
    var time = 0
    for (var num1 = 0; num1 <= 32; num1+=2)
    {
      for (var num2 = 0; num2 <= num1; num2++)
      {
      // if (num1 >= 26 && num2 == (10 || 11) ; else
      randomnumber=Math.floor(Math.random()*2323232)
      document.write('<INPUT type="checkbox" onmouseover="document.bgColor='+"'"+randomnumber+"'"+'">')
      }
    num2 = 0
    document.write("<br>")
    }
    for (var num5 = 30; num5 >= 0; num5-=2)
    {
      for (var num6 = 0; num6 <= num5; num6++)
      {
      randomnumber=Math.floor(Math.random()*2323232)
      document.write('<INPUT type="checkbox" onmouseover="document.bgColor='+"'"+randomnumber+"'"+'">')
      }
    num6 = 0
    document.write("<br>")
    }
     
    </script>
    </p>
    </body>
    </html>
    HTML:
    Is there anything I can do to increase its visual appeal while keeping all that simple? Its my first program :)
     
    Sawarnik Kaushal, Jun 29, 2013 IP
  2. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #2
    Visual appeal.. have you thought about using CSS to design the page that you're using this code on?
     
    aidanriley629, Jun 30, 2013 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    Pure CSS or jQuery UI.
     
    ActiveFrost, Jun 30, 2013 IP