Would someone be willing to walk me through the following javascript snippet, line-by-line? I do not understand what is happening exactly in the second, fourth, and sixth lines. The values being passed into the function are being picked up as an array, but I am not familiar with the syntax.

<a onclick="javascript:Effect.Combo('drawer_one', {duration: 0.5});"></a>

 Effect.Combo = function(element) {
     element = $(element);
     if(element.style.display == 'none') {
          new Effect.OpenUp(element, arguments[1] || {});
     }else {
          new Effect.CloseDown(element, arguments[1] || {});
     }
 }

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to