shababshihan

কাষ্টম কন্টাক্ট ফরম (পপ আপ) তৈরী

May 6th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. কাষ্টম কন্টাক্ট ফরম(পপ আপ) তৈরী করব কিভাবেঃ
  2. ===============================
  3. ধাপ--১ঃ HTML মার্কপ & CSS ষ্টাইল রেডি করা ।
  4. ------
  5. ধাপ--২ঃ বডি তে jQuery কল করে jQuery ফাইলে কমান্ড করা ।
  6. ------
  7. যেমনঃ
  8. HTML মার্কপঃ
  9. ================================
  10. <div class="fix body_content">
  11. <div class="fix contact_section section" id="contact">
  12. <h2>Contact Us</h2>
  13. <button type="button" id="contact_btn">Register Here !</button>
  14. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  15. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  16. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  17. </div>
  18. </div>
  19. <!-- Contact Content Area Here -->
  20. <div class="contact_content_area fix">
  21. <div class="content_overly">
  22. <button type="button" id="contact_close"><i class="fa fa-times"></i></button>
  23. <div class="contact_content_wrapper fix">
  24. <div class="contact_content fix">
  25. <form action="">
  26. <input type="text" placeholder="Your Full Name" class="contact_input" />
  27. <input type="text" placeholder="Your Email Address" class="contact_input" />
  28. <input type="text" placeholder="Your Company Name" class="contact_input" />
  29. <input type="text" placeholder="Your Phone Number" class="contact_input" />
  30. <textarea name="" placeholder="Your Message" id="" cols="30" rows="10" class="contact_message"></textarea>
  31. <input type="submit" value="Submit Your Form" class="contact_submit" />
  32. </form>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <!-- Contact Content Area Here -->
  38.  
  39. ==========================================================================================
  40. CSS ষ্টাইলঃ
  41.  
  42. /* Custom Contact Popup Style */
  43. button#contact_btn{
  44. margin: 0 auto;
  45. width: 50%;
  46. display: block;
  47. padding: 10px;
  48. font-size: 25px;
  49. line-height: 30px;
  50. text-transform: uppercase;
  51. background: #000;
  52. color: #fff;
  53. border: 0px solid #fff;
  54. border-radius: 10px;
  55. cursor: pointer;
  56. }
  57. button#contact_btn:focus{outline:0;}
  58. .contact_content_area{
  59. position: fixed;
  60. top: 0px;
  61. left: 0px;
  62. width: 100%;
  63. height: 100%;
  64. background: rgba(0, 0, 0, 0.9);
  65. z-index: 9999;
  66. display: none;
  67. }
  68. .contact_content_wrapper{
  69. width: 800px;
  70. margin: 0 auto;
  71. padding: 5% 0%;
  72. }
  73. .contact_content{}
  74. input.contact_input{
  75. display: block;
  76. width: 96%;
  77. padding: 2%;
  78. border: 0px solid #fff;
  79. margin-bottom: 15px;
  80. background: rgba(255, 255, 255, 0.9);
  81. }
  82. textarea.contact_message{
  83. display: block;
  84. width: 96%;
  85. padding: 2%;
  86. border: 0px solid #fff;
  87. margin-bottom: 15px;
  88. height: 120px;
  89. background: rgba(255, 255, 255, 0.9);
  90. }
  91. input.contact_submit{
  92. display: block;
  93.  
  94. width: 100%;
  95. padding: 2%;
  96. border: 0px solid #fff;
  97. margin-bottom: 15px;
  98. font-size: 30px;
  99. text-transform: uppercase;
  100. cursor: pointer;
  101. }
  102. .content_overly{
  103. position:fix;
  104. width:100%;
  105. height:100%;
  106. }
  107. =====================================================
  108. jQuery ফাইলে কমান্ডঃ
  109. -----------------
  110. // jQuery For Custom Contact Form
  111. $(document).ready(function() {
  112. $('button#contact_btn').on('click', function() {
  113. $(this).parents('div.body_content').next('div.contact_content_area').fadeIn(500);
  114. });
  115. $('button#contact_close, .content_overly').on('click', function() {
  116. $(this).parent('div.contact_content_area').fadeOut(500);
  117. });
  118. });
Advertisement
Add Comment
Please, Sign In to add comment