Intro JavaScript: Dynamic Table (Andy Warhol Inspired)
In this video we look at an HTML page that has a table with img elements in the cells. The image source files are transparent gifs, so the color of the cell shows through. The JavaScript allows the user to add a row to the table or to add a column to the table. The JavaScript also allows the user to specify one of the cells by selecting its row and column and then either changing the src of the image (change the picture) or changing the color of the td element (table cell).
In this video we look at an HTML page that has a table with img elements in the cells. The image source files are transparent gifs, so the color of the cell shows through. The JavaScript allows the user to add a row to the table or to add a column to the table. The JavaScript also allows the user to specify one of the cells by selecting its row and column and then either changing the src of the image (change the picture) or changing the color of the td element (table cell).