0
마우스 위치에서 텍스트를 가져 오는 방법은 무엇입니까? 나는이자바 스크립트가 모스 위치에서 텍스트 가져 오기
document.body.onmousemove = function(){
//todo:Get text at mouse position
}
마우스 위치에서 텍스트를 가져 오는 방법은 무엇입니까? 나는이자바 스크립트가 모스 위치에서 텍스트 가져 오기
document.body.onmousemove = function(){
//todo:Get text at mouse position
}
One way of doing so is using [PrototypeJs][1]
Try this one let me know if there is any problem
$(document.body).observe('click', respondToClick);
function respondToClick(event) {
var element = event.element();
var source = element.innerHTML;
}
같은 일부 텍스트 무엇을 의미합니까 지금 있습니까? 한 글자, 단어, 일부 컨테이너의 텍스트 블록을 의미합니까? 당신이 의미하는 것에 따라 이것은 매우 쉽거나 매우 어려울 수 있습니다. – Shaunwithanau
안녕하세요 Shaunwithanau. 신속한 답변은 thxx입니다. 아이디어는 마우스 위치에서 한 단어를 얻는 것입니다. – Vasioky