popup code!!!

liunx

Guest
Hey, i was just wondering if anyone out there knows how to make an Internet explorer popup. You know, the little gray box that pops up every once in a while with an error message and an ok button? I've seen them used before useing either javascript or HTML, but i can't seem to find the code for it on either! I also want to be abble to disable the close button. Please, if anyone knows how to do this can you let me know?<!--content-->You mean this:<script type="text/javascript"><!--<br />
alert("Hello World!!!");<br />
//--></script>Or:<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" onclick="alert('Hello World!!!');return false;">Hello World!!!</a>I don't know what you mean when you say you want to disable the close button. What close button?<!--content-->yea, that looks prety simaler to waht i've seen before. just let me know if any of the things typed in that code are meant to be replaced with something else like: "'URL'" might meen "'http://blah-blaj-/.com'". you know what i mean? And what I meant by "disable the close button" is fade out the "X" in the upper right corner of the box so i can't be used, as in certain error reports. I know it can be done, I've been kept clicking on popup boxes for hours.lol. thanks man.<!--content-->hey, sorry, i forgot to include this bit of information; i want either a load on camand popup, or a popup that "pops up" upon the loading of a certain page.<!--content-->You can't alter the alert box in any way shape or form, you can only add text to it. There are also other alert-type boxes, they are the prompt box and the confirm box, there's also another which asks whether you would like to set the current page as your homepage, I don't know how to call that one (i don't know why anyone would want to, it's so annoying and the answer is obviously no). You can't alter any of those boxes either.<br />
<br />
I don't know where you saw this altered alert box but you can't do it with JavaScript full stop.<br />
<br />
Here's the code for a pop-up onload, use it at your peril:<script type="text/javascript"><!--<br />
<br />
function pop(){<br />
<br />
newwin=window.open("","blank","width=100,height=100")<br />
newwin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"');<br />
newwin.document.writeln(' "http://www.w3.org/TR/html4/loose.dtd">');<br />
newwin.document.writeln('<html>');<br />
newwin.document.writeln('<head>');<br />
newwin.document.writeln('<meta http-equiv="content-script-type" content="text/javascript">');<br />
newwin.document.writeln('<meta http-equiv="content-style-type" content="text/css">');<br />
newwin.document.writeln('<meta http-equiv="content-type" content="text/html; charset=windows-1252">');<br />
newwin.document.writeln('<title>Annoying Pop-up</title>');<br />
newwin.document.writeln('</head>');<br />
newwin.document.writeln('<body>');<br />
newwin.document.writeln('<h1>User Annoyence!!!</h1>');<br />
newwin.document.writeln('<p>I'm trying to drive away visitors with annoying popups. Has it worked???</p>');<br />
newwin.document.writeln('</body>');<br />
newwin.document.writeln('</html>');<br />
<br />
}<br />
<br />
//--></script><br />
<br />
</head><br />
<br />
<body onload="pop();"><!--content-->hey, i guess I came off the wrong way i hate popups, and spam.. I'm basically spaming the spamers. I'm useing this as a technique to filter out the people I don't want on my site. And i guess I'm just not educated in full termanology of this stuff since I have obviously said something I didn't mean t say. I never said anything about an altered alert box, i did say something about a different type of alert box, but this is irrelevent now. Thanks for all your help. later.<!--content-->I hate pop-ups that's why everything in the pop-up code was sarcastic.<br />
<br />
How can you differentiate between a spammer and a normal user anyway?<!--content-->I place links to certain pages that I know no one I want on my site will be interested to go to. Certain (almost blank) pages that I make. Like, for example; pages haveing to do with "pop-culture" and the likes. But I'm not that orginized and not that oficial either, it's just something I want to do for my site. I'm a bit of a newbie so forvige my ignorince.<!--content-->
 
Back
Top