|
Helping ordinary people create extraordinary websites! |
Top 10 Custom JavaScript Functions Of All TimeBy Dustin Diaz2006-08-22
6) toggle() To be totally honest, there are probably more variations of this function than there needs to be. The history of ‘toggling’ basically comes down to showing/hiding an element upon an event being fired. To make matters much simpler, I too have put one together. But by no means is it considered the ultimate toggle function, but it does do the basic functionality of showing and hiding. toggle() by the masses
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… |
|