Advertisement
ZetaReticuli

Contact Form Blogger

Oct 16th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.26 KB | None | 0 0
  1. <script>
  2. var blogId = '8694494030520005341';// angka ini harus diganti.
  3. //The below message 5 Strings can also be edited
  4. var contactFormMessageSendingMsg ='Mengirimkan pesan...';
  5. var contactFormMessageSentMsg = 'Pesan anda sudah berhasil terkirim.';
  6. var contactFormMessageNotSentMsg = 'Pesan tidak dapat dikirim. Mohon dicoba beberapa saat lagi.';
  7. var contactFormEmptyMessageMsg ='Pesan tidak boleh kosong.';
  8. var contactFormInvalidEmailMsg = 'Alamat email harus diisikan.'
  9.  
  10. var widgetLoaded=false;
  11. function sendEmailMsg() {
  12. if(widgetLoaded== false) {
  13. _WidgetManager._RegisterWidget('_ContactFormView', new _WidgetInfo('ContactForm1', 'sidebar', null, document.getElementById('ContactForm1'), {'contactFormMessageSendingMsg': contactFormMessageSendingMsg , 'contactFormMessageSentMsg': contactFormMessageSentMsg , 'contactFormMessageNotSentMsg': contactFormMessageNotSentMsg , 'contactFormInvalidEmailMsg': contactFormInvalidEmailMsg , 'contactFormEmptyMessageMsg': contactFormEmptyMessageMsg , 'title': 'Contact Form', 'blogId': blogId, 'contactFormNameMsg': 'Name', 'contactFormEmailMsg': 'Email', 'contactFormMessageMsg': 'Message', 'contactFormSendMsg': 'Send', 'submitUrl': 'https://www.blogger.com/contact-form.do'}, 'displayModeFull'));
  14. widgetLoaded=true;
  15. document.getElementById('ContactForm1_contact-form-submit').click();
  16. }
  17. return true;
  18. }
  19. </script>
  20. <form name='contact-form'>
  21. <div>Nama Anda : </div>
  22. <input class='contact-form-name' id='ContactForm1_contact-form-name' name='name' size='30' type='text' value=''/>
  23. <div>Alamat Email: <em>(required)</em></div>
  24. <input class='contact-form-email' id='ContactForm1_contact-form-email' name='email' size='30' type='text' value=''/>
  25. <div>Isi Pertanyaan: <em>(required)</em></div>
  26. <textarea class='contact-form-email-message' id='ContactForm1_contact-form-email-message' name='email-message' rows='5'></textarea>
  27. <p></p>
  28. <input class='contact-form-button contact-form-button-submit' id='ContactForm1_contact-form-submit' type='button' value='Send' onclick="sendEmailMsg()"/>
  29. <div style='text-align: center; max-width: 450px; width: 100%'>
  30. <p class='contact-form-error-message' id='ContactForm1_contact-form-error-message'></p>
  31. <p class='contact-form-success-message' id='ContactForm1_contact-form-success-message'></p>
  32. </div>
  33. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement