i have setup an overlay script to enable me to display an overlay popup so to speak, it works great, because i cna call it from a button etc... However i want to be able to see if the user has come to the page with a subid present in their header, if not, then i want the overlay to appear.
Here is the code where the overlay needs to be called from
if (isset($_GET['eid'])) {
if ($_GET['eid'] == ""){
// CALL THE overlay_choose_house from here
} else{
$estate_id = $_GET['eid'];
}
}
Here is the code that is being called
<script>
$(document).ready(function(){
$('#overlay_choose_house').bind('click', function(event){
if (event.target == $('#overlay_choose_house').get(0))
overlay_choose_house();
});
});
</script>
Thanks for any and all help