Cara Memasang Search Pencarian Blog Anda

blogger templates
Cara Memasang widget Search Pencarian Blog Anda dengan 3 pencarian Yaitu Google ,Yahoo dan Msn .
Caranya :
1.Masuk Ke Akun blogger
2.Klik Layout
3.Klik Add Widget Tekt/HTML
4.Masukan kode dibawah ini ; 

<form name="jksearch" action="http://www.google.com/search" method="get" onsubmit="jksitesearch(this)" target="_blank"> <input id="hiddenquery" type="hidden" name="q" /> <input name="qfront" onfocus="if(this.value==this.defaultValue)this.value=&#39;&#39;;" value="Search on this site..." type="text" onblur="if(this.value==&#39;&#39;)this.value=this.defaultValue;" style="width: 240px;border:none;padding:8px 10px; font:normal 11px arial;color:#666; background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHU9ztB8cV-Td2h40IPYWDg5JrrHLjZE1918lClsanN67S5P344QyTYrz4KbKR1jG3OQibAqIbW2glEiHaep4HEeEBatoDPQXsSryKYUmZOnTKxGfoQa_LQiuoV20ibHatWMlZQXiTRA/s1600/search_field.jpg) no-repeat;" /><input type="image" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVVwZu7IQd3qTU1ctsNKgcc_TH9WRiUQK_LZV_0rb1VmgJ-qJ_xfMyb4qZgzpFD8cJkpfYDBAyklKTmACyDrHS3wtixL62mbtW93lcVf3Vgko7qtoOVpMS7aBWcMXbFPQ5aCOFZQM-UlA/s1600/search_button.jpg" align="top" value="Search"/> <div style="font: normal 11px Arial;color:#666;padding:2px 0;"> <input name="se" type="radio" checked /> Google <input name="se" type="radio" /> Yahoo <input name="se" type="radio" /> Msn </div> <script type="text/javascript"> // All-in-one Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com) // For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/ // This notice must stay intact for use //Enter domain of site to search. var domainroot="http://dangstars.blogspot.com/" var searchaction=[ //form action for the 3 search engines "http://www.google.com/search", "http://search.yahoo.com/search", "http://search.msn.com/results.aspx" ] var queryfieldname=["q","p","q"] //name of hidden query form for the 3 search engines function switchaction(cur, index){ cur.form.action=searchaction[index] document.getElementById("hiddenquery").name=queryfieldname[index] } function jksitesearch(curobj){ for (i=0; i< document.jksearch.se.length; i++){ //loop through radio to see which is checked if (document.jksearch.se[i].checked==true) switchaction(document.jksearch.se[i], i) } document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.qfront.value } </script> </form>

Perhatikan kode warna merah ganti dengan nama blog Anda. Terimakasih

0 Response to "Cara Memasang Search Pencarian Blog Anda"

Posting Komentar