Salam ::
Aap Thorra sa Zehn Larra k is Script say Apni Website Ka Search Engin Bana saktay hain..
Boht acha Program hay..
html file Arsaal hay..
Salam ::
Aap Thorra sa Zehn Larra k is Script say Apni Website Ka Search Engin Bana saktay hain..
Boht acha Program hay..
html file Arsaal hay..
Last edited by Sheeda_Pastol; 8th June 2009 at 05:23 PM. Reason: file attached
Nice Sharing Thanks
where is html file
bhai html file to bata do.......
ye html file b laga laitay..........tu thread complete hota.....our qaareen our nazeereen ko tashweesh na hoti......
Bhai Kia Ho Gya Khairiat To Hai Na
nice sharing
file to attach kr lein bhai lagta hai k aap bhool gay hain
Bhai html file ki 37 kb file attach nahi ho rahi kia karoon..
<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000: Code Generators: Site Search Machine</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Code Generators">
<META NAME="description" CONTENT="This script creates an internal site search engine for up to 8 web pages on your site, automatically. It indexes webpages and generates a complete file, including the HTML and the JavaScript code for the search. Just fill in the information for each page you wish to add, or even you can paste that page's HTML
source code in the textbox and let the script extract the text from it. When you are finished, you will have your own site search script, for free! And, we can even mail the generated code to you! Just upload it as is. Easy! :-)">
<SCRIPT LANGUAGE = "JavaScript">
<!-- Begin
var email = GetCookie('email_address');
if (email == null) {
email = 'your email here';
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;}
return null;}
function SetCookie (name, value) {var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = ".internet.com";
// (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");}
function checkCodeMail() {
invalid = ""
email = document.mail.user.value;
code = document.mail.source.value;
if (code == "") {
invalid += "Before you can send your code to yourself you need to ";
invalid += "follow the instructions above to output the code. When "
invalid += "the code has been generated, click \"Done\" to email it!\r\n\r\n";}
if (email.indexOf("@")<1 || email == "your email here" || email == "") {
invalid += "Invalid email address! Be sure that in your email address ";
invalid += "you included your Username, the '@' Sign, and the Domain Name.";}
if (invalid == "") {
doAd();
return true;
}
else {
alert(invalid);
return false;}}
function doAd() {
pathname = location.pathname;
myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000));
SetCookie('email_address',email,largeExpDate,myDom ain);
page = "http://javascript.internet.com/sent.html?" + email;
window.open(page, "AdWindow", "width=515,height=150");
return true;}
function uncode() {
smut="<";
replacewords="< ";
txt=document.mail.source2.value;
tstx="";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replac ewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((spa ce+wrdl),txt.length);}
smut=">";
replacewords="> ";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replac ewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((spa ce+wrdl),txt.length);}
document.mail.source2.value=txt;}
// End -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=#ffffff vlink=#0000ff>
<P>
<center>
<P>
<BR>
<BR>
<BASEFONT SIZE=3>
<FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /generators/"><font color="#FF0000">Generators</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Search Machine</FONT></b></FONT><BR>
</B><BR>
</FONT>
<table BORDER=0 WIDTH=486 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE="helvetica, verdana, arial" size="2">
<br>
<br>
<!-- Description --><!--content_start-->
This script creates an internal site search engine for up to 8 web pages on your site, automatically. It indexes webpages and generates a complete file, including the HTML and the JavaScript code for the search. Just fill in the information for each page you wish to add, or even you can paste that page's HTML
source code in the textbox and let the script extract the text from it. When you are finished, you will have your own site search script, for free! And, we can even mail the generated code to you! Just upload it as is. Easy! :-)
</font>
<br>
<hr>
</td></tr>
</table>
<!-- Demonstration -->
<center>
<font face="arial, helvetica" size="-1"><b>Click the "Start" or "Instructions" button to begin.</b></font>
<br>
<SCRIPT TYPE="text/javascript">
var nVer = navigator.appVersion;
var fullVersion = parseFloat(nVer);
if (fullVersion < 4) { document.write("<DIV ALIGN=\"CENTER\"><BR><BR>Your Browser is not new enough to utilize this Script.<BR>You should upgrade your Browser to a newer Version.<BR>Click on one of the Links below, they will contact you with<BR><BR><A HREF='http://www.microsoft.com/msdownload/iebuild/ie501_win32/en/ie501_win32.htm?FinishURL=%2Fdownloads%2Frelease%2 Easp%3FReleaseID%3D15568%26redirect%3Dno'target=_b lank><B>MICROSOFT</B></A><BR><BR>or with<BR><BR><A HREF='http://home.netscape.com/computing/download/index.html?cp=hom03p1'target=_blank><B>NETSCAPE</B></A><BR><BR>You can download there the newest Versions for free.</DIV>")
}
else
{
if(navigator.appName == "Microsoft Internet Explorer")
{
size = 35;
size2 = 76;
size3 = 118;
sea = 40;
tex = 90;
fon = "X-SMALL";
fon2 = "XX-SMALL";
}
else
{
sea = 25;
tex = 80;
fon = "SMALL";
fon2 = "X-SMALL";
size = 26;
size2 = 53;
size3 = 81
}
Basic = true;
Okay = false;
Sayfa = 0;
star = 0;
Generator = 0;
Generator2 = 0;
sifre = 0;
duzen = 0;
document.write("<STYLE TYPE=\"text/css\">BODY{BACKGROUND-COLOR:#E0E0E0}TD{COLOR:#333333;FONT-SIZE:" + fon2 + ";FONT-FAMILY:Ms Sans Serif}A:LINK{COLOR:#000099;TEXT-DECORATION:NONE}A:VISITED{COLOR:#000099;TEXT-DECORATION:NONE}A:ACTIVE,A:HOVER{COLOR:#000000}SPA N.HEA{COLOR:#000000;FONT-FAMILY:VERDANA;FONT-SIZE:LARGE;FONT-STYLE:ITALIC;FONT-WEIGHT:BOLD}SPAN.HEA2{COLOR:#FF0000;FONT-FAMILY:VERDANA;FONT-SIZE:LARGE;FONT-STYLE:ITALIC;FONT-WEIGHT:BOLD}SPAN.VERS{COLOR:#666666;FONT-FAMILY:VERDANA;FONT-SIZE:" + fon + ";FONT-WEIGHT:BOLD}</STYLE></HEAD><BODY>")
document.write("<FORM><TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" ALIGN=\"CENTER\"><TR><TD COLSPAN=\"3\" ALIGN=\"CENTER\"><SPAN CLASS=\"HEA\">Search Machine </SPAN><SPAN CLASS=\"HEA2\">Generator &n bsp; </SPAN><SPAN CLASS=\"VERS\">Version: 2.4.8</SPAN></TD></TR><TR><TD COLSPAN=\"3\"><TEXTAREA NAME=\"Machine\" COLS=\"" + tex + "\" ROWS=\"5\"></TEXTAREA></TD></TR><TR><TD><INPUT TYPE=\"BUTTON\" VALUE=\"START\" onClick=\"basla()\"> <INPUT TYPE=\"BUTTON\" VALUE=\"Preview\" onClick=\"Preview()\"> <INPUT TYPE=\"BUTTON\" VALUE=\"Clear\" onClick=\"Clear()\"> <INPUT TYPE=\"BUTTON\" VALUE=\"Undo\" NAME=\"GeriAl\" DISABLED onClick=\"Undo()\"></TD><TD COLSPAN=\"2\" ALIGN=\"RIGHT\">")
if(navigator.appName == "Microsoft Internet Explorer")
{
document.write(" &nbs p; <INPUT TYPE=\"TEXT\" SIZE=\"20\" NAME=\"SAYFA\" onFocus=\"document.forms[0].Machine.focus();\" style=\"background-color: #E0E0E0; color: #666666; font-family: Ms Sans Serif; font-size: xx-small; font-weight: bold; border: medium solid #E0E0E0\"> &nbs p;<INPUT TYPE=\"TEXT\" SIZE=\"18\" NAME=\"BYTES\" VALUE=\"Total Bytes: \" onFocus=\"document.forms[0].Machine.focus();\" style=\"background-color: #E0E0E0; color: #666666; font-family: Ms Sans Serif; font-size: xx-small; font-weight: bold; border: medium solid #E0E0E0\"> ")
}
else
{
document.write(" ")
}
document.write("<INPUT TYPE=\"BUTTON\" VALUE=\"Protect Code\" onClick=\"sifrele();\"></TD></TR><TR><TD HEIGHT=\"45\" VALIGN=\"BOTTOM\"><B>Page - URL:</B><BR><INPUT NAME=\"URL\" SIZE=\"" + size + "\"> </TD><TD COLSPAN=\"2\" VALIGN=\"BOTTOM\"><B>Title:</B><BR><INPUT NAME=\"TITLE\" SIZE=\"" + size2 + "\"></TD></TR><TR><TD COLSPAN=\"3\" ALIGN=\"CENTER\" VALIGN=\"BOTTOM\"><B>Description:</B><BR><TEXTAREA NAME=\"DESCRIPTION\" COLS=\"" + tex + "\" ROWS=\"2\"></TEXTAREA></TD></TR></TR><TD COLSPAN=\"3\" ALIGN=\"CENTER\" VALIGN=\"BOTTOM\"><B>Page Keywords (You may paste your HTML code in here):</B><BR><TEXTAREA NAME=\"TEXT\" COLS=\"" + tex + "\" ROWS=\"3\"></TEXTAREA><BR><INPUT TYPE=\"BUTTON\" VALUE=\"Add This Page\" ONCLICK=\"uygula();\"> or... <INPUT TYPE=\"BUTTON\" VALUE=\"Get Title from text field\" ONCLICK=\"tit();\"> <INPUT TYPE=\"BUTTON\" VALUE=\"Remove HTML from text field\" ONCLICK=\"cevir();\"> <INPUT TYPE=\"BUTTON\" VALUE=\"Remove Line Breaks\" ONCLICK=\"hizala();hizala2();\"> </TD></TR><TR><TD VALIGN=\"BOTTOM\"><B>Name of your Site:</B><BR><INPUT NAME=\"ISIM\" SIZE=\"" + size + "\"></TD><TD VALIGN=\"BOTTOM\"><B>E-mail Name:</B> ( will be seen on the page )<BR><INPUT NAME=\"ELINK\" SIZE=\"" + size + "\"></TD><TD HEIGHT=\"45\" VALIGN=\"BOTTOM\"><B>E-mail Link: </B>( your e-mail address ( optional ) )<BR><INPUT NAME=\"MAIL\" SIZE=\"" + size + "\"></TD></TR><TR><TD><B>Detailed Results Page:</B> <SELECT NAME=\"OUT\"><OPTION VALUE=\"false\">No</OPTION><OPTION VALUE=\"true\">Yes</OPTION></SELECT></TD><TD ALIGN=\"CENTER\"><INPUT TYPE=\"BUTTON\" VALUE=\"GENERATE CODE\" onClick=\"generate();\"></TD><TD ALIGN=\"RIGHT\"><INPUT TYPE=\"BUTTON\" VALUE=\"Instructions\" onClick=\"Instruct();\"></TD></TR><TR><TD COLSPAN=\"2\" VALIGN=\"BOTTOM\" HEIGHT=\"40\">")
document.write("</TD><TD ALIGN=\"RIGHT\" VALIGN=\"BOTTOM\">Powered by <A HREF=\"mailto:cenk@yurtseven.com?subject=Posted from Search Machine Web Site.&body=Dear Cenk,\">Cenk Yurtseven</A> ©2000</TD></TR></TABLE></FORM>")
function Preview()
{
win = window.open("","","scrollbars=1,menubar=1,status=1 ,width=710,height=310,left=35,top=110")
win.document.write(document.forms[0].Machine.value)
}
function Favori(){
editor=window.external.AddFavorite("http://www.netchampion.com./", "Search Machine JavaScript Generator")
}
function Clear()
{
if(Basic)
{
Okay = true;
{
if(navigator.appName == "Microsoft Internet Explorer")
{
document.forms[0].GeriAl.disabled = false;
}
Value1 = document.forms[0].Machine.value;
document.forms[0].Machine.value = "";
document.forms[0].URL.value = "";
document.forms[0].TITLE.value = "";
document.forms[0].DESCRIPTION.value = "";
document.forms[0].TEXT.value = "";
document.forms[0].MAIL.value = "";
document.forms[0].ELINK.value = "";
document.forms[0].ISIM.value = "";
}
}
}
function Undo()
{
if(Basic)
{
if(!Okay)
{
Error()
}
else
{
document.forms[0].Machine.value = Value1;
if(navigator.appName == "Microsoft Internet Explorer")
{
document.forms[0].GeriAl.disabled = true;
}
}
}
}
function Bytes()
{
document.forms[0].BYTES.value = "Total Bytes: " + document.forms[0].Machine.value.length;
setTimeout("Bytes()","3000")
}
if(navigator.appName == "Microsoft Internet Explorer")
{
Bytes();
}
function Sayfalar()
{
if(Sayfa == 0)
{
Say = "";
sayf = "";
}
else
{
Say = Sayfa
}
if(Sayfa == 1)
{
sayf = "Page was added"
}
if (Sayfa >= 2)
{
sayf = "Pages were added"
}
document.forms[0].SAYFA.value = Say + " " + sayf;
setTimeout("Sayfalar()","1")
}
if(navigator.appName == "Microsoft Internet Explorer")
{
Sayfalar();
}
function basla()
{
if (document.forms[0].Machine.value != "")
{
alert("For a new Start you must delete the current document first !")
}
else
{
var doc = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"><HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset= iso-8859-1\"><TITLE>Search Machine<\/TITLE><SCR"+"IPT TYPE=\"text\/javascript\">Cy=new Array();";
document.forms[0].Machine.value += doc;
document.forms[0].Machine.focus();
document.forms[0].GeriAl.disabled = true;
{
if (star == 0)
{
confirm("C O N G R A T U L A T I O N S !\n\nThe Basics were added.\n\nFrom now on, fill in the fields an press the GET CODE button !")
}
star += 1;
Generator = 0;
Generator2 = 0;
Sayfa = 0;
sifre = 0;
}
}
}
function tit()
{
if (document.forms[0].TITLE.value != "")
{
return false;
}
else
{
Donus = document.forms[0].TEXT.value;
DONUS = document.forms[0].TEXT.value.toUpperCase();
Begin = DONUS.indexOf("<TITLE>");
Ende = DONUS.indexOf("</TITLE>");
Son = Donus.substring((Begin+7),Ende);
document.forms[0].TITLE.value = Son;
document.forms[0].TITLE.focus();
}
}
function cevir()
{
if(Basic)
{
Okay = true;
{
if(navigator.appName == "Microsoft Internet Explorer")
{
document.forms[0].GeriAl.disabled = true;
}
Prova = window.document.forms[0].elements['TEXT'].value;
Provabit = Taglar(Prova);
window.document.forms[0].elements['TEXT'].value = Provabit;
}
}
}
function Taglar(DOk)
{
Cy = DOk.indexOf("<");
cY = DOk.indexOf(">");
Taglar2 = DOk.length;
Cc = DOk.substring(0, Cy);
if(cY == -1)
cY = Cy;
cC = DOk.substring((cY + 1), Taglar2);
Son1 = Cc + cC;
CccY = Son1.indexOf("<");
if(CccY != -1)
Son1 = Taglar(Son1);
return Son1;
}
function hizala()
{
var Metin = "";
var tus;
var uzluk = document.forms[0].TEXT.value.length;
for(var i = 0; i < uzluk; i++)
{
tus = document.forms[0].TEXT.value.charAt(i);
if( tus <= " ")
{
if( document.forms[0].TEXT.value.charAt(i+1) != " ")
Metin += " ";
}
else if( tus == "\"" )
{
i++;
Metin += """;
}
else if( tus == "<" )
{
i++;
Metin += "<";
}
else if( tus == ">" )
{
i++;
Metin += ">";
}
else
{
Metin += document.forms[0].TEXT.value.charAt(i);
}
}
document.forms[0].TEXT.value = Metin;
}
function hizala2()
{
var Metin = "";
var tus;
var uzluk = document.forms[0].TEXT.value.length;
for(var i = 0; i < uzluk; i++)
{
tus = document.forms[0].TEXT.value.charAt(i);
if( tus <= " ")
{
if( document.forms[0].TEXT.value.charAt(i+1) != " ")
Metin += " ";
}
else if( tus == "\"" )
{
i++;
Metin += """;
}
else if( tus == "<" )
{
i++;
Metin += "<";
}
else if( tus == ">" )
{
i++;
Metin += ">";
}
else
{
Metin += document.forms[0].TEXT.value.charAt(i);
}
}
document.forms[0].TEXT.value = Metin;
}
function sifrele()
{
if (sifre >= 1 && Generator >= 1 )
{
alert ("This function works only once !")
}
if (Generator == 0 )
{
confirm ("PROTECT CODE function works only when the complete code is generated.")
}
Value1 = document.forms[0].Machine.value;
if (Generator == 1 && sifre == 0 )
{
if(Basic)
{
Okay = true;
if (confirm ("This function of Search Machine protects the code completely.\n\nBut it is nearly impossible to edit the code then !\n\nUse this option only when you do not want to make any more changes to the code."))
{
if(navigator.appName == "Microsoft Internet Explorer")
{
document.forms[0].GeriAl.disabled = false;
}
Code = escape(document.forms[0].Machine.value)
document.forms[0].Machine.value = "<SCRIPT LANGUAGE=\"JavaScript\">\n<!--\nCodeCY = \"" + Code + "\";\ndocument.write(unescape(CodeCY));\n//-->\n</S" + "CRIPT>";
document.forms[0].Machine.focus();
sifre += 1;
alert("haaaaaaaaaahhhhhhhhhh ............\n\nYour Code is completely protected now.\n\nYou may restore the normal version by using the UNDO button.")
}
else
{
document.forms[0].Machine.focus();
}
}
}
}
function bosluk()
{
if (document.forms[0].Machine.value.length < 222 && star == 0)
{
return false
}
else
{
var tit = "";
var desc = "";
var Metin = "";
var tus1;
var tus2;
var tus3;
var uzluk1 = document.forms[0].TITLE.value.length;
var uzluk2 = document.forms[0].DESCRIPTION.value.length;
var uzluk3 = document.forms[0].TEXT.value.length;
for(var i1 = 0; i1 < uzluk1; i1++)
{
tus1 = document.forms[0].TITLE.value.charAt(i1);
if( tus1 <= " ")
{
if( document.forms[0].TITLE.value.charAt(i1+1) != " ")
tit += " ";
}
else if( tus1 == "\"" )
{
i1++;
tit += """;
}
else if( tus1 == "<" )
{
i1++;
tit += "<";
Bookmarks