Fashion

cara memasang widget cUstum search google,msn,yahoo pada blog

Tidak ada komentar
 cara memasang widget costum search google,msn,yahoo.
widget ini mempermudahkan kita untuk mencari sebuah artikel baik di google,msn,maupun yahoo.dengan widget ini kita lebih mudah untuk mencari sebuah isi artikel baik di blog,maupun website
widget ini bisa anda letakkan di sidebar  ataupun di sebuah header 
langsung saja cara memasangnya adalah sbb 
  1. masuklah ke blogger anda
  2. pilih tata letak 
  3. tambahkan widget 
  4. pilih HTML/java script
  5. kemudian pastekan kode di bawah 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='';" value="Search on this site..." type="text" onblur="if(this.value=='')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/AVvXsEjnThuliEO_h9HsdkARbkoCZa6j4iD2gydi5V7y-F9srzyDD6fjsomRTU3LvIs-jYePzLJCERtm3Ai3O6OpikNmJ3n0vh0PtquQT8wKAqLXNazM6IkJk8IopCHgipoWP0sjI6F03OY2Tac/s1600/search_field.jpg) no-repeat;" /><input type="image" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj73qoEM12x_Aove_fKtOabV6ZNxZAAhyphenhyphenIZXk-3QCGlovpbJlHtRJVc8-O7fjbYi9RUYnv_2TgzM9O0QDY5CLqMkQ2KKdHkrPzGWFPhn0OtWtrkJu36nFPteDnuMpeD4GehuqTWVHLxBdA/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://faerul-sh.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>

keterangan : untuk yang script nama blog saya http://faerul-sh.blogspot.com di hapus terus isi nama blog anda 

Tidak ada komentar :

Posting Komentar