Login/Subcribe Box dengan Jquery Show

Image result for login button



DEMO


  • Letakan Kode Css Berikut ini, tepat sebelum kode ]]></b:skin>

  1. .formcontent{
  2. font-family:Verdana;
  3. display:inline-block;
  4. width:350px;
  5. background-color:#ffffff;
  6. margin:10px;
  7. padding:5px;
  8. vertical-align:top;
  9. }
  10. .inputstyle{
  11. background-color:#FEEBC6;
  12. border:none;
  13. padding:3px;
  14. }
  15. .actionderoule{
  16. cursor:pointer;
  17. font-size:25px;
  18. font-weight:300;
  19. color:#666666;
  20. }
  21. .actionenroule{
  22. cursor:pointer;
  23. font-size:15px;
  24. color:#cb2025;
  25. line-height:15px;
  26. }
  • Copy / Paste JavaScript di bawah ini , Tepat di atas kode </head>

  1. $(document).ready(function(){
  2. $('.actionderoule').on( 'click',function(){
  3. var cible = $(this).attr('cible');
  4. $('.deroule_'+cible).show("slow");
  5. $(this).hide("fast");
  6. });
  7. $('.actionenroule').on( 'click',function(){
  8. var cible = $(this).attr('cible');
  9. $('.deroule_'+cible).hide("fast");
  10. $('.conteneur_'+cible).children('.actionderoule').show("slow");
  11. });
  12. });
  • Lalu Pasang HTML kode berikut sesuai kemauan kalian, bisa di mana saja

  1. <div align='center'>
  2. <div class='conteneur_form1 formcontent'><div class='actionderoule' cible='form1'>
  3. Click here to login</div>
  4. <div style='display:none; font-size:14px;' class='deroule_form1'>
  5. <h2 style='margin:0; color:#00a096; border-bottom:1px solid #005046;'>Login
  6. <div style='position:relative; float:right;'><em><span class='actionenroule' cible='form1'>
  7. X Cancel
  8. </span></em></div>
  9. </h2>
  10. <br>
  11. <input type="text" name="myinput1" value="" class="inputstyle" size="30" placeholder='Your email adress'>
  12. <br>
  13. <input type="text" name="myinput2" value="" class="inputstyle" size="30" placeholder='Your password'>
  14. <br><br>
  15. <input type="submit" value="Login">
  16. </div>
  17. </div>
  18. <div class='conteneur_form2 formcontent'><div class='actionderoule' cible='form2'>
  19. Click here to subscribe</div>
  20. <div style='display:none; font-size:14px;' class='deroule_form2'>
  21. <h2 style='margin:0; color:#00a096; border-bottom:1px solid #005046;'>Subscribe
  22. <div style='position:relative; float:right;'><em><span class='actionenroule' cible='form2'>
  23. X Cancel</span></em></div>
  24. </h2>
  25. <br>
  26. <input type="text" name="myinput1" value="" class="inputstyle" size="30" placeholder='Your Name'>
  27. <br>
  28. <input type="text" name="myinput2" value="" class="inputstyle" size="30" placeholder='Your email adress'>
  29. <br>
  30. <input type="text" name="myinput3" value="" class="inputstyle" size="30" placeholder='Your password'>
  31. <br><br>
  32. <input type="submit" value="Subscribe">
  33. </div>
  34. </div>
  35. </div>
  • Lalu pasang Jquery Library beirkut

http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
NOTE :
- Jangan Pasang Jquery di atas bila telah terpasang di Template kalian

SELAMAT MENCOBA.....| Jangan lupa Berkomentar ya...
Previous
Next Post »
bagikan
no image
Item Reviewed: Login/Subcribe Box dengan Jquery Show 9 out of 10 based on 10 ratings. 9 user reviews.
no image
Item Reviewed: Login/Subcribe Box dengan Jquery Show 9 out of 10 based on 10 ratings. 9 user reviews.

Peringatan saat berkomentar :
1.Jangan Spam di komentar
2.Link aktif akan terhapus secara sendirinya
3.Gunakan bahasa yang sopan saat berkomentar

Cukup gitu Doank Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon

Thanks for your comment