JQuery exposes overlay function

This function does not work, the popup (div #pop_member) is not displayed.

I am using jQuery Tools library .

function run_expire(){
  $("#pop_member").overlay({
    expose: {
        color: '#212121',
        loadSpeed: 200,
        opacity: 0.9
    },
    closeOnClick: false
  });
}
run_expire();

      

I want this popup to be displayed on page load:

<div class="simple_overlay" id="pop_member">
<div class="details">
  <h4>Member Admin Login Area</h4>
  <p>Sign in below to edit your personal and business information.</p>

  </div><!--details-->
</div><!--simple_overlay-->

      

-1


source to share


2 answers


You need to do this:

$(function() {
  $("#pop_member").overlay({
    expose: {
        color: '#212121',
        loadSpeed: 200,
        opacity: 0.9
    },
    closeOnClick: false,
    api: true  //ADDED api:true
  }).load();   //ADDED .load()
});

      



I got from the code here .

+1


source


Is your page being verified? Make sure it checks first, because this fixes many problems.



0


source







All Articles