Hi all,

I have the following problem:

I have 4 documents whose text is divided into blocks of text, hereafter called section. One of the documents is the main document, and the sections from the other documents are related to the sections of the main document. The main goal is when I roll the mouse over across sections in the main document, related sections in the other documents will appear highlighted.


So far I had no problem with the highlight functions, but I can´t find a way to identify blocks of text in the main document, just by the coordinates of the mouse. Note that a section may not be a paragraph or even a full sentence.

Can anyone help me how can I identify these blocks of text in javascript?

Recommended Answers

All 3 Replies

Define a CSS class and add to each section in the main document. So you can identify the elements in the main document as the sections

Thanks, I solved the problem using tag map and using getelementbyid onmouseover.

Great :) Now this thread can be marked as Solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.