www.maxx.ucoz.lv
Sākums | Reģistrācija | Ieeja Sveicināti Viesis | RSS
[ Jaunas vēstules · Dalībnieki · Foruma noteikumi · Meklēšana · RSS ]
  • Lappuse 1 no 1
  • 1
Maxx. | Forums » Ucoz Service » Skripti » GooGle meklētājs jūsu mājaslapā.
GooGle meklētājs jūsu mājaslapā.
TeCkDatums: Pirmdiena, 2010-01-11, 7:51 PM | Ziņojums # 1
Gandrīz speciālists
Grupa: Administrators
Ziņojumu skaits: 363
Balvas: 4
Reputācija: 3
Statuss:

Code
<form name="jksearch" action="http://www.google.com/search" method="get" onSubmit="jksitesearch(this)">

<p>Meklēt:<br />
<input id="hiddenquery" type="hidden" name="q" />
<input name="qfront" type="text" style="width: 200px" value="www.maxx.ucoz.lv" /> <input type="submit" value="Search" /><br />
<div style="font: bold 11px Verdana;">Google:<input name="se" type="radio" checked> Yahoo:<input name="se" type="radio"> MSN:<input name="se" type="radio">
</div>

<script type="text/javascript">

//Enter domain of site to search.
var domainroot=""

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>

</p>

</form>

Example : http://maxx.ucoz.lv/Sc/google.html

Pievienotie faili: 6156302.gif (3.6 Kb)
 
Maxx. | Forums » Ucoz Service » Skripti » GooGle meklētājs jūsu mājaslapā.
  • Lappuse 1 no 1
  • 1
Meklēšana:

www.maxx.ucoz.lv vietnes administratori postal1188 & teck!!! Dizainu veidoja postal1188 © 2024
Bezmaksasmājas lapu uzturēšana - uCoz