How to shorten javascript code?

jackroger

Banned
Jul 15, 2010
10
0
0
Hey

Hi Dp members, does anybody know how I can shorten the code I have below? Maybe shorten it to only 1 function? I have know idea how to do this :S
Thanks for helping

thanks
 


Yeah, depending on what you mean by shorten. IF you are talking about reducing the size of your code, use a compressor like YUI compressor. If you are talking about reducing the number of lines, try using a framework like jQuery or Prototype.