how about this , YOU CREATE A FLOATING DIV AND MAKE IT SEEM LIKE A POPUP INSTED OF ANNOYING PEOPLE WITH REAL POPUPS.
* -dt- hates popups and people who think about using them.....
may73alliance! you do realise non of the above create a popup right?
please read or atleast link to real code insted of copying random bits of javascript which you clearly dont know what they do.
edit:
because i doubt you will be able to write a popup like what im talking about heres somecode to start you off
code:
//html data to display inside the thing
var htmldata = '';
//style of the box...
var style = 'position:fixed;z-index: 99;left:5px;top:9px;width:17.6cm;border-radius: 7px; background: purple ;padding: 3px;';
//try to get the element by id...
var popup = document.getElementById("popup");
//try to display it then set the innerhtml of the element to the htmldata.
try{
popup.style.display = "block";
popup.innerHTML = htmldata;
}
//if element dosnt exist the try created an error , create it here
catch(e){
body = window.document.getElementsByTagName("body")[0];
box = window.document.createElement("div");
box.setAttribute("id", 'popup');
box.setAttribute("style", style);
box.innerHTML = htmldata;
body.appendChild(script);
}
to close the thing all you do is hide it with something like...
code:
document.getElementById("popup").style.display = 'none';
removing it from the DOM isnt needed scince this code will reuse the div.