jquery - simulating text selection with spans, bottle neck -


i have text.

words wrapped in spans(span ids 1,2,3...n):

<span id="79" class="p">თაობის<div class="p" style="width: 9px; left: -9px; "></div></span> <span id="80" class="p">განადგურების<div class="p" style="width: 10px; left: -10px; "></div></span>

i'm simulating text selection by:

i need simulate text selection changing span's background colours , filling gap between spans background filled divs.

when span count large enough, in internet explorer, javascript code runs through "selected text spans" , calculates gap space between putting there divs(with background color) takes way time(internet explorer hangs up 30 second in case when total amount of spans 500).

i dont understand mean "simulating text selection"

you @ example http://jsfiddle.net/fullpipe/dpp7w/embedded/result/

if suggest code, easy you

a lot of time spending text generation


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -