I need POpup

Discussion in 'Programming' started by toxic1985, Apr 18, 2009.

  1. #1
    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
     
    toxic1985, Apr 18, 2009 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    ActiveFrost, Apr 19, 2009 IP
  3. toxic1985

    toxic1985 Active Member

    Messages:
    632
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    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.
     
    toxic1985, Apr 19, 2009 IP
  4. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #4
    That's not a popup - that's a confirmation box :p

    <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:
     
    ActiveFrost, Apr 19, 2009 IP
  5. toxic1985

    toxic1985 Active Member

    Messages:
    632
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    i do this but not done
     
    toxic1985, Apr 19, 2009 IP
  6. RockyMtnHi

    RockyMtnHi Active Member

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Can you tell us why it isn't done? It looks like what you are asking for.
     
    RockyMtnHi, Apr 19, 2009 IP
  7. toxic1985

    toxic1985 Active Member

    Messages:
    632
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    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.
     
    toxic1985, Apr 19, 2009 IP
  8. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #8
    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:
     
    ActiveFrost, Apr 19, 2009 IP
  9. toxic1985

    toxic1985 Active Member

    Messages:
    632
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #9
    [​IMG]
    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.
     
    toxic1985, Apr 19, 2009 IP