Search in forum:
Search


« View previous topic :: View next topic »  
Author Message
Post09/22/2008 at 2:18pm (UTC)    
Post subject: GOOGLE SEARCH

this code that you add it to your website
it allowed you to search the internet with google
also you make google search in your website.
you can add the code to one of the right boxes
you must change mymahdi.page.tl with your website
without (http://www)
Code:

<! ---Google search start--->
<TABLE border=0 width=100 bgcolor="#ffffff">
 <TR><! ---MyMahdi programming--->
  <TD align=middle>
   <FONT color=#111ccc><B>Google Search</B></FONT>
  </TD>
 </TR>
 <TR>
  <TD>
   <FORM action=http://www.google.com.sa/search method=get target=_blank>
   <TABLE border=0>
    <TR>
     <TD align=middle>
      <IMG src="http://images.google.com/intl/ar/ads/images/google_sm.gif" width=120>
     </TD>
    </TR>
    <TR>
     <TD align=middle>
      <INPUT maxLength=255 name=q size=16>
      <INPUT type=submit value="     Search    " name=submit>
     </TD>
    </TR>
    <TR>
     <TD align=middle>
      <INPUT type=radio value="" name=sitesearch>Internet
     </TD>
    </TR>
    <TR>
     <TD align=middle>
      <INPUT type=radio CHECKED value=mymahdi.page.tl name=sitesearch>My Web
     </TD>
    </TR>
   </TABLE>
  </TD>
 </TR>
</TABLE><! ---for more codes visit www.mymahdi.page.tl--->
<! ---Google search end--->
if you like to see an example visit MyMahdi

this code to search through your page only if it has
a huge text
Code:

<script language="JavaScript">


var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);

var win = window;    // window to search.
var n   = 0;

function findInPage(str) {

  var txt, i, found;

  if (str == "")
    return false;

  // Find next occurance of the given string on the page, wrap around to the
  // start of the page if necessary.

  if (NS4) {

    // Look for match starting at the current point. If not found, rewind
    // back to the first match.

    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;

    // If not found in either direction, give message.

    if (n == 0)
      alert("Not found.");
  }

  if (IE4) {
    txt = win.document.body.createTextRange();

    // Find the nth match from the top of the page.

    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }

    // If found, mark it and scroll it into view.

    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }

    // Otherwise, start over at the top of the page and find first match.

    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }

      // Not found anywhere, give message.

      else
        alert("Not found.");
    }
  }

  return false;
}

</script>

<form name="search" onSubmit="return findInPage(this.string.value);">
<font size=3><input name="string" type="text" size=15 onChange="n = 0;"></font>
<input type="submit" value="Find">
</form>

______________
Post09/23/2008 at 12:27am (UTC)    
Post subject:

Hi,
Thanks for the codes!

Second code is for page searching. Is there any searcing code for whole website?

Have Fun Wink
______________
- If you love your own-free-website, fight against to spams and spammers! Please support us, let's remove all the spammers together! We don't want to see spams and spammers on OFW board!

- The only language of the board is English / Englisch / Anglaise / Inglés / Inglese / İngilizce / Angielski / Английский / Αγγλικά / 英语 / 英语简体英文. So please write in just English!

Own-free-website.com

Post09/23/2008 at 8:26am (UTC)    
Post subject:

Quote:

<FORM method=GET action=http://www.google.com/custom> <INPUT TYPE=text name=q size=15 maxlength=255 value=""><br><br> <INPUT type=submit name=sa VALUE="Search"> <input type=hidden name=domains value="ADDRESS YOUR WEBSITE WITHOUT http://"><br><br> <input type=radio name=sitesearch value=""> Web search<br> <input type=radio name=sitesearch value="ADDRESS YOUR WEBSITE WITHOUT http://" checked > Site search </FORM>



To use this code, it must be referenced on Google !

Exemple:
http://webmastershop.page.tl/

There is another solution,you can add a site search engine to your website with:
http://www.freefind.com/

Exemple:

http://webmaster-shop.fr.gd/Search2.htm


Wink


Last edited by webmastershop on Fri Feb 06, 2009 7:55 am; edited 1 time in total
Post10/03/2008 at 12:51am (UTC)    
Post subject: hey

thxxxxxxxxxxxx
Post10/20/2008 at 5:36pm (UTC)    
Post subject:

Post10/25/2008 at 11:30am (UTC)    
Post subject: get my banner code

..


edited by canerfc


Last edited by miss-aishwaryarai on Sat Oct 25, 2008 8:39 pm; edited 1 time in total
Post10/25/2008 at 8:42pm (UTC)    
Post subject:

@ miss-aishwaryarai.page.tl
Don't spam! If you post spam, you may be banned!
______________
- If you love your own-free-website, fight against to spams and spammers! Please support us, let's remove all the spammers together! We don't want to see spams and spammers on OFW board!

- The only language of the board is English / Englisch / Anglaise / Inglés / Inglese / İngilizce / Angielski / Английский / Αγγλικά / 英语 / 英语简体英文. So please write in just English!

Own-free-website.com

Post11/01/2008 at 6:07pm (UTC)    
Post subject:

where i paste these code ?
Post11/02/2008 at 3:57pm (UTC)    
Post subject:

asadpaki wrote:
where i paste these code ?


Paste to the boxes in the design.
(click edit design you will see the all boxes)

Or paste to the page editor..
Manage Pages, choose your page from page editor. Click source button then paste the code, and lastly click save button.

Have Fun Razz
______________
- If you love your own-free-website, fight against to spams and spammers! Please support us, let's remove all the spammers together! We don't want to see spams and spammers on OFW board!

- The only language of the board is English / Englisch / Anglaise / Inglés / Inglese / İngilizce / Angielski / Английский / Αγγλικά / 英语 / 英语简体英文. So please write in just English!

Own-free-website.com

Display posts from previous:   


Powered by phpBB © 2001, 2005 phpBB Group