1. <small id='u8IsF'></small><noframes id='u8IsF'>

        <i id='u8IsF'><tr id='u8IsF'><dt id='u8IsF'><q id='u8IsF'><span id='u8IsF'><b id='u8IsF'><form id='u8IsF'><ins id='u8IsF'></ins><ul id='u8IsF'></ul><sub id='u8IsF'></sub></form><legend id='u8IsF'></legend><bdo id='u8IsF'><pre id='u8IsF'><center id='u8IsF'></center></pre></bdo></b><th id='u8IsF'></th></span></q></dt></tr></i><div id='u8IsF'><tfoot id='u8IsF'></tfoot><dl id='u8IsF'><fieldset id='u8IsF'></fieldset></dl></div>
        <legend id='u8IsF'><style id='u8IsF'><dir id='u8IsF'><q id='u8IsF'></q></dir></style></legend>

          <bdo id='u8IsF'></bdo><ul id='u8IsF'></ul>
        <tfoot id='u8IsF'></tfoot>

      1. 如何使用可点击的内容打开悬停事件的弹出窗口

        how to open a popup on hover event with clickable contant(如何使用可点击的内容打开悬停事件的弹出窗口)
      2. <legend id='LulZH'><style id='LulZH'><dir id='LulZH'><q id='LulZH'></q></dir></style></legend>
          <bdo id='LulZH'></bdo><ul id='LulZH'></ul>

                  <small id='LulZH'></small><noframes id='LulZH'>

                1. <i id='LulZH'><tr id='LulZH'><dt id='LulZH'><q id='LulZH'><span id='LulZH'><b id='LulZH'><form id='LulZH'><ins id='LulZH'></ins><ul id='LulZH'></ul><sub id='LulZH'></sub></form><legend id='LulZH'></legend><bdo id='LulZH'><pre id='LulZH'><center id='LulZH'></center></pre></bdo></b><th id='LulZH'></th></span></q></dt></tr></i><div id='LulZH'><tfoot id='LulZH'></tfoot><dl id='LulZH'><fieldset id='LulZH'></fieldset></dl></div>
                    <tbody id='LulZH'></tbody>
                2. <tfoot id='LulZH'></tfoot>
                  本文介绍了如何使用可点击的内容打开悬停事件的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在使用传单.

                  我正在尝试创建一个带有可点击内容的弹出窗口.

                  and i am trying to create a popup with with clickable content.

                  现在我找到了如何将点击事件上的弹出窗口与内容绑定:

                  now i found how i can bind popups on click event with content:

                  marker.on('click', function(e){
                       marker.bindPopup("<div />").openPopup();
                  }
                  

                  我发现了如何在悬停时创建弹出窗口:

                  and i found out how to create the popup on hover:

                  marker.on('mouseover', function(e){
                      e.target.bindPopup("<div />").openPopup();
                  
                      }});        
                  
                  marker.on('mouseout', function(e){  
                      e.target.closePopup();
                  
                  }});
                  

                  现在我似乎不能做的是让弹出窗口保持打开状态,以便用户点击弹出窗口内的链接.我将不胜感激.

                  now what i cant seem to do is make the popup stay open in order for the user to click on links inside the popup. i would appreciate any help.

                  推荐答案

                  一种方法是这样 http://jsfiddle.net/cxZRM/98/基本上它是在您的设置中添加一个计时器,并且您仅在经过任意长时间后才关闭弹出窗口,以便给用户一些时间在您的 div 上进行交互.

                  one approach is this http://jsfiddle.net/cxZRM/98/ basically it's adding a timer to your setup and you only close the popup after an arbitrarily long time has passed so as to give the user some time to interact on your div.

                  marker.on('mouseover', function(e){
                      e.target.bindPopup("dsdsdsdsd").openPopup();
                      start = new Date().getTime();
                    });        
                  
                  marker.on('mouseout', function(e){  
                      var end = new Date().getTime();
                      var time = end - start;
                      console.log('Execution time: ' + time);
                      if(time > 700){
                      e.target.closePopup();
                      }
                  });
                  

                  更好的方法是使用 http://jsfiddle.net/AMsK9/确定您的鼠标位置并在鼠标仍在弹出窗口周围的区域内时保持弹出窗口打开.

                  a better approach would be to use http://jsfiddle.net/AMsK9/ to determine your mouse position and keep the popup open while the mouse is still within an area around the popup.

                  这篇关于如何使用可点击的内容打开悬停事件的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                  Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                  Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                  How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                  Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                  Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))

                    <i id='Livrt'><tr id='Livrt'><dt id='Livrt'><q id='Livrt'><span id='Livrt'><b id='Livrt'><form id='Livrt'><ins id='Livrt'></ins><ul id='Livrt'></ul><sub id='Livrt'></sub></form><legend id='Livrt'></legend><bdo id='Livrt'><pre id='Livrt'><center id='Livrt'></center></pre></bdo></b><th id='Livrt'></th></span></q></dt></tr></i><div id='Livrt'><tfoot id='Livrt'></tfoot><dl id='Livrt'><fieldset id='Livrt'></fieldset></dl></div>
                      <tfoot id='Livrt'></tfoot>

                          <tbody id='Livrt'></tbody>
                          <bdo id='Livrt'></bdo><ul id='Livrt'></ul>

                          • <legend id='Livrt'><style id='Livrt'><dir id='Livrt'><q id='Livrt'></q></dir></style></legend>

                            <small id='Livrt'></small><noframes id='Livrt'>