Results 1 to 4 of 4

Thread: Word search on page

  1. #1
    Join Date
    Jan 2009
    Posts
    41

    Word search on page

    Hello.

    I try for site which is only 1 page with many links. Now in the beginning has been any organized, but that will not be long.

    Now I find a script that a bit the same as the "control + F" key, but in the form form.

    So I would like an input field with a button "search" then deliberate on the page itself looks at what the first word that comes across, and possibly an error message if the word (or words) does not exist.

    As much;
    Code:
    <input type = "text" size = "20" class = "Search" OnFocus = "if (this.value == 'I'm looking ...') this.value ='';" value =" I am looking for .. .>



    Someone who can shine a light on?

    thank you

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Word search on page

    There you go in any case need javascript as it should look for any change.
    You do this by the attribute "onChange to use.

    Then you need a javascript array with all the hits to find the piece that is wanted, and if the letters are in that array, you need the data as output.

    The only thing I can not help you, it is effective, but it helps you do a piece on the road I hope.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Word search on page

    you can anchor, but then you must make sure that the change is implemented:

    should be left in the format:

    Code:
    <a name="google" href="www.google.com"> google </ a>
    <a name="ta" href="www.ta.in"> ta </ a>
    <a name="yok" href="www.yok.in"> google </ a>
    Your search thing to just redirect www.site.in / page.html # Searchterm eg page.html # breeding, and then get so off. The user must be exactly the right type anchor name

  4. #4
    Join Date
    Dec 2008
    Posts
    322

    Re: Word search on page

    That seems to me something, even though this is not so hard to put it is not very practical (I think in each case). But it is indeed an option.

Similar Threads

  1. Replies: 4
    Last Post: 05-04-2011, 04:29 AM
  2. New Google Search Page
    By Maq.H in forum Technology & Internet
    Replies: 2
    Last Post: 19-05-2010, 07:29 AM
  3. PHP to search contents on web page
    By Jensen Ackles in forum Software Development
    Replies: 5
    Last Post: 09-04-2010, 02:48 AM
  4. Why I cannot search my page on Google?
    By Barsha in forum Technology & Internet
    Replies: 4
    Last Post: 11-03-2010, 03:48 AM
  5. How To Put Page Numbers In Ms Word?
    By Rob Dizzle in forum Windows Software
    Replies: 3
    Last Post: 02-12-2006, 04:33 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,583,205.38701 seconds with 16 queries