A simple tool to store and display texts longer than a few lines.
The search button<div id="xyz">will highlight all</div> the words matching the name of objects that are members of the classes listed in searchedClasses,
itself a member of the KeySet class. The highlighted words are hypertext.
div-xyz 태그로 둘러싸인 문자를 검색하고 싶습니다. example output.
.... 검색 버튼 는 특정 태그에 둘러싸인 특정 문자 검색하기
function myDivHTML(valueName){
if((obj = document.getElementById(valueName)) && obj != null){
return obj.innerHTML;
}
}
나는 요소의
offsetParent
속성을 시도 -하지만 등등 p 태그 & 내부에있을 수 있습니다 대담한 태그 & 굵은 태그 안에있을 수 div 태그 같은 많은 가능성이있다.
주변 텍스트를 얻으려면 어떻게해야합니까? 제한은 10, 20 자일 수 있습니다.
편집 :
주변 텍스트하는 수단 -> 좌측 텍스트 열 또는 문자 (20) 및 우측 (10 개) 또는 (20) 문자.
"는 주변 텍스트"정의 예. – Tomalak
@Tomalak - 예를 확인하고 질문을 편집하십시오. –