Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help, makin something (cant realy describe it)

    ok i made this thing and called it the mental matrix, basicaly its a table 9x9 and each coloum is painted a different colour by the javascript, now im makin a much bigger one 10x64 but it doesnt seem to work when i change the code,
    well heres the original code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>right frame</title>
    </head>
    <script src="../js/matrix_data.js"></script>
    <script language="JavaScript">
    loops = 1;
    def_Int = data[0];
    function do_loop() {
    w = data[loops];
    if ((w == 0)||(w == 1)||(w == 2)) { def_Int = data[loops+1]; do_handDrawn(w); loops = loops + 11; return }
    if (w == 3) {
    vu_count = data[loops+1];
    vu_Int = data[loops+2];
    do_vu();
    return;
    }
    if (w == 9) {
    random_count = data[loops+1];
    random_Int = data[loops+2];
    do_Random();
    return;
    }
    if (data[loops] == "Fin") { loops = 1; loopInt = setTimeout("do_loop()",def_Int); }
    }
    function do_handDrawn(v) {
    clearTimeout(loopInt);
    count = 1;
    for (rows=1; rows <10; rows++) {
    y_pos = "r" + rows;
    for (cols = 1; cols<10; cols++) {
    abs_pos = y_pos + "c" + cols;
    a = data[(loops+1)+count];
    b = a.substr(cols-1,1);
    b = parseInt(b);
    if (v == 0) { paint_block(); }
    if (v == 1) { b = b + 1; if (b >= 3) { b = b-3 } paint_block() }
    if (v == 2) { b = b + 2; if (b >= 3) { b = b-3 } paint_block() }
    }
    count++;
    }
    loopInt = setTimeout("do_loop()",def_Int);
    }
    function do_Random() {
    clearTimeout(loopInt);
    count = 1;
    for (rows=1; rows <10; rows++) {
    y_pos = "r" + rows;
    for (cols = 1; cols<10; cols++) {
    abs_pos = y_pos + "c" + cols;
    b = Math.round((Math.random()*10)/5);
    paint_block();
    }
    count++;
    }
    random_count--;
    randInt = setTimeout("do_Random()",random_Int);
    if (random_count <=0) { clearTimeout(randInt); loops = loops + 3; loopInt = setTimeout("do_loop()",random_Int); }
    }
    function do_vu() {
    temp = new Array();
    for (y=0;y<10;y++) {
    a = "";
    t = Math.round(Math.random()*9);
    for (q=0;q<=t;q++) {
    a = a + "2";
    }
    u = a.substr(0,a.length-2);
    u = u + "11";
    a = u;
    if (a.length < 9) { for (p=a.length;p<=9;p++) { a = a + "0"; } }
    temp[y] = a;
    }
    count = 0;
    clearTimeout(loopInt);
    for (rows=1; rows <10; rows++) {
    y_pos = "r" + (10-rows);
    for (cols = 1; cols<10; cols++) {
    abs_pos = y_pos + "c" + cols;
    a = temp[cols];
    b = a.substr((rows-1),1);
    b = parseInt(b);
    paint_block();
    }
    count++;
    }
    vu_count--;
    vuInt = setTimeout("do_vu()",vu_Int);
    if (vu_count <=0) { clearTimeout(vuInt); loops = loops + 3; loopInt = setTimeout("do_loop()",vu_Int); }
    }
    function paint_block() {
    f = document.all[abs_pos].style;
    if (b==0) { f.backgroundColor = "#FFFFFF" } else if (b==1) { f.backgroundColor = "#FF8000" } else { f.backgroundColor = "#8F8F8F" }
    }
    // set interval in ms
    loopInt = setTimeout("do_loop()",def_Int);
    </script>
    <body background="../images/fra_rgt.jpg" onload="do_loop()">
    <!-- Mental Matrix -->
    <div align="center" style="padding-top: 24px;">
    <table cellspacing="2" cellpadding="0" border="0">
    <tr><td width="12" height="12" id="r1c1"></td><td width="12" id="r1c2"></td><td width="12" id="r1c3"></td><td width="12" id="r1c4"></td><td width="12" id="r1c5"></td><td width="12" id="r1c6"></td><td width="12" id="r1c7"></td><td width="12" id="r1c8"></td><td width="12" id="r1c9"></td></tr>
    <tr><td height="12" id="r2c1"></td><td id="r2c2"></td><td id="r2c3"></td><td id="r2c4"></td><td id="r2c5"></td><td id="r2c6"></td><td id="r2c7"></td><td id="r2c8"></td><td id="r2c9"></td></tr>
    <tr><td height="12" id="r3c1"></td><td id="r3c2"></td><td id="r3c3"></td><td id="r3c4"></td><td id="r3c5"></td><td id="r3c6"></td><td id="r3c7"></td><td id="r3c8"></td><td id="r3c9"></td></tr>
    <tr><td height="12" id="r4c1"></td><td id="r4c2"></td><td id="r4c3"></td><td id="r4c4"></td><td id="r4c5"></td><td id="r4c6"></td><td id="r4c7"></td><td id="r4c8"></td><td id="r4c9"></td></tr>
    <tr><td height="12" id="r5c1"></td><td id="r5c2"></td><td id="r5c3"></td><td id="r5c4"></td><td id="r5c5"></td><td id="r5c6"></td><td id="r5c7"></td><td id="r5c8"></td><td id="r5c9"></td></tr>
    <tr><td height="12" id="r6c1"></td><td id="r6c2"></td><td id="r6c3"></td><td id="r6c4"></td><td id="r6c5"></td><td id="r6c6"></td><td id="r6c7"></td><td id="r6c8"></td><td id="r6c9"></td></tr>
    <tr><td height="12" id="r7c1"></td><td id="r7c2"></td><td id="r7c3"></td><td id="r7c4"></td><td id="r7c5"></td><td id="r7c6"></td><td id="r7c7"></td><td id="r7c8"></td><td id="r7c9"></td></tr>
    <tr><td height="12" id="r8c1"></td><td id="r8c2"></td><td id="r8c3"></td><td id="r8c4"></td><td id="r8c5"></td><td id="r8c6"></td><td id="r8c7"></td><td id="r8c8"></td><td id="r8c9"></td></tr>
    <tr><td height="12" id="r9c1"></td><td id="r9c2"></td><td id="r9c3"></td><td id="r9c4"></td><td id="r9c5"></td><td id="r9c6"></td><td id="r9c7"></td><td id="r9c8"></td><td id="r9c9"></td></tr>
    </table></div>
    </body>
    </html>

  • #2
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and the new:

    and here is the new code:
    the problem is highlited in
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>right frame</title>
    </head>
    <script src="../js/matrix_data.js"></script>
    <script language="JavaScript">
    loops = 1;
    def_Int = data[0];
    function do_loop() {
    w = data[loops];
    if ((w == 0)||(w == 1)||(w == 2)) { def_Int = data[loops+1]; do_handDrawn(w); loops = loops + 11; return }
    if (w == 3) {
    vu_count = data[loops+1];
    vu_Int = data[loops+2];
    do_vu();
    return;
    }
    if (w == 9) {
    random_count = data[loops+1];
    random_Int = data[loops+2];
    do_Random();
    return;
    }
    if (data[loops] == "Fin") { loops = 1; loopInt = setTimeout("do_loop()",def_Int); }
    }
    function do_handDrawn(v) {
    clearTimeout(loopInt);
    count = 1;
    for (rows=1; rows <11; rows++) {
    y_pos = "r" + rows;
    for (cols = 1; cols<62; cols++) {
    abs_pos = y_pos + "c" + cols;
    a = data[(loops+1)+count];
    b = a.substr(cols-1,1);
    b = parseInt(b);
    if (v == 0) { paint_block(); }
    if (v == 1) { b = b + 1; if (b >= 3) { b = b-3 } paint_block() }
    if (v == 2) { b = b + 2; if (b >= 3) { b = b-3 } paint_block() }
    }
    count++;
    }
    loopInt = setTimeout("do_loop()",def_Int);
    }
    function do_Random() {
    clearTimeout(loopInt);
    count = 1;
    for (rows=1; rows <11; rows++) {
    y_pos = "r" + rows;
    for (cols = 1; cols<62; cols++) {
    abs_pos = y_pos + "c" + cols;
    b = Math.round((Math.random()*62)/5);
    paint_block();
    }
    count++;
    }
    random_count--;
    randInt = setTimeout("do_Random()",random_Int);
    if (random_count <=0) { clearTimeout(randInt); loops = loops + 3; loopInt = setTimeout("do_loop()",random_Int); }
    }
    function do_vu() {
    temp = new Array();
    for (y=0;y<10;y++) {
    a = "";
    t = Math.round(Math.random()*62);
    for (q=0;q<=t;q++) {
    a = a + "2";
    }
    u = a.substr(0,a.length-2);
    u = u + "11";
    a = u;
    if (a.length < 62) { for (p=a.length;p<=62;p++) { a = a + "0"; } }
    temp[y] = a;
    }
    count = 0;
    clearTimeout(loopInt);
    for (rows=1; rows <11; rows++) {
    y_pos = "r" + (11-rows);
    for (cols = 1; cols<62; cols++) {
    abs_pos = y_pos + "c" + cols;
    a = temp[cols];
    b = a.substr((rows-1),1);
    b = parseInt(b);
    paint_block();
    }
    count++;
    }
    vu_count--;
    vuInt = setTimeout("do_vu()",vu_Int);
    if (vu_count <=0) { clearTimeout(vuInt); loops = loops + 3; loopInt = setTimeout("do_loop()",vu_Int); }
    }
    function paint_block() {
    f = document.all[abs_pos].style;
    if (b==0) { f.backgroundColor = "#FFFFFF" } else if (b==1) { f.backgroundColor = "#9f9f9f" } else { f.backgroundColor = "#1AA0FF" }
    }

    // set interval in ms
    loopInt = setTimeout("do_loop()",def_Int);
    </script>
    <body background="../images/fra_rgt.jpg" onload="do_loop()">
    <!-- Mental Matrix -->
    <div align="center" style="padding-top: 24px;">
    <table cellspacing="2" cellpadding="0" border="0">
    <tr><td width="7" height="7" id="r1c1"></td><td width="7" id="r1c2"></td><td width="7" id="r1c3"></td><td width="7" id="r1c4"></td><td width="7" id="r1c5"></td><td width="7" id="r1c6"></td><td width="7" id="r1c7"></td><td width="7" id="r1c8"></td><td width="7" id="r1c9"></td><td width="7" id="r1c10"></td><td width="7" id="r1c11"><td width="7" id="r1c12"></td><td width="7" id="r1c13"></td><td width="7" id="r1c14"></td><td width="7" id="r1c15"></td><td width="7" id="r1c16"></td><td width="7" id="r1c15"></td><td width="7" id="r1c17"></td><td width="7" id="r1c18"></td><td width="7" id="r1c19"></td><td width="7" id="r1c20"></td><td width="7" id="r1c21"></td><td width="7" id="r1c22"></td><td width="7" id="r1c23"></td><td width="7" id="r1c24"></td><td width="7" id="r1c25"></td><td width="7" id="r1c26"></td><td width="7" id="r1c27"></td><td width="7" id="r1c28"></td><td width="7" id="r1c29"></td><td width="7" id="r1c30"></td><td width="7" id="r1c31"></td><td width="7" id="r1c30"></td><td width="7" id="r1c302"></td><td width="7" id="r1c33"></td><td width="7" id="r1c34"></td><td width="7" id="r1c35"></td><td width="7" id="r1c36"></td><td width="7" id="r1c37"></td><td width="7" id="r1c38"></td><td width="7" id="r1c39"></td><td width="7" id="r1c40"></td><td width="7" id="r1c41"></td><td width="7" id="r1c42"></td><td width="7" id="r1c43"></td><td width="7" id="r1c44"></td><td width="7" id="r1c45"></td><td width="7" id="r1c46"></td><td width="7" id="r1c47"></td><td width="7" id="r1c48"></td><td width="7" id="r1c49"></td><td width="7" id="r1c50"></td><td width="7" id="r1c53"></td><td width="7" id="r1c52"></td><td width="7" id="r1c53"></td><td width="7" id="r1c54"></td><td width="7" id="r1c35"></td><td width="7" id="r1c56"></td><td width="7" id="r1c57"></td><td width="7" id="r1c58"></td><td width="7" id="r1c59"></td><td width="7" id="r1c60"></td></td><td width="7" id="r1c61"></td></tr>
    <tr><td height="7" id="r2c1"></td><td id="r2c2"></td><td id="r2c3"></td><td id="r2c4"></td><td id="r2c5"></td><td id="r2c6"></td><td id="r2c7"></td><td id="r2c8"></td><td id="r2c9"></td><td id="r2c10"></td><td id="r2c11"></td><td id="r2c12"></td><td id="r2c13"></td><td id="r2c14"></td><td id="r2c15"></td><td id="r2c16"></td><td id="r2c17"></td><td id="r2c18"></td><td id="r2c19"></td><td id="r2c20"></td><td id="r2c21"></td><td id="r2c22"></td><td id="r2c23"></td><td id="r2c24"></td><td id="r2c25"></td><td id="r2c26"></td><td id="r2c27"></td><td id="r2c28"></td><td id="r2c29"></td><td id="r2c30"></td><td id="r2c31"></td><td id="r2c32"></td><td id="r2c33"></td><td id="r2c34"></td><td id="r2c35"></td><td id="r2c36"></td><td id="r2c37"></td><td id="r2c38"></td><td id="r2c39"></td><td id="r2c40"></td><td id="r2c41"></td><td id="r2c42"></td><td id="r2c43"></td><td id="r2c44"></td><td id="r2c45"></td><td id="r2c46"></td><td id="r2c47"></td><td id="r2c48"></td><td id="r2c49"></td><td id="r2c50"></td><td id="r2c51"></td><td id="r2c52"></td><td id="r2c53"></td><td id="r2c54"></td><td id="r2c55"></td><td id="r2c56"></td><td id="r2c57"></td><td id="r2c58"></td><td id="r2c59"></td><td id="r2c60"></td><td id="r2c61"></td></tr>
    <tr><td height="7" id="r3c1"></td><td id="r3c2"></td><td id="r3c3"></td><td id="r3c4"></td><td id="r3c5"></td><td id="r3c6"></td><td id="r3c7"></td><td id="r3c8"></td><td id="r3c9"></td><td id="r3c10"></td><td id="r3c11"></td><td id="r3c12"></td><td id="r3c13"></td><td id="r3c14"></td><td id="r3c15"></td><td id="r3c16"></td><td id="r3c17"></td><td id="r3c18"></td><td id="r3c19"></td><td id="r3c20"></td><td id="r3c21"></td><td id="r3c22"></td><td id="r3c23"></td><td id="r3c24"></td><td id="r3c25"></td><td id="r3c26"></td><td id="r3c27"></td><td id="r3c28"></td><td id="r3c29"></td><td id="r3c30"></td><td id="r3c31"></td><td id="r3c32"></td><td id="r3c33"></td><td id="r3c34"></td><td id="r3c35"></td><td id="r3c36"></td><td id="r3c37"></td><td id="r3c38"></td><td id="r3c39"></td><td id="r3c40"></td><td id="r3c41"></td><td id="r3c42"></td><td id="r3c43"></td><td id="r3c44"></td><td id="r3c45"></td><td id="r3c46"></td><td id="r3c47"></td><td id="r3c48"></td><td id="r3c49"></td><td id="r3c50"></td><td id="r3c51"></td><td id="r3c52"></td><td id="r3c53"></td><td id="r3c54"></td><td id="r3c55"></td><td id="r3c56"></td><td id="r3c57"></td><td id="r3c58"></td><td id="r3c59"></td><td id="r3c60"></td><td id="r3c61"></td></tr>
    <tr><td height="7" id="r4c1"></td><td id="r4c2"></td><td id="r4c3"></td><td id="r4c4"></td><td id="r4c5"></td><td id="r4c6"></td><td id="r4c7"></td><td id="r4c8"></td><td id="r4c9"></td><td id="r4c10"></td><td id="r4c11"></td><td id="r4c12"></td><td id="r4c13"></td><td id="r4c14"></td><td id="r4c15"></td><td id="r4c16"></td><td id="r4c17"></td><td id="r4c18"></td><td id="r4c19"></td><td id="r4c20"></td><td id="r4c21"></td><td id="r4c22"></td><td id="r4c23"></td><td id="r4c24"></td><td id="r4c25"></td><td id="r4c26"></td><td id="r4c27"></td><td id="r4c28"></td><td id="r4c29"></td><td id="r4c30"></td><td id="r4c31"></td><td id="r4c32"></td><td id="r4c33"></td><td id="r4c34"></td><td id="r4c35"></td><td id="r4c36"></td><td id="r4c37"></td><td id="r4c38"></td><td id="r4c39"></td><td id="r2c40"></td><td id="r4c41"></td><td id="r4c42"></td><td id="r4c43"></td><td id="r4c44"></td><td id="r4c45"></td><td id="r4c46"></td><td id="r4c47"></td><td id="r4c48"></td><td id="r4c49"></td><td id="r4c50"></td><td id="r4c51"></td><td id="r4c52"></td><td id="r4c53"></td><td id="r4c54"></td><td id="r4c55"></td><td id="r4c56"></td><td id="r4c57"></td><td id="r4c58"></td><td id="r4c59"></td><td id="r4c60"></td><td id="r4c61"></td></tr>
    <tr><td height="7" id="r5c1"></td><td id="r5c2"></td><td id="r5c3"></td><td id="r5c4"></td><td id="r5c5"></td><td id="r5c6"></td><td id="r5c7"></td><td id="r5c8"></td><td id="r5c9"></td><td id="r5c10"></td><td id="r5c11"></td><td id="r5c12"></td><td id="r5c13"></td><td id="r5c14"></td><td id="r5c15"></td><td id="r5c16"></td><td id="r5c17"></td><td id="r5c18"></td><td id="r5c19"></td><td id="r5c20"></td><td id="r5c21"></td><td id="r5c22"></td><td id="r5c23"></td><td id="r5c24"></td><td id="r5c25"></td><td id="r5c26"></td><td id="r5c27"></td><td id="r5c28"></td><td id="r5c29"></td><td id="r5c30"></td><td id="r5c31"></td><td id="r5c32"></td><td id="r5c33"></td><td id="r5c34"></td><td id="r5c35"></td><td id="r5c36"></td><td id="r5c37"></td><td id="r5c38"></td><td id="r5c39"></td><td id="r5c40"></td><td id="r5c41"></td><td id="r5c42"></td><td id="r5c43"></td><td id="r5c44"></td><td id="r5c45"></td><td id="r5c46"></td><td id="r5c47"></td><td id="r5c48"></td><td id="r5c49"></td><td id="r5c50"></td><td id="r5c51"></td><td id="r5c52"></td><td id="r5c53"></td><td id="r5c54"></td><td id="r5c55"></td><td id="r5c56"></td><td id="r5c57"></td><td id="r5c58"></td><td id="r5c59"></td><td id="r5c60"></td><td id="r5c61"></td></tr>
    <tr><td height="7" id="r6c1"></td><td id="r6c2"></td><td id="r6c3"></td><td id="r6c4"></td><td id="r6c5"></td><td id="r6c6"></td><td id="r6c7"></td><td id="r6c8"></td><td id="r6c9"></td><td id="r6c10"></td><td id="r6c11"></td><td id="r6c12"></td><td id="r6c13"></td><td id="r6c14"></td><td id="r6c15"></td><td id="r6c16"></td><td id="r6c17"></td><td id="r6c18"></td><td id="r6c19"></td><td id="r6c20"></td><td id="r6c21"></td><td id="r6c22"></td><td id="r6c23"></td><td id="r6c24"></td><td id="r2c25"></td><td id="r6c26"></td><td id="r6c27"></td><td id="r6c28"></td><td id="r6c29"></td><td id="r6c30"></td><td id="r6c31"></td><td id="r6c32"></td><td id="r6c33"></td><td id="r6c34"></td><td id="r6c35"></td><td id="r6c36"></td><td id="r6c37"></td><td id="r6c38"></td><td id="r6c39"></td><td id="r6c40"></td><td id="r6c41"></td><td id="r6c42"></td><td id="r6c43"></td><td id="r6c44"></td><td id="r6c45"></td><td id="r6c46"></td><td id="r6c47"></td><td id="r6c48"></td><td id="r6c49"></td><td id="r6c50"></td><td id="r6c51"></td><td id="r6c52"></td><td id="r6c53"></td><td id="r6c54"></td><td id="r6c55"></td><td id="r6c56"></td><td id="r6c57"></td><td id="r6c58"></td><td id="r6c59"></td><td id="r6c60"></td><td id="r6c61"></td></tr>
    <tr><td height="7" id="r7c1"></td><td id="r7c2"></td><td id="r7c3"></td><td id="r7c4"></td><td id="r7c5"></td><td id="r7c6"></td><td id="r7c7"></td><td id="r7c8"></td><td id="r7c9"></td><td id="r7c10"></td><td id="r7c11"></td><td id="r7c12"></td><td id="r7c13"></td><td id="r7c14"></td><td id="r7c15"></td><td id="r7c16"></td><td id="r7c17"></td><td id="r7c18"></td><td id="r7c19"></td><td id="r7c20"></td><td id="r7c21"></td><td id="r7c22"></td><td id="r7c23"></td><td id="r7c24"></td><td id="r2c25"></td><td id="r7c26"></td><td id="r7c27"></td><td id="r7c28"></td><td id="r7c29"></td><td id="r7c30"></td><td id="r7c31"></td><td id="r7c32"></td><td id="r7c33"></td><td id="r7c34"></td><td id="r7c35"></td><td id="r7c36"></td><td id="r7c37"></td><td id="r7c38"></td><td id="r7c39"></td><td id="r7c40"></td><td id="r7c41"></td><td id="r7c42"></td><td id="r7c43"></td><td id="r7c44"></td><td id="r7c45"></td><td id="r7c46"></td><td id="r7c47"></td><td id="r7c48"></td><td id="r7c49"></td><td id="r7c50"></td><td id="r7c51"></td><td id="r7c52"></td><td id="r7c53"></td><td id="r7c54"></td><td id="r7c55"></td><td id="r7c56"></td><td id="r7c57"></td><td id="r7c58"></td><td id="r7c59"></td><td id="r7c60"></td><td id="r7c61"></td></tr>
    <tr><td height="7" id="r8c1"></td><td id="r8c2"></td><td id="r8c3"></td><td id="r8c4"></td><td id="r8c5"></td><td id="r8c6"></td><td id="r8c7"></td><td id="r8c8"></td><td id="r8c9"></td><td id="r8c10"></td><td id="r8c11"></td><td id="r8c12"></td><td id="r8c13"></td><td id="r8c14"></td><td id="r8c15"></td><td id="r8c16"></td><td id="r8c17"></td><td id="r8c18"></td><td id="r8c19"></td><td id="r8c20"></td><td id="r8c21"></td><td id="r8c22"></td><td id="r8c23"></td><td id="r8c24"></td><td id="r2c25"></td><td id="r8c26"></td><td id="r8c27"></td><td id="r8c28"></td><td id="r8c29"></td><td id="r8c30"></td><td id="r8c31"></td><td id="r8c32"></td><td id="r8c33"></td><td id="r8c34"></td><td id="r8c35"></td><td id="r8c36"></td><td id="r8c37"></td><td id="r8c38"></td><td id="r8c39"></td><td id="r8c40"></td><td id="r8c41"></td><td id="r8c42"></td><td id="r8c43"></td><td id="r8c44"></td><td id="r8c45"></td><td id="r8c46"></td><td id="r8c47"></td><td id="r8c48"></td><td id="r8c49"></td><td id="r8c50"></td><td id="r8c51"></td><td id="r8c52"></td><td id="r8c53"></td><td id="r8c54"></td><td id="r8c55"></td><td id="r8c56"></td><td id="r8c57"></td><td id="r8c58"></td><td id="r8c59"></td><td id="r8c60"></td><td id="r8c61"></td></tr>
    <tr><td height="7" id="r9c1"></td><td id="r9c2"></td><td id="r9c3"></td><td id="r9c4"></td><td id="r9c5"></td><td id="r9c6"></td><td id="r9c7"></td><td id="r9c8"></td><td id="r9c9"></td><td id="r9c10"></td><td id="r9c11"></td><td id="r9c12"></td><td id="r9c13"></td><td id="r9c14"></td><td id="r9c15"></td><td id="r9c16"></td><td id="r9c17"></td><td id="r9c18"></td><td id="r9c19"></td><td id="r9c20"></td><td id="r9c21"></td><td id="r9c22"></td><td id="r9c23"></td><td id="r9c24"></td><td id="r9c25"></td><td id="r9c26"></td><td id="r9c27"></td><td id="r9c28"></td><td id="r9c29"></td><td id="r9c30"></td><td id="r9c31"></td><td id="r9c32"></td><td id="r9c33"></td><td id="r9c34"></td><td id="r9c35"></td><td id="r9c36"></td><td id="r9c37"></td><td id="r9c38"></td><td id="r9c39"></td><td id="r9c40"></td><td id="r9c41"></td><td id="r9c42"></td><td id="r9c43"></td><td id="r9c44"></td><td id="r9c45"></td><td id="r9c46"></td><td id="r9c47"></td><td id="r2c48"></td><td id="r9c49"></td><td id="r9c50"></td><td id="r9c51"></td><td id="r9c52"></td><td id="r9c53"></td><td id="r9c54"></td><td id="r9c55"></td><td id="r9c56"></td><td id="r8c57"></td><td id="r9c58"></td><td id="r9c59"></td><td id="r9c60"></td><td id="r9c61"></td></tr>
    <tr><td height="7" id="r10c1"></td><td id="r10c2"></td><td id="r10c3"></td><td id="r10c4"></td><td id="r10c5"></td><td id="r10c6"></td><td id="r10c7"></td><td id="r10c8"></td><td id="r10c9"></td><td id="r2c10"></td><td id="r10c11"></td><td id="r10c12"></td><td id="r10c13"></td><td id="r10c14"></td><td id="r10c15"></td><td id="r10c16"></td><td id="r10c17"></td><td id="r10c18"></td><td id="r10c19"></td><td id="r10c20"></td><td id="r10c21"></td><td id="r10c22"></td><td id="r10c23"></td><td id="r10c24"></td><td id="r10c25"></td><td id="r10c26"></td><td id="r10c27"></td><td id="r10c28"></td><td id="r10c29"></td><td id="r10c30"></td><td id="r10c31"></td><td id="r10c32"></td><td id="r10c33"></td><td id="r10c34"></td><td id="r10c35"></td><td id="r10c36"></td><td id="r10c37"></td><td id="r10c38"></td><td id="r10c39"></td><td id="r10c40"></td><td id="r10c41"></td><td id="r10c42"></td><td id="r10c43"></td><td id="r10c44"></td><td id="r10c45"></td><td id="r10c46"></td><td id="r10c47"></td><td id="r10c48"></td><td id="r10c49"></td><td id="r10c50"></td><td id="r10c51"></td><td id="r10c52"></td><td id="r10c53"></td><td id="r10c54"></td><td id="r10c55"></td><td id="r10c56"></td><td id="r10c57"></td><td id="r10c58"></td><td id="r10c59"></td><td id="r10c60"></td><td id="r10c61"></td></tr>
    </table></div>
    </body>
    </html>
    and i know about the no dumpin rule but i did it to give everybody the code
    if anyone needs the js file to see how it works then just ask
    Last edited by Papa Smurf; 01-07-2005 at 10:06 PM.

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Using CODE tags would help! It is that little # sign icon when you are writing your post.
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #4
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    We need matrix_data.js to be able to test it.

  • #5
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    matrix.js

    the original matrix.js
    Code:
    data = new Array(
    1000,
    0,750,"011000110","100101001","120101201","011000110","000000000","010000010","010000010","001000100","000111000",
    0,750,"011000110","100101001","102101021","011000110","000000000","010000010","010000010","001000100","000111000",
    0,750,"011000110","100101001","120101201","011000110","000000000","010000010","010000010","001000100","000111000",
    0,250,"000000000","100010001","100101001","010101010","010101010","010101010","010101010","001000100","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000111100","000100000","000011100","000000000",
    0,250,"000000000","000010000","000010000","000010000","000010000","000010000","000010000","000010000","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000100000","000100100","000011000","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000100100","000100100","000011000","000000000",
    0,250,"000000000","000000000","000000000","011111100","010010010","010010010","010010010","010010010","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000111100","000100000","000011100","000000000",
    0,500,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    9,50,100,
    0,250,"000000000","000010000","000010000","000010000","000010000","000010000","000010000","000010000","000000000",
    0,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    1,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    2,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    0,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    1,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    2,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    0,250,"000000000","000111000","000100100","000100100","000111100","000100100","000100100","000111000","000000000",
    0,250,"000000000","000010000","000101000","000101000","001000100","001111100","001000100","010000010","000000000",
    0,250,"000000000","000111000","000100100","000100100","000111100","000100100","000100100","000111000","000000000",
    0,250,"000000000","001111110","001000000","001000000","001111110","001000000","001000000","001111110","000000000",
    0,250,"000000000","000011000","000100100","000100000","000011000","000000100","000100100","000011000","000000000",
    3,100,100,
    0,100,"200000000","000002020","000010000","020111000","000111000","001111100","011111110","010020010","000000000",
    0,100,"000200000","200000000","000012020","000111000","020111000","001111100","011111110","010000010","000020000",
    0,100,"000000000","000200000","200010000","000111020","000111000","021111100","011111110","010000010","000000000",
    0,100,"020000022","000000000","000210000","200111000","000111020","001111100","011111110","010000010","000000000",
    0,100,"000000222","020000022","000010000","000111000","200111000","001111120","011111110","010000010","000000000",
    0,100,"000002222","000000222","020100022","001110000","001110000","211111000","111111120","100000100","000000000",
    0,100,"002002222","000002222","001000222","011100022","011100000","111110000","111111000","000021200","000000000",
    0,100,"000000222","002002222","100002222","110000222","110000022","111000000","111100000","200100000","000020200",
    0,100,"000200022","000000222","102002222","110002222","110000222","111000022","111100000","000100000","200000000",
    0,100,"000000000","000200022","100000222","112002222","110002222","111000222","111100022","000100000","000000000",
    0,100,"000000000","000000000","100200022","110000222","112002222","111002222","111100222","200100022","000000000",
    0,100,"000000000","000000000","100000000","110200022","110000222","111002222","111102222","000100222","200000022",
    0,100,"000000002","000000000","100000000","110000000","110200022","111000222","111102222","000102222","000000222",
    0,100,"000000002","000000002","100000000","110000000","110000000","111200022","111100222","002102222","000002222",
    0,100,"000000002","000000002","100000002","110000000","110000000","111000000","111100022","000100222","002002222",
    0,100,"000000022","000000002","100000002","110000002","110000000","111000000","111100000","000100022","000000222",
    0,100,"000000222","000000022","001000002","011100002","011100002","111110000","111111000","000001000","000200022",
    0,100,"002222222","000000222","000100022","001110002","001110002","011111002","111111100","100000100","000000000",
    0,100,"222222222","002222222","000100222","001110022","001110002","011111002","111111102","100000100","000000000",
    0,100,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    0,100,"000000000","010000100","000000000","000110000","100011000","000010000","001000011","001001000","000001000",
    0,100,"100000010","000000000","000011000","000000000","000000110","000000100","000000001","001000000","001001000",
    0,100,"000000000","000011000","000000000","000000000","000000001","000000001","000000000","000000000","001000000",
    0,100,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    9,100,50,
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"002002000","002020000","011111000","010001110","010111001","010111001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"020020000","002020000","011111000","010001110","010101001","010101001","010101110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"002002000","002020000","011111000","010001110","010111001","010011001","010111110","010111000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"020020000","002020000","011111000","010001110","010111001","010011001","010111110","010111000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"020020000","002020000","011111000","010001110","010111001","010011001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"002002000","002020000","011111000","010001110","010111001","010011001","010111110","010001000","011111000",
    0,500,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010101001","010001001","010011110","010101000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    0,250,"020020000","002020000","011111000","010001110","010101001","010101001","010101110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010111001","010111001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010101110","010101001","010011001","010101110","010101000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","011001110","010111001","011011001","011101110","010011000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000", 
    3,100,50,
    "Fin");
    ok and her is the new one, i shortened it so that it only does the random function
    Code:
     data = new Array(
    1000,
    9,50,100,
    3,100,100,
    9,100,50,
    3,100,50,
    "Fin");

  • #6
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anyone help?

  • #7
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Okay, this works for me in Firefox
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    	<head>
    		<title>49946</title>
    
    		<script type="text/javascript">
    var data = new Array(
    1000,
    0,750,"011000110","100101001","120101201","011000110","000000000","010000010","010000010","001000100","000111000",
    0,750,"011000110","100101001","102101021","011000110","000000000","010000010","010000010","001000100","000111000",
    0,750,"011000110","100101001","120101201","011000110","000000000","010000010","010000010","001000100","000111000",
    0,250,"000000000","100010001","100101001","010101010","010101010","010101010","010101010","001000100","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000111100","000100000","000011100","000000000",
    0,250,"000000000","000010000","000010000","000010000","000010000","000010000","000010000","000010000","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000100000","000100100","000011000","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000100100","000100100","000011000","000000000",
    0,250,"000000000","000000000","000000000","011111100","010010010","010010010","010010010","010010010","000000000",
    0,250,"000000000","000000000","000000000","000011000","000100100","000111100","000100000","000011100","000000000",
    0,500,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    9,50,100,
    0,250,"000000000","000010000","000010000","000010000","000010000","000010000","000010000","000010000","000000000",
    0,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    1,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    2,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    0,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    1,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    2,100,"000000000","011000110","122101221","120212021","120020021","012000210","001202100","000121000","000010000",
    0,250,"000000000","000111000","000100100","000100100","000111100","000100100","000100100","000111000","000000000",
    0,250,"000000000","000010000","000101000","000101000","001000100","001111100","001000100","010000010","000000000",
    0,250,"000000000","000111000","000100100","000100100","000111100","000100100","000100100","000111000","000000000",
    0,250,"000000000","001111110","001000000","001000000","001111110","001000000","001000000","001111110","000000000",
    0,250,"000000000","000011000","000100100","000100000","000011000","000000100","000100100","000011000","000000000",
    3,100,100,
    0,100,"200000000","000002020","000010000","020111000","000111000","001111100","011111110","010020010","000000000",
    0,100,"000200000","200000000","000012020","000111000","020111000","001111100","011111110","010000010","000020000",
    0,100,"000000000","000200000","200010000","000111020","000111000","021111100","011111110","010000010","000000000",
    0,100,"020000022","000000000","000210000","200111000","000111020","001111100","011111110","010000010","000000000",
    0,100,"000000222","020000022","000010000","000111000","200111000","001111120","011111110","010000010","000000000",
    0,100,"000002222","000000222","020100022","001110000","001110000","211111000","111111120","100000100","000000000",
    0,100,"002002222","000002222","001000222","011100022","011100000","111110000","111111000","000021200","000000000",
    0,100,"000000222","002002222","100002222","110000222","110000022","111000000","111100000","200100000","000020200",
    0,100,"000200022","000000222","102002222","110002222","110000222","111000022","111100000","000100000","200000000",
    0,100,"000000000","000200022","100000222","112002222","110002222","111000222","111100022","000100000","000000000",
    0,100,"000000000","000000000","100200022","110000222","112002222","111002222","111100222","200100022","000000000",
    0,100,"000000000","000000000","100000000","110200022","110000222","111002222","111102222","000100222","200000022",
    0,100,"000000002","000000000","100000000","110000000","110200022","111000222","111102222","000102222","000000222",
    0,100,"000000002","000000002","100000000","110000000","110000000","111200022","111100222","002102222","000002222",
    0,100,"000000002","000000002","100000002","110000000","110000000","111000000","111100022","000100222","002002222",
    0,100,"000000022","000000002","100000002","110000002","110000000","111000000","111100000","000100022","000000222",
    0,100,"000000222","000000022","001000002","011100002","011100002","111110000","111111000","000001000","000200022",
    0,100,"002222222","000000222","000100022","001110002","001110002","011111002","111111100","100000100","000000000",
    0,100,"222222222","002222222","000100222","001110022","001110002","011111002","111111102","100000100","000000000",
    0,100,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    0,100,"000000000","010000100","000000000","000110000","100011000","000010000","001000011","001001000","000001000",
    0,100,"100000010","000000000","000011000","000000000","000000110","000000100","000000001","001000000","001001000",
    0,100,"000000000","000011000","000000000","000000000","000000001","000000001","000000000","000000000","001000000",
    0,100,"000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000","000000000",
    9,100,50,
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010111001","010111001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"020020000","002020000","011111000","010001110","010101001","010101001","010101110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010111001","010011001","010111110","010111000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"020020000","002020000","011111000","010001110","010111001","010011001","010111110","010111000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"020020000","002020000","011111000","010001110","010111001","010011001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010111001","010011001","010111110","010001000","011111000",
    0,500,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010101001","010001001","010011110","010101000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"020020000","002020000","011111000","010001110","010101001","010101001","010101110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010001110","010111001","010111001","010111110","010001000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","010101110","010101001","010011001","010101110","010101000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    0,250,"002002000","002020000","011111000","011001110","010111001","011011001","011101110","010011000","011111000",
    0,250,"002002000","002020000","011111000","011111110","011111001","011111001","011111110","011111000","011111000",
    3,100,50,
    "Fin");
    		</script>
    		<script type="text/javascript">
    			var loops = 1;
    			var def_Int = data[0];
    			var abs_pos;
    			var b;
    			var f;
    			var random_count;
    			var random_Int;
    			var randInt;
    			var vu_count;
    			var vu_Int;
    
    			function do_loop()
    			{
    				var w = data[loops];
    				if ((w == 0) || (w == 1) || (w == 2))
    				{
    					def_Int = data[loops+1];
    					do_handDrawn(w);
    					loops = loops + 11;
    					return;
    				}
    
    				if (w == 3)
    				{
    					vu_count = data[loops+1];
    					vu_Int = data[loops+2];
    					do_vu();
    					return;
    				}
    
    				if (w == 9)
    				{
    					random_count = data[loops+1];
    					random_Int = data[loops+2];
    					do_Random();
    					return;
    				}
    
    				if (data[loops] == "Fin")
    				{
    					loops = 1;
    					loopInt = setTimeout("do_loop()",def_Int);
    				}
    			}
    
    			function do_handDrawn(v)
    			{
    				clearTimeout(loopInt);
    				var count = 1;
    				for (var rows = 1; rows < 10; rows++)
    				{
    					var y_pos = "r" + rows;
    					for (var cols = 1; cols<10; cols++)
    					{
    						abs_pos = y_pos + "c" + cols;
    						var a = data[(loops+1)+count];
    						b = a.substr(cols-1,1);
    						b = parseInt(b);
    
    						if (v == 0)
    						{
    							paint_block();
    						}
    
    						if (v == 1)
    						{
    							b = b + 1;
    							if (b >= 3)
    							{
    								b = b-3;
    							}
    							paint_block();
    						}
    
    						if (v == 2)
    						{
    							b = b + 2;
    							if (b >= 3)
    							{
    								b = b-3;
    							}
    							paint_block();
    						}
    					}
    					count++;
    				}
    				loopInt = setTimeout("do_loop()",def_Int);
    			}
    
    			function do_Random()
    			{
    				clearTimeout(loopInt);
    				var count = 1;
    				for (var rows = 1; rows < 10; rows++)
    				{
    					var y_pos = "r" + rows;
    					for (var cols = 1; cols < 10; cols++)
    					{
    						abs_pos = y_pos + "c" + cols;
    						b = Math.round((Math.random()*10)/5);
    						paint_block();
    					}
    					count++;
    				}
    				random_count--;
    				randInt = setTimeout("do_Random()",random_Int);
    				if (random_count <= 0)
    				{
    					clearTimeout(randInt);
    					loops = loops + 3;
    					loopInt = setTimeout("do_loop()",random_Int);
    				}
    			}
    
    			function do_vu()
    			{
    				var temp = new Array();
    				for (var y = 0; y < 10; y++)
    				{
    					var a = "";
    					var t = Math.round(Math.random()*9);
    					for (var q=0;q<=t;q++)
    					{
    						a = a + "2";
    					}
    					var u = a.substr(0,a.length-2);
    					u = u + "11";
    					a = u;
    					if (a.length < 9)
    					{
    						for (var p=a.length;p<=9;p++)
    						{
    							a = a + "0";
    						}
    					}
    					temp[y] = a;
    				}
    				var count = 0;
    				clearTimeout(loopInt);
    				for (var rows = 1; rows < 10; rows++)
    				{
    					var y_pos = "r" + (10-rows);
    					for (var cols = 1; cols<10; cols++)
    					{
    						abs_pos = y_pos + "c" + cols;
    						a = temp[cols];
    						b = a.substr((rows-1),1);
    						b = parseInt(b);
    						paint_block();
    					}
    					count++;
    				}
    				vu_count--;
    				var vuInt = setTimeout("do_vu()",vu_Int);
    				if (vu_count <= 0)
    				{
    					clearTimeout(vuInt);
    					loops = loops + 3;
    					loopInt = setTimeout("do_loop()",vu_Int);
    				}
    			}
    
    			function paint_block()
    			{
    				f = document.getElementById(abs_pos).style;
    				if (b==0)
    				{
    					f.backgroundColor = "#FFFFFF";
    				}
    				else if (b==1)
    				{
    					f.backgroundColor = "#9f9f9f";
    				}
    				else
    				{
    					f.backgroundColor = "#1AA0FF";
    				}
    			}
    			// set interval in ms
    			var loopInt = setTimeout("do_loop()",def_Int);
    		</script>
    
    		<style type="text/css">
    			tr
    			{
    				height:12px;
    			}
    			td
    			{
    				width:12px;
    			}
    		</style>
    	</head>
    	<body>
    		<table>
    			<tbody>
    				<tr><td id="r1c1"></td><td id="r1c2"></td><td id="r1c3"></td><td id="r1c4"></td><td id="r1c5"></td><td id="r1c6"></td><td id="r1c7"></td><td id="r1c8"></td><td id="r1c9"></td></tr>
    				<tr><td id="r2c1"></td><td id="r2c2"></td><td id="r2c3"></td><td id="r2c4"></td><td id="r2c5"></td><td id="r2c6"></td><td id="r2c7"></td><td id="r2c8"></td><td id="r2c9"></td></tr>
    				<tr><td id="r3c1"></td><td id="r3c2"></td><td id="r3c3"></td><td id="r3c4"></td><td id="r3c5"></td><td id="r3c6"></td><td id="r3c7"></td><td id="r3c8"></td><td id="r3c9"></td></tr>
    				<tr><td id="r4c1"></td><td id="r4c2"></td><td id="r4c3"></td><td id="r4c4"></td><td id="r4c5"></td><td id="r4c6"></td><td id="r4c7"></td><td id="r4c8"></td><td id="r4c9"></td></tr>
    				<tr><td id="r5c1"></td><td id="r5c2"></td><td id="r5c3"></td><td id="r5c4"></td><td id="r5c5"></td><td id="r5c6"></td><td id="r5c7"></td><td id="r5c8"></td><td id="r5c9"></td></tr>
    				<tr><td id="r6c1"></td><td id="r6c2"></td><td id="r6c3"></td><td id="r6c4"></td><td id="r6c5"></td><td id="r6c6"></td><td id="r6c7"></td><td id="r6c8"></td><td id="r6c9"></td></tr>
    				<tr><td id="r7c1"></td><td id="r7c2"></td><td id="r7c3"></td><td id="r7c4"></td><td id="r7c5"></td><td id="r7c6"></td><td id="r7c7"></td><td id="r7c8"></td><td id="r7c9"></td></tr>
    				<tr><td id="r8c1"></td><td id="r8c2"></td><td id="r8c3"></td><td id="r8c4"></td><td id="r8c5"></td><td id="r8c6"></td><td id="r8c7"></td><td id="r8c8"></td><td id="r8c9"></td></tr>
    				<tr><td id="r9c1"></td><td id="r9c2"></td><td id="r9c3"></td><td id="r9c4"></td><td id="r9c5"></td><td id="r9c6"></td><td id="r9c7"></td><td id="r9c8"></td><td id="r9c9"></td></tr>
    			</tbody>
    		</table>
    	</body>
    </html>
    One thing to keep in mind is I don't know (in every case) what variables are suppose to be local and what variables are suppose to be global, as you didn't declare any variables. I'll keep fiddling with it to see if I can figure it out and clean it up a bit.


  •  

    Posting Permissions

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