Jump to content
dakes

Putin ajutor cu un widget popup?

Recommended Posts

Salut,detin un website cu continut pentru adulti si de ceva timp ma tot chinui sa-i gasesc un popup widget ca atunci cand accesezi site-ul sa iti apara un box pentru a confirma ca ai cel putin 18 ani.

Am un cod :

<!doctype html>

<html lang="en">

<head>

<meta charset="utf-8" />

<title>jQuery UI Dialog - Modal confirmation</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />

<script src="http://code.jquery.com/jquery-1.8.2.js"></script>

<script src="/resources/demos/external/jquery.bgiframe-2.1.2.js"></script>

<script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>

<link rel="stylesheet" href="/resources/demos/style.css" />

<script>

$(function() {

$( "#dialog-confirm" ).dialog({

resizable: false,

height:240,

modal: true,

buttons: {

"OK": function() {

$( this ).dialog( "close" );

},

Cancel: function() {

$( this ).dialog( "close" );

window.location.replace("http://google.ro");

}

}

});

});

</script>

</head>

<body>

<div id="dialog-confirm" title="Atentie!">

<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 4px 10px 30;"></span>Site-ul pe care urmeaza sa îl vizualizati are continut adecvat numai pentru adulti ! Apasand click pe "OK" confirmi si sustii ca ai cel putin 18 ani. Daca nu te rugam apasa "CANCEL" </p>

</div>

</body>

</html>

____________________________________________________________________________

Dar atunci cand il pun face conflict cu celelalte butoane si anume login si cautare. Am schimbat si id-ul butonului si tot degeaba..

M-ati putea ajuta cu un cod asemanator?

Multumesc mult.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...