페이지 내에서 ctrl+f > 자료실

회원로그인

오늘 본 게시물

오늘 본 페이지

없음

오늘 본 C.m.A Util

없음

자료실

자료실

페이지 내에서 ctrl+f

페이지 정보

본문

<script>
function findStr() {
	var n = 0;
	var str = document.getElementById("str").value;
	if(navigator.userAgent.indexOf("rv:11") > -1) {
		var f, contents = document.body.createTextRange();
		for(var i = 0; i <= n && (f = contents.findText(str)) != false; i++) {
			contents.moveStart('character');
			contents.moveEnd('textedit');
		}
		if(f) {
			contents.moveStart('character', -1);
			contents.findText(str);
			contents.select();
			n++;
		}
	} else {
		window.find(str);
	}
}
</script>

<input type="text" id="str" class="frm_input"> <input type="button" value="찾기" class="btn" onclick="findStr()"> <div> This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. </div>
추천 0 비추천 0

  • 회사 : Cginjs
  • 대표 : Cginjs
  • 주소 :
  • 메일 : admin@mysample.com
  • 사업자 등록번호 :
Copyright © Cginjs All rights reserved.
notice