Display Pop With Respect To Edited Text
Onclick Text, we are displaying Pop Up after the last word in a Text.... We are using this logic : left = layer.width + layer.x Code : document.getElementById(lightId).style.left
Solution 1:
Nothing to do, simply add timeInterval on your code, so it check always when you change text
Remove this code
document.getElementById(lightId).style.left = layer.x + document.getElementById(layer.name).offsetWidth + 9 + 'px'
and add this code
setInterval(function() {
document.getElementById(lightId).style.left = layer.x + document.getElementById(layer.name).offsetWidth + 9 + 'px'
}, 100);
your problem solved, now your box respectively follow your code
Post a Comment for "Display Pop With Respect To Edited Text"