Tag: mouseover

谷歌地图v3鼠标hover的标志信息窗口

我已经淘到了stackoverflow和其他论坛,包括谷歌地图V3 API文件的答案,但我找不到如何更改事件, 点击 鼠标hover在我正在使用的文件的信息窗口。 我正在从包含融合表层的谷歌图书馆演示。 您放大集群并查看位置的小红色圆圈标记。 你必须点击以显示一个信息窗口。 我希望滚动显示信息窗口。 我的演示在这里: http : //www.pretravelvideo.com/gmap2/ functions.js文件在这里完成大部分工作: http : //www.pretravelvideo.com/gmap2/functions.js

先closuresInfoWindow再打开另一个

大家晚上好,我写信是因为InfoWindow有问题。 我有一个通过JSON检索数据的ajax函数,但是当打开另一个时,我无法自动closuresInfoWindow。 我的代码是这样的: var mapOptions = { center: new google.maps.LatLng(44.49423583832911, 11.346244544982937), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("mappa_locali"),mapOptions); $.ajax({ type:'GET', url:"locali_json.php"+urlz, success:function(data){ var json = JSON.parse(data); for (var i=0; i<json.length; i++) { point = new google.maps.LatLng(json[i].latitudine,json[i].longitudine); var infowindow = new google.maps.InfoWindow; infowindow.setContent('<a href="./dettaglioLocale.php?id_loc='+json[i].id_locale+'">'+json[i].nome_locale+'</a><br>'+json[i].address); addMarkerz(point,infowindow); } } }) } function addMarkerz(point,infowindow) { position: point, […]

如何检查鼠标是否在jQuery中的元素?

有没有一个快速和简单的方法来做到这一点在jQuery中,我失踪了? 我不想使用mouseover事件,因为我已经使用它来做其他事情了。 我只需要知道在给定时刻鼠标是否在某个元素上。 我想要做这样的事情,如果只有一个“IsMouseOver”函数: function hideTip(oi) { setTimeout(function() { if (!IsMouseOver(oi)) $(oi).fadeOut(); }, 100); }

在圆形的鼠标悬停上显示数据

我有一组数据,我正在分散绘制。 当我将鼠标悬停在其中一个圆圈上时,我希望它弹出数据(如x,y值,也许更多)。 这是我尝试使用的: vis.selectAll("circle") .data(datafiltered).enter().append("svg:circle") .attr("cx", function(d) { return x(dx);}) .attr("cy", function(d) {return y(dy)}) .attr("fill", "red").attr("r", 15) .on("mouseover", function() { d3.select(this).enter().append("text") .text(function(d) {return dx;}) .attr("x", function(d) {return x(dx);}) .attr("y", function (d) {return y(dy);}); }); 我怀疑我需要更多的信息来输入什么数据?