1 Share Code PopUp chỉ hiện thị một lần Tue Nov 01, 2011 4:02 pm
El Kun
Super Moderator
[code:1:2b11]<SCRIPT language=JavaScript>
function addEvent(obj, eventName, func)
{
if (obj.attachEvent){
obj.attachEvent("on" + eventName, func);}
else if(obj.addEventListener){
obj.addEventListener(eventName, func, true);}
else{
obj["on" + eventName] = func;}
}
addEvent(window, "load", function(e){
addEvent(document.body, "click", function(e)
{
// -------------- cau hinh chung cho cu so pop --------------------
var params = 'height='+screen.height+',width=' + screen.width + ',left=0,top=0,location=1,toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1';
// -------------- pop 1 --------------------
if(document
function addEvent(obj, eventName, func)
{
if (obj.attachEvent){
obj.attachEvent("on" + eventName, func);}
else if(obj.addEventListener){
obj.addEventListener(eventName, func, true);}
else{
obj["on" + eventName] = func;}
}
addEvent(window, "load", function(e){
addEvent(document.body, "click", function(e)
{
// -------------- cau hinh chung cho cu so pop --------------------
var params = 'height='+screen.height+',width=' + screen.width + ',left=0,top=0,location=1,toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1';
// -------------- pop 1 --------------------
if(document