Html & Script

DOM Event Model을 이용하여 팝업창을 항상 활성화 상태로

페이지 정보

본문

소스















var openPop


function e
openPop openPopclosedfalse
openPop

documentaddEventListener
openPopieznInit true
documentdetachEvent
documentieznInit












function popup_link popup_name w h scroll

var winl screenwidth w
var wint screenheight h
wp hwwintwinlscroll
openPop windowpopup_link popup_name wp
documentaddEventListener
documentieznInittrue
documentattachEvent
documentieznInit
openPopieznInit






function
openPop openPopclosedfalse
openPopieznInit
openPopself
documentaddEventListener
documentieznInit true
documentdetachEvent
documentieznInit




windowonunload popUpClose


관련자료

등록된 댓글이 없습니다.
Today's proverb
누군가에게 그날을 생애 최고의 날로 만들어 주는 것은 그리 힘든 일이 아니다. (댄 클라크)