Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在加载下一页时打开覆盖_Javascript_Jquery - Fatal编程技术网

Javascript 在加载下一页时打开覆盖

Javascript 在加载下一页时打开覆盖,javascript,jquery,Javascript,Jquery,试图在页面更改之前打开带有加载消息的覆盖(使用JqueryTools),找不到如何使用我的触发器的href属性(我正在使用class.btn_菜单来显示多个按钮) HTML 我没有太多使用jQuery工具,但您可以稍微改变它的结构,以缓存每个 <div class='btn_menu'> <a class='modalInput' rel='#loading' href="a_mailling.php"></a> </div> $(func

试图在页面更改之前打开带有加载消息的覆盖(使用JqueryTools),找不到如何使用我的触发器的href属性(我正在使用class.btn_菜单来显示多个按钮)

HTML


我没有太多使用jQuery工具,但您可以稍微改变它的结构,以缓存每个

<div class='btn_menu'>
   <a class='modalInput' rel='#loading' href="a_mailling.php"></a>
</div>
$(function() {

    var triggers = $(".btn_menu a").overlay({  
    expose: { 
        color: '#000', 
        loadSpeed: 200, 
        opacity: 0.9 
    }, 

    closeOnClick: false,
    onBeforeLoad: function(){ //right ?
    window.location = //need to get href attribute of clicked trigger

    }


    });

    var buttons = $("#loading button").click(function(e) {
    var yes = buttons.index(this) === 0; 
    });

});
$(function(){
  $('.btn_menu a').each(function(){
    var url=this.href;
    $(this).overlay({
      //other options
      onBeforeLoad: function(){
        //do something with url
      }
    });
  });
});