I need popup banner for my site. and while page load popup must be show on middle of webpage. with one line Text "Welcome". can anyone help me out? Thanx in Advance
Here's a nice ( though, very basic one ) tutorial on how to make popup's : http://www.tizag.com/javascriptT/javascriptpopups.php
in that popup code it will open another page. but I don't want to open another page. that popup only for waring. What i need:- When a user open my website index page open with a popup box. that contain message "if you are 18+ then click" I need this.
That's not a popup - that's a confirmation box <SCRIPT language="JavaScript"> <!-- function go_there() { var where_to= confirm("Do you really want to go to this page??"); if (where_to== true) { window.location="http://yourplace.com/yourpage.htm"; } else { window.location="http://www.barbie.com"; } } //--> </SCRIPT> HTML:
actually i want a confirmation box as Mr. Activefrost says (i didn't know that is confirmation box.) when any user open my site page a confirmation box must be open with the warning "if you are not 18+ pelase leave ". I want this. can anyone help me out.
It's so hard for you to change the text ? <SCRIPT language="JavaScript"> <!-- function go_there() { var where_to= confirm("This website contains adult content! Are you at least 18 years old ?"); if (where_to== true) { window.location="http://www.yoursite.com/main.php"; } else { window.location="http://www.google.com"; } } //--> </SCRIPT> HTML:
i Need this. I try to get this code from a site but after open his source i got only this code "<div id='ajax_load_indicator' class='ajax_load_indicator' style='z-index:1000; position:absolute; display:none; font-size:18px; width:300px; height:150px; text-align:center; background-color:white; border:5px solid black; padding:20px;'> This website contains sexually explicit material. You must be 18 years of age or older to proceed.<br /><br />" but nathing done.