Highlighting text using JavaScript

The goal of this project is to highlight an html page sentences by sentence by passing text of sentences on the page sequentially to a javascript function.

When we move to the next sentence, we would like to make the previous text highlighted in gray. If a sentences exists (with the same text) more than once on the page, the function will highlight the first not highlighted sentences. It will not highlight the second or third sentences with the same text. (Perhaps you can do this by searching the first not highlighted text, since all the previously highlighted ones will be highlighted in gray.) The text will be highlighted in red but the color (color code) should be passed as a parameter to the javascript function. The page will also scroll to the sentence that is highlighted so that viewer can see it. FYI, the text on the html page will have either white text over black background or black text over white background.

I found some useful resources to make bidders job easy:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

The above code can make it easier BUT DO NOT bid if you don't know Javascript well and cannot deliver it quickly.


Java script code that does the job and also examples of how it works. You can send html pages that has a button 'Highlight Sequentially' that will do the above described job. Example function that uses the main javascript code to do the job can pass the sentences hardcode.

Skills: CSS, HTML, Javascript, Website Design

See more: html highlight, red or black, how to design website by using html, how to design a website using html code, javascript text highlighting, highlight text java script, how to design a website using java, hardcode, github page, javascript scroll page, html javascript example, javascript parameter java, github website, java script color, text using, javascript text, button html javascript, java github, background color javascript, javascript scroll, page scroll javascript, scroll javascript, javascript background color, javascript page scroll, highlight javascript

About the Employer:
( 16 reviews ) Gainesville, United States

Project ID: #2509547

Awarded to:


hi sir, let's do it ^_^

$40 USD in 1 day
(123 Reviews)

10 freelancers are bidding on average $33 for this job


Details in PMB

$30 USD in 0 days
(117 Reviews)

Hi sir , My name is Luigi Widmore and i'm an expert web developer. My areas are HTML/CSS PHP/MYSQL Design/Photoshop. I can complete this project in 2 days or less. Please check PM for details , you may be impresse More

$34 USD in 999 days
(68 Reviews)

hi i can help u let's start

$30 USD in 1 day
(58 Reviews)

Hi I have finished check PM for demo.

$30 USD in 0 days
(63 Reviews)

I have a lot of experience of javascript. So I can do it. As I understand, you have a text (html) in your page, and you have a textbox/textarea (or what) to put input (sentences, each is separated by "." character). Bu More

$30 USD in 2 days
(7 Reviews)

I am ready to work for you, please give me the job, thanks

$50 USD in 2 days
(23 Reviews)

Hello sir, I can do it right now for you, hope to working with you. Thanks

$40 USD in 2 days
(5 Reviews)

I am working with HTML PHP Javascript. I am your man

$30 USD in 1 day
(0 Reviews)

Looks like a simple search function required, I have a lot of experience with regular expressions and even more experience with JavaScript.

$30 USD in 0 days
(0 Reviews)

Hello, Can i make it with javascript library jQuery? Or you need Just javascript code?

$40 USD in 1 day
(0 Reviews)