My jQuery plugin start up


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.