Results 1 to 4 of 4

Thread: Using JavaScript to Search For and Highlight Text on a Web Page

  1. #1
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Using JavaScript to Search For and Highlight Text on a Web Page

    Please see the URL : http://evening.engellee.com/eveningHighlightSearch/
    My Sample's features

    Search by Node.textContent property. So, searching is satisfied because Skip All HTML Elements themselves such as input, span, div, title, etc.
    Support IE9,10/FF/Chrome/Opera/Safari(Win,MAC,iOS)
    Searching is possible when keywords length is over 2. e.g. ie, sp, high
    Implement 3 kind of Search Engine : For example in the sentence "Using JavaScript to Search For and Highlight Text on a Web Page"

    [Level-1] Case-sensitive
    Searched Color :
    True : [Web Page]
    False [web page][wEB Page]

    [Level-2] non-Case-Sensitive
    Searched Color :
    True : [Web Page][web page][wEb pAGe] etc
    False [web javascript][JavaScript highlight]

    [Level-3] Mutltiple Search and non-Case-Sensitive
    Searched Color :
    Possible : [web javascript][JavaScript highlight IE]

    Thanks for your time.

    Kind regards
    Niao Jina
    Last edited by jscheuer1; 10-09-2013 at 12:38 AM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Are you offering this code free to anyone to use for any purpose?

    If so, would you like to submit it to Dynamic Drive for inclusion in their Javascript Library?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Dear Sir
    I am sorry for the delay response.
    I will offer my code as a free.
    Now, what do I have to ?
    Please help me.

    Kind regards
    Niao Jina

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Well, as long as you are the author, just by stating that it is free makes it so. If you want to submit it, post it in the submissions section:

    http://www.dynamicdrive.com/forums/f...ML-or-CSS-code

    There's no guarantee it will be accepted. But that's how to offer it for inclusion in the Dynamic Drive Library.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 14
    Last Post: 12-18-2013, 01:06 AM
  2. Highlight search box text
    By nihalz in forum HTML
    Replies: 17
    Last Post: 09-04-2011, 01:56 AM
  3. Dynamic highlight of text using mouse in HTML page
    By smiles78 in forum JavaScript
    Replies: 1
    Last Post: 08-15-2008, 02:57 PM
  4. Search text in word document with javascript
    By ill_comms in forum JavaScript
    Replies: 1
    Last Post: 08-11-2008, 01:03 PM

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
  •