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.

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

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

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)

                    <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'>