i need a little help, i'm new to php and zen cart and i want to install a pop up in jquery ui that states if you are under the age of 21 you can not enter my site.. I have the jquery script but i do not understand where to or how to install it. i read a few posts and they did not help me at all. i sell tobacco products and do not want minors not knowing the site is intended for 21 years + viewers. i tried to place it in the javascript folder and in the on load folder but it didn't work. i am also not sure where to place the buttons and text information as well.. thank you in advance. here is my jquery script, also need to know where to place my cookie to check for the answer to my original script.
<script type="text/javascript">
$(document).ready(function() {
$('#test').click(function() {
$.blockUI({ message: $('#question'), css: { width: '275px' } });
});
$('#yes').click(function() {
// update the block message
$.blockUI({ message: "<h1>Remote call in progress...</h1>" });
$.ajax({
url: 'wait.php',
cache: false,
complete: function() {
// unblock when remote call returns
$.unblockUI();
}
});
});
$('#no').click(function() {
$.unblockUI();
return false;
});
});
</script>
...
<input id="test" type="submit" value="Show Dialog" />
...
<div id="question" style="display:none; cursor: default">
<h1>you must be 21 years of age to enter this site. Do you agree to the terms?</h1>
<input type="button" id="yes" value="Yes" />
<input type="button" id="no" value="No" />
</div>



