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


관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
우정에 정력을 쏟아라. 그러면 당신에게 돌아오는 대가는 놀라울 만큼 만족스러울 것이다. 친구들이 당신을 필요로 할 때 당신이 그들에게 도움을 준다면, 당신이 후원과 위안을 얻기 위해 그들을 필요로 할 때 좋은 친구들이 도움을 줄 것이다. 롱펠로우가 말했듯이 친구를 가지려면 친구가 되어라. (어니 젤린스키 "결혼하지 않는 즐거움"中에서)