묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이 코드는 무엇에 쓰나요?
2003.11.17 18:45
<script>function BFBACEBJAF(){}</script>
<script>function onSelectStartFilter(){document.onselectstart=BFBACEBJAF;if (document.body)document.body.onselectstart=BFBACEBJAF;if (document.location.href.indexOf("saycastplayer") == -1){document.ondragstart=BFBACEBJAF;if (document.body)document.body.ondragstart=BFBACEBJAF;}}onSelectStartFilter();attachEvent("onload", onSelectStartFilter);document.attachEvent("onload", onSelectStartFilter);if (document.body)document.body.attachEvent("onload", onSelectStartFilter);</script>
<script>function onContextMenuFilter(){document.oncontextmenu=BFBACEBJAF;if (document.body)document.body.oncontextmenu=BFBACEBJAF;}onContextMenuFilter();attachEvent("onload", onContextMenuFilter);document.attachEvent("onload", onContextMenuFilter);if (document.body)document.body.attachEvent("onload", onContextMenuFilter);</script>
<script>function onSelectStartFilter(){document.onselectstart=BFBACEBJAF;if (document.body)document.body.onselectstart=BFBACEBJAF;if (document.location.href.indexOf("saycastplayer") == -1){document.ondragstart=BFBACEBJAF;if (document.body)document.body.ondragstart=BFBACEBJAF;}}onSelectStartFilter();attachEvent("onload", onSelectStartFilter);document.attachEvent("onload", onSelectStartFilter);if (document.body)document.body.attachEvent("onload", onSelectStartFilter);</script>
<script>function onContextMenuFilter(){document.oncontextmenu=BFBACEBJAF;if (document.body)document.body.oncontextmenu=BFBACEBJAF;}onContextMenuFilter();attachEvent("onload", onContextMenuFilter);document.attachEvent("onload", onContextMenuFilter);if (document.body)document.body.attachEvent("onload", onContextMenuFilter);</script>
위쪽 : 문장이나 테이블 등의 선택금지, 드래그 금지
아래쪽 : 마우스 오른쪽 클릭해서 나오는 컨텍스트 메뉴 금지
완전 초보만 아니라면 소스정리해서 천천히 살펴보면 답이 나옵니다.
세이클럽거네요. 거 참... 간단하게 정리할 수 있는 것을 복잡하게 만들고...
거기다가 IE에만 쓸 수 있는 함수들뿐이니... 쩝... IE전용 사이트답군요.