Monday, March 31, 2014

JQuery

I thought it would be a good idea to work on your suggestions and I mostly completed your challenge for the vanish assignment. Originally I had tried to do something overly complicated and it didn't work but apparently there is a hidden selector which is really useful in this case. Anyway, if you click the button different squares fade in.
http://students.gctaa.net/~snicholakos/webgraphics/jquery_ex1.html

Also, I quickly looked at the JQuery zoo which was very useful and I found this function which may come in handy
$.fn.toggleClick = function() {
    var events = arguments;
    var iteration = 0;
          
    return $(this).click(function() {
        events[iteration].apply(this, arguments);
        iteration = (iteration + 1) % events.length;
    });
};

1 comment:

  1. hi every1 im new!!!!!!! holds up spork my name is alex but u can call me t3h PeNgU1N oF d00m!!!!!!!! lol…as u can see im very random!!!! thats why i came here, 2 meet random ppl like me _… im 15 years old (im mature 4 my age tho!!) i like 2 code javascript its my favorite tv language!!! bcuz its SOOOO random!!!! i want 2 meet more random ppl =) like they say the more the merrier!!!! lol…neways i hope 2 make alot of freinds here so give me lots of commentses!!!!
    DEL C:\!!!!!!!!!!!!!!!! <—- me bein random again _^ hehe…toodles!!!!!

    ReplyDelete