Advertisement
salmancreation

Demo Panel in HTML (Masud Zakaria )

Aug 16th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BY: Masud Zakaria
  2.  
  3. ata khothen kesu na color a click korla body ta akta class jog hoba oi class dhora kj korta hoba.... HTML code: <div class="color_swicer">
  4. <h2>choose color</h2>
  5. <ul id="switcher">
  6. <li id="skyButton"></li>
  7. <li id="greenButton"></li>
  8. <li id="redButton"></li>
  9. <li id="blueButton"></li>
  10. </ul>
  11. <h3 class="swice"><span><i class="fa fa-cog"></i></span></h3>
  12. </div> ata hoccha class jog houar code: $(document).ready(function(){
  13. $('#skyButton').click(switchGray);
  14. $('#greenButton').click(switchWhite);
  15. $('#redButton').click(switchBlue);
  16. $('#blueButton').click(switchYellow);
  17.  
  18. function switchGray() {
  19. $('body').attr('class', 'sky');
  20. }
  21.  
  22. function switchWhite() {
  23. $('body').attr('class', 'green');
  24. }
  25.  
  26. function switchBlue() {
  27. $('body').attr('class', 'red');
  28. }
  29.  
  30. function switchYellow() {
  31. $('body').attr('class', 'blue');
  32. }
  33. }); ar ata hoccha click korla animated side bar ar code: // color swice
  34. $(".swice").click( function(event){
  35. event.preventDefault();
  36. if ( $(this).hasClass("isDown") ) {
  37. $(".color_swicer").stop().animate({left:"-200px"}, 500);
  38. } else {
  39. $(".color_swicer").stop().animate({left:"0px"}, 500);
  40. }
  41. $(this).toggleClass("isDown");
  42. return false;
  43. }); and css code: background: none repeat scroll 0 0 #fff;
  44. display: block;
  45. height: 340px;
  46. left: -200px;
  47. padding: 20px;
  48. position: fixed;
  49. top: 25%;
  50. width: 200px;
  51. z-index: 99999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement