点击文字弹出层 & lt; script type = "text/javaScript"& gt;
var ex = {
addevent : function (k, v) { if (me. addEventListener)
me.addEventListener(k, v, false);
else if (me.attachEvent)
me.attachEvent("on" k, v);
else
나[ "on" k] = v;
},
RemoveEvent: function (k, v) {
var me = this;
if (me.removeEventListener)
me.removeEventListener(k , v, false);
else if (me.detachEvent)
me.detachEvent("on" k, v);
else
나["on" k] = null;
},
중지: 기능(evt) {
evt = evt || window.event;
evt.stopPropagation ? evt.stopPropagation() : evt.cancelBubble = true;
}
};
document.getElementById('pop').onclick = EX.stop; var url = '#'; function show () { var o = document.getElementById ( 'pop'); settimeout ( function () { EX.addEvent.call(document, 'click', hide) });
}
function hide() {
var o = document.getElementById('pop');
o.style.display = "none";
EX.removeEvent.call(document, 'click', hide);
}
function show2() {
var o = 문서. getElementById('pop2');
o.style.display = "";
setTimeout(function () { EX.addEvent.call(document, 'click', hide2); });
}
function hide2() {
var o = document.getElementById('pop2');
o.style.display = "none";
EX.removeEvent.call(document, 'click' , hide2);
}