Posted By

digitalzoomstudio on 05/18/11


Tagged

template start jquery


Versions (?)

My jQuery plugin start up


 / Published in: JavaScript
 

  1. /*
  2.  * Author: Digital Zoom Studio
  3.  * Website: http://digitalzoomstudio.net/
  4.  * Portfolio: http://codecanyon.net/user/ZoomIt/portfolio
  5.  */
  6.  
  7. (function($) {
  8. $.fn.scroller = function(o) {
  9.  
  10. var defaults = {
  11. length: 300,
  12. minTrail: 20,
  13. moreText: "more",
  14. lessText: "less",
  15. ellipsisText: "..."
  16. };
  17. var o = $.extend(defaults, o);
  18.  
  19. this.each( function() {
  20.  
  21. //console.log(this);
  22. return this;
  23. });
  24. };
  25. })(jQuery);

Report this snippet  

You need to login to post a comment.