shababshihan

চমৎকার দুইটা jQuery প্লাগিন এর ব্যাবহারঃ

May 5th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. চমৎকার দুইটা jQuery প্লাগিন এর ব্যাবহারঃ
  2.  
  3. ১/ single-page-nav-master
  4. ২/ jquery.nicescroll-master
  5.  
  6.  
  7. ******single-page-nav-master এর ব্যাবহার******
  8. --------------------------------------------------
  9.  
  10. ধাপ-১ঃ প্রথমে এই লিঙ্ক থেকে https://github.com/ChrisWojcik/single-page-nav , single-page-nav-master এর প্লাগিন টি download করলাম ।
  11. ----
  12. ধাপ-২ঃ মুল ফোল্ডারে এর মধ্যে প্লাগিন এর একটি ফোল্ডার নিলাম ।
  13. -----
  14. ধাপ-৩ঃ index.html ফাইলে body তে main.js যেখানে আছে তার উপরে প্লাগিন টি কল করলাম <script type="text/javascript" src="jquery.singlePageNav.min.js"></script>
  15. -----
  16. ধাপ-৪ঃ main.js ফাইলে প্লাগিন টির কাস্তমাইজ করলাম । প্লাগিন টির অনেক গুলো প্যারামিটার আছে, চাহিদা অনুযায়ী প্যারামিটার ব্যাবহার করলাম ।
  17. -----
  18. নিম্নে jQuery কোড গুলঃ
  19. // One page Navigation
  20. $(document).ready(function() {
  21. $('ul#nav_menu').singlePageNav({
  22. offset: $('div.main_menu_area').outerHeight(),
  23. speed: 800,
  24. currentClass: 'active',
  25. filter: ':not(.external)',
  26. });
  27. });
  28.  
  29. ===================================================================================================================================================
  30.  
  31. *******jquery.nicescroll-master এর ব্যাবহার*******
  32. -----------------------------------------------------------------
  33.  
  34. এই প্লাগিন দিয়ে scroll bar style করা হয় ।
  35.  
  36. ধাপ-১ঃ প্রথমে এই লিঙ্ক থেকে https://github.com/inuyaksa/jquery.nicescroll , jquery.nicescroll-master এর প্লাগিন টি download করলাম ।
  37. -----
  38. ধাপ-২ঃ মুল ফোল্ডারে এর মধ্যে প্লাগিন এর একটি ফোল্ডার নিলাম ।
  39. -----
  40. ধাপ-৩ঃ index.html ফাইলে body তে main.js যেখানে আছে তার উপরে প্লাগিন টি কল করলাম<script type="text/javascript" src="jquery.nicescroll.min.js"></script>
  41. -----
  42. ধাপ-৪ঃ main.js ফাইলে প্লাগিন টির কাস্তমাইজ করলাম । প্লাগিন টির অনেক গুলো প্যারামিটার আছে, চাহিদা অনুযায়ী প্যারামিটার ব্যাবহার করলাম ।
  43. -----
  44. নিম্নে jQuery কোড গুলঃ
  45.  
  46. // Nice Scroll Bar + Smooth Scroll
  47. $(document).ready(function() {
  48. $("html").niceScroll({
  49. cursorcolor: 'red',
  50. cursorwidth: '10px',
  51. cursorborder: '1px solid #000',
  52. cursorborderradius: '0px',
  53. zindex: '99',
  54. scrollspeed: '60',
  55. mousescrollstep: '40',
  56.  
  57. });
  58. $("#custom_scroll").niceScroll(".custom_scroll_content",{
  59. cursorcolor: 'red',
  60. cursorwidth: '10px',
  61. cursorborder: '1px solid #000',
  62. cursorborderradius: '0px',
  63. zindex: '99',
  64. scrollspeed: '60',
  65. mousescrollstep: '40',
  66. });
  67. });
Advertisement
Add Comment
Please, Sign In to add comment