1. Login ke akun blogger.
2. Kemudian klik Tata Letak > Tambah widget > Gadget Lainnya > Formulir Kontak, lalu klik Simpan.
3. Selanjutnya adalah menyembunyikan widget contact form bawaan blogger tersebut, caranya klik Template > Edit HTML lalu cari kode ]]></b:skin> gunakan CTRL+F.
4. Copy kode berikut ini lalu paste tepat diatas kode ]]></b:skin> kemudian klik Simpan Template.
#ContactForm1 {display:none}5. Lalu langkah berikutnya adalah membuat tampilan baru widget contact form, caranya pilih salah satu kode yang ada pada blockquote lalu Copy kode tersebut selanjutnya klik Tata Letak > Tambah Widget > HTML/Javascript kemudian paste kode tersebut.
- Untuk memasang agar melayang di sudut atas kanan blog (floating contact form), berikut kodenya:
<style>- Untuk memasang widget contact form accordion pada sidebar blog, kodenya sebagai berikut:
#form-evolutions { position:fixed; top: 0; right:20px; float:right; } #contact-faceblog { height:310px; width:280px; background:#e9fbe9; border:1px solid #52e052; padding:10px; display:none; } #ContactForm1_contact-form-name{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background:#000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwclXsjvabkdnNZgkXtGBc5J_RwZw3BfJPHDodcapa-q_SbGtNFC0YqL0V1IUFLlmkRte7zol0_KfVrSHRB89DtandNWlpe34QhPIBEd1dgp-Z2sYafvMMp1qrJ1yXZ8MAQ3Mv0bwio0I/s1600/user.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgw26wHG5Oo8AF_DIjf9_C_fsUxvfIGZ49Lm_iHlgUyLwcoyK7Gu8V8pYAQAE-ddsnVfXpx_SJlAE9axyIxxyDeqip5gX6uBas9NDRuc6Xyuv2S5G6vHZoZFiBbgUG4BKxQcfRatldCw0/s1600/pen.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email-message{ width: 230px; height: 150px; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkrrSLfzYvJDfB8gb0kKcgkw-bJWGCKlPljdDI6QQXkGs6W9byxLDF0Y5UoFspsJnWLgmCHx0131Fty9mtOAVo0k_XFhslMCzvxpS4pn8NecHH3pjCoMrW_nxwYoTpef4vyQqP91LYD60/s1600/msg.png)no-repeat 10px 10px; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-submit { width: 95px; height: 30px; float: right; color: #000; font-weight: bold; padding: 0; cursor:pointer; margin: 25px 0 3px 0 0; background-color:#52e052; text-shadow: 1px 0 0 #999; border:1px solid #333; } #ContactForm1_contact-form-submit:hover { background:#00ff00; } #ContactForm1_contact-form-error-message, #ContactForm1_contact-form-success-message{ width: 230px; margin-top:30px; } #contactbutton { height:40px; width:302px; background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Rikw1UW5xSK5ddcRkv4qobTHWsnWIZrUBltZG1jOEx2hU8YnXgeMZUoae70lee64XY-dCGE6PGyQ3UqgXC9DDHXA2o7LYqrpsyc7wdtjYMK_eqJCdyHNXLsrTjnO8JWccbSbr2rZ6PU/h47/contact_button.png'); display:block; cursor:pointer; margin:auto; }
</style>
<script src="http://faceblog-evolutions.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){ $("#contactbutton").click(function(){ if ($("#contact-faceblog").is(":hidden")){ $("#contact-faceblog").slideDown("slow"); } else{ $("#contact-faceblog").slideUp("slow"); } }); }); function closeForm(){ setTimeout('$("#contact-faceblog").slideUp("slow")', 2000); }
</script>
<div id="form-evolutions">
<div id="contact-faceblog">
<form name="contact-form">
<input id="ContactForm1_contact-form-name" name="name" placeholder="Nama" size="30" type="text" value="" />
<input id="ContactForm1_contact-form-email" name="email" placeholder="Email" size="30" type="text" value="" />
<textarea cols="25" id="ContactForm1_contact-form-email-message" name="email-message" placeholder="Pesan" rows="5"></textarea>
<input id="ContactForm1_contact-form-submit" type="button" value="Kirim" />
<div style="max-width: 222px; text-align: center; width: 100%;">
<div id="ContactForm1_contact-form-error-message">
</div>
<div id="ContactForm1_contact-form-success-message">
</div>
</div>
</form>
</div>
<div id="contactbutton"></div>
</div>
<style>- Untuk memasang widget contact form accordion versi 2 pada sidebar blog, kodenya sebagai berikut:
#form-evolutions { position:relative; margin:auto; } #contact-faceblog { height:310px; width:280px; background:#e9fbe9; border:1px solid #52e052; padding:10px; display:none; margin:auto; } #ContactForm1_contact-form-name{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background:#000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwclXsjvabkdnNZgkXtGBc5J_RwZw3BfJPHDodcapa-q_SbGtNFC0YqL0V1IUFLlmkRte7zol0_KfVrSHRB89DtandNWlpe34QhPIBEd1dgp-Z2sYafvMMp1qrJ1yXZ8MAQ3Mv0bwio0I/s1600/user.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgw26wHG5Oo8AF_DIjf9_C_fsUxvfIGZ49Lm_iHlgUyLwcoyK7Gu8V8pYAQAE-ddsnVfXpx_SJlAE9axyIxxyDeqip5gX6uBas9NDRuc6Xyuv2S5G6vHZoZFiBbgUG4BKxQcfRatldCw0/s1600/pen.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email-message{ width: 230px; height: 150px; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkrrSLfzYvJDfB8gb0kKcgkw-bJWGCKlPljdDI6QQXkGs6W9byxLDF0Y5UoFspsJnWLgmCHx0131Fty9mtOAVo0k_XFhslMCzvxpS4pn8NecHH3pjCoMrW_nxwYoTpef4vyQqP91LYD60/s1600/msg.png)no-repeat 10px 10px; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-submit { width: 95px; height: 30px; float: right; color: #000; font-weight: bold; padding: 0; cursor:pointer; margin: 25px 0 3px 0 0; background-color:#52e052; text-shadow: 1px 0 0 #999; border:1px solid #333; } #ContactForm1_contact-form-submit:hover { background:#00ff00; } #ContactForm1_contact-form-error-message, #ContactForm1_contact-form-success-message{ width: 230px; margin-top:30px; } #contactbutton { height:40px; width:302px; background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Rikw1UW5xSK5ddcRkv4qobTHWsnWIZrUBltZG1jOEx2hU8YnXgeMZUoae70lee64XY-dCGE6PGyQ3UqgXC9DDHXA2o7LYqrpsyc7wdtjYMK_eqJCdyHNXLsrTjnO8JWccbSbr2rZ6PU/h47/contact_button.png'); display:block; cursor:pointer; margin:auto; }
</style>
<script src="http://faceblog-evolutions.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){ $("#contactbutton").click(function(){ if ($("#contact-faceblog").is(":hidden")){ $("#contact-faceblog").slideDown("slow"); } else{ $("#contact-faceblog").slideUp("slow"); } }); }); function closeForm(){ setTimeout('$("#contact-faceblog").slideUp("slow")', 2000); }
</script>
<div id="form-evolutions">
<div id="contact-faceblog">
<form name="contact-form">
<input id="ContactForm1_contact-form-name" name="name" placeholder="Nama" size="30" type="text" value="" />
<input id="ContactForm1_contact-form-email" name="email" placeholder="Email" size="30" type="text" value="" />
<textarea cols="25" id="ContactForm1_contact-form-email-message" name="email-message" placeholder="Pesan" rows="5"></textarea>
<input id="ContactForm1_contact-form-submit" type="button" value="Kirim" />
<div style="max-width: 222px; text-align: center; width: 100%;">
<div id="ContactForm1_contact-form-error-message">
</div>
<div id="ContactForm1_contact-form-success-message">
</div>
</div>
</form>
</div>
<div id="contactbutton"></div>
</div>
<style>6. Langkah terakhir klik Simpan.
#faceblog-contact { height: 300px; width: 302px; overflow: hidden; background-color: darkgreen; } #evolutionsbutton { height:40px; width:302px; background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Rikw1UW5xSK5ddcRkv4qobTHWsnWIZrUBltZG1jOEx2hU8YnXgeMZUoae70lee64XY-dCGE6PGyQ3UqgXC9DDHXA2o7LYqrpsyc7wdtjYMK_eqJCdyHNXLsrTjnO8JWccbSbr2rZ6PU/h47/contact_button.png'); display:block; cursor:pointer; } .form-contact { width: 322px; height: 300px; padding: 10px; margin: auto; } #ContactForm1_contact-form-name{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background:#000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwclXsjvabkdnNZgkXtGBc5J_RwZw3BfJPHDodcapa-q_SbGtNFC0YqL0V1IUFLlmkRte7zol0_KfVrSHRB89DtandNWlpe34QhPIBEd1dgp-Z2sYafvMMp1qrJ1yXZ8MAQ3Mv0bwio0I/s1600/user.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email{ width: 230px; height:auto; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgw26wHG5Oo8AF_DIjf9_C_fsUxvfIGZ49Lm_iHlgUyLwcoyK7Gu8V8pYAQAE-ddsnVfXpx_SJlAE9axyIxxyDeqip5gX6uBas9NDRuc6Xyuv2S5G6vHZoZFiBbgUG4BKxQcfRatldCw0/s1600/pen.png)no-repeat 10px center; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-email-message{ width: 230px; height: 120px; margin: 5px auto; padding: 10px 10px 10px 40px; background: #000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkrrSLfzYvJDfB8gb0kKcgkw-bJWGCKlPljdDI6QQXkGs6W9byxLDF0Y5UoFspsJnWLgmCHx0131Fty9mtOAVo0k_XFhslMCzvxpS4pn8NecHH3pjCoMrW_nxwYoTpef4vyQqP91LYD60/s1600/msg.png)no-repeat 10px 10px; color:#999; border:1px solid #00ff00; box-shadow: 1px 1px 10px #00ff00 inset; } #ContactForm1_contact-form-submit { width: 95px; height: 30px; float: left; color: #000; font-weight: bold; padding: 0; cursor:pointer; margin: 25px 0 3px 0 0; background-color:#52e052; text-shadow: 1px 0 0 #999; border:1px solid #333; } #ContactForm1_contact-form-submit:hover { background:#00ff00; } #ContactForm1_contact-form-error-message, #ContactForm1_contact-form-success-message{ width: 230px; margin-top:30px; }
</style>
<script src="http://faceblog-evolutions.googlecode.com/files/jquery-1.3.js" type="text/javascript"></script>
<script src="http://faceblog-evolutions.googlecode.com/files/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="http://faceblog-evolutions.googlecode.com/files/contactform.js" type="text/javascript"></script>
<div id="faceblog-contact">
<form class="form-contact">
<input id="ContactForm1_contact-form-name" name="name" placeholder="Nama" size="30" type="text" value="" />
<input id="ContactForm1_contact-form-email" name="email" placeholder="Email" size="30" type="text" value="" />
<textarea cols="25" id="ContactForm1_contact-form-email-message" name="email-message" placeholder="Pesan" rows="5"></textarea>
<input id="ContactForm1_contact-form-submit" type="button" value="Kirim" />
<div style="max-width: 222px; text-align: center; width: 100%;">
<div id="ContactForm1_contact-form-error-message">
</div>
<div id="ContactForm1_contact-form-success-message">
</div>
</div>
</form>
</div>
<div id="evolutionsbutton"></div>
Untuk tinggi, lebar maupun warna widget contact form silahkan custom dan sesuikan selera sendiri. Sekarang jika ingin memasang tinggal tergantung selera saja, mau menggunakan efek floating atau efek accordion pada sidebar blog. Atau bahkan mungkin lebih suka memasang widget contact form kedalam halaman statis blog.
“Pada dasarnya penampilan memang bukanlah sesuatu hal yang terbaik, namun seseorang bisa menilai dari segi penampilan menjadi sesuatu hal yang terbaik”. Bukankah sesuatu hal yang enak di pandang akan terlihat segar di mata? keep the spirit, continue to work and success always!!! appearance is reflective of one's personality.
0 Response to "Memasang Widget Contact Form Accordion Pada Blog"