Simply Program

Simply programming - It’s a life style
Filed under Programming, Javascript

Just an example.

CODE:
  1. /**
  2. * Collects all inner elements and resizes accordingly.
  3. * @method resizeAll
  4. */
  5. this.resizeAll = function () {
  6. var tempEL = el;
  7. var tempObj = tempEL.getElementsByTagName("img");
  8. for(i=0;i<tempObj.length;i++){
  9. var tempAnimation = new YAHOO.util.Anim(tempObj[i].getAttribute("id"), this.attributes, this.duration, this.method);
  10. tempAnimation.animate();
  11. }
  12. var tempObj = tempEL.getElementsByTagName("input");
  13. for(i=0;i<tempObj.length;i++){
  14. var tempAnimation = new YAHOO.util.Anim(tempObj[i].getAttribute("id"), this.attributes, this.duration, this.method);
  15. tempAnimation.animate();
  16. }
  17.  
  18. }

Posted by sp on Friday, May 23rd, 2008


You can follow any responses to this entry through the magic of "RSS 2.0" and leave a trackback from your own site.