Week 3 – JavaScript Excercise -Daisy Chen

Link:http://imanas.shanghai.nyu.edu/~qc532/week03-js/

In this weekly assignment, I tried basic js functions (like loading img and innerHTML) as well as css learned previously. For the caption change part, I change each one of the style attributes in js (fontsize, border,etc). I wonder whether is an easier way to make it. For example, change the css style of one box with one line of code in js. It also helped me understand the difference between id and class. Class is more often used in CSS while id is more often used in js (maybe).

  

Leave a Reply