Autor | Zpráva | ||
---|---|---|---|
eriduan Profil |
#1 · Zasláno: 16. 7. 2012, 21:25:51
Dobrý večer, chcel by som pripojiť ku stránke vyhľadávač ktorý by mi vedel vyhľadávať vnútri sajtu.
našiel som free code ale neviem ako funguje. kopirujem ho sem. vobec mu nerozumiem, ake ked som ho vyskusal tak fungoval akoby len na tej jednej stranke ktora bola aktivna. a vyhladaval slova a retazce na nej. ako ctrl+f <!-- This Script is from www.htmlfreecodes.com, Coded by: Krishna Eydat--> <SCRIPT language=JavaScript> var NS4 = (document.layers); var IE4 = (document.all); var win = window; var n = 0; function findInPage(str) { var txt, i, found; if (str == "") return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert("Not found."); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert("Sorry, we couldn't find.Try again"); } } return false; } </SCRIPT> <FORM name=search onsubmit="return findInPage(this.string.value);"> <P align=center><FONT size=3> <INPUT style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" onchange="n = 0;" size=16 name=string></FONT><BR><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=Search in page ><center><font size=2pt;><font family=Times New Roman;><b> <font face="Tahoma"><a target="_blank" href="http://www.htmlfreecodes.com/"><span style="font-size: 8pt; text-decoration: none">HTML Free Code</span></a></font> dalej som našiel sear engine google tu na jakpsatweb a to rovno dva razy. ten prvy je z tadeto <!-- parazitny vyhladavac google --> <form action="http://www.google.com/search" target="_blank"> <input type="text" value="" name="searchFor" size="20" maxlength="256"><br> <input name="btnG" type="submit" value="Vyhledat Googlem"> <input value="iso-8859-2" name="ie" type="hidden"> <input name="hl" type="hidden" value="cs"> <input type="hidden" name="action" value="search"> <input type="hidden" name="days" value="100" > <input type="hidden" name="searchWhere" value="0"> <input type="hidden" name="searchHow" value="0"> </form> a tento druhy je z tohto diskusneho fora. kdekolvek si staci ukazat page source, a ono toto uvidim. <form class="topsearch" action="?" method="post"> <input type="text" size="13" maxlength="100" name="searchFor" value="" tabindex="9"> <input type="submit" value="hledat" tabindex="9" class="submit"><br> <label for="google" class="google"><input type="checkbox" name="google" id="google" tabindex="9" checked>Googlem</label> <input type="hidden" name="action" value="search"> <input type="hidden" name="days" value="100" > <input type="hidden" name="searchWhere" value="0"> <input type="hidden" name="searchHow" value="0"> </form> rad by som vedel ako ste si nastavili, aby parazitovi google poslal ten formular nielen informaciu o hladani ale aj toto: site:diskuse.jakpsatweb.cz |
||
jenikkozak Profil |
#2 · Zasláno: 18. 7. 2012, 10:10:32
eriduan:
Třeba ti pomůže část Vyhledávání Googlem na vlastním serveru na téže stránce. |
||
Časová prodleva: 13 let
|
0