Monday, March 24, 2014

JQuery

I made a quick project from some of the stuff I learned so far, the button will make the blue square go away but clicking on the green square will allow the red one to reappear.

http://students.gctaa.net/~snicholakos/webgraphics/jquery_ex1.html

1 comment:

  1. I would suggest two improvements to your example:

    1. Make the red square disappear much slower (try using 3000 as an argument instead of 'fast').

    2. When you click the green square, don't make it disappear. It appears now as if it is changing colors instead of generating a new square.

    Bonus challenge: Now that you are starting to learn how to manipulate the DOM, have one of the squares generate a new square whenever you click on it, so that clicking on it 5 times will generate 5 new squares.

    ReplyDelete