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
전력을 다하여 자신에게 충실하고 올바른 길로 나가라. 참으로 내 생각을 채울 수 있는 것은 나 자신 뿐이다. 나를 변화시킬 수 있는 건 오로지 나뿐이다. (우렐리우스)