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
갑작스럽게 착한 사람이 되거나 악인이 되는 사람은 없다. (시드니)