Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Why isn't this in here?

Description: Enables you to append several children to an object at once. The first parameter specifies the node to append to and all preceding parameters are the nodes to be appended.

Syntax: appendChildren(parent, [,nodes])


function appendChildren() {
 if(arguments.length > 1 && arguments[0].nodeType) {
  for(var i = 1; arguments.nodeType && i < arguments.length; i ++) {
   arguments[0].appendChild(arguments);
  }
 }
}






Last Edit: Aug 5, 2006 21:34:37 GMT by Aaron

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
'cause you never submitted it. :P

Very, very useful function mate. ;)

newBookmarkLockedFalling