|
Helping ordinary people create extraordinary websites! |
Top 10 Custom JavaScript Functions Of All TimeBy Dustin Diaz2006-08-22
Last but not least, a bonus function: The Prototype Dollar Function This function straight up kicks so much ass. First of all, just look at it. Prototype function $Tell me that’s not beautiful! Short not only by name, but by reference. It not only takes in strings, it takes objects too. You can pass it one argument, or pass it many! This by far is my favorite function of all time which will provide years and years of handiness. Tutorial Pages: » Top 10 custom JavaScript functions of all time » 10) addEvent() » 9) addLoadEvent() » 8) getElementsByClass() » 7) cssQuery() » 6) toggle() » 5) insertAfter() » 4) inArray() » 3, 2, & 1) getCookie(), setCookie(), deleteCookie() » Last but not least, a bonus function: The Prototype Dollar Function » And so will they all… |
|