Louis, you'll definitely want to look at Quirksmode:

http://www.quirksmode.org/js/



On Feb 3, 2006, at 3:01 PM, Louis Walch wrote:

im not a javascript programmer... so be nice.

scriptaclous uses a differnt format for writing functions and code then i am used to. are there books or tutorials for helping a beginner understand
how to write like this and what everything is?

that said... i was readding this webpage:
http://particletree.com/features/lightbox-gone-wild/

and had a question about this function:
initialize: function(ctrl) {
    this.content = ctrl.href;
Event.observe(ctrl, 'click', this.activate.bindAsEventListener (this),
false);
    ctrl.onclick = function(){return false;};
},

im totally stumped, this along with most of the prototype/scriptaclous
functions confuse the crap out of me.

is this.contnet all the href tags on the entire page? and is adding an
Event.observe to everyone of them? what is ctrl.click, and how does it
know to use that?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to