标签: mouseover

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

有没有一种快速简便的方法在jQuery中做到这一点,我错过了?

我不想使用鼠标悬停事件,因为我已经将它用于其他事情.我只需要知道鼠标是否在给定时刻超过元素.

如果只有"IsMouseOver"功能,我想做这样的事情:

function hideTip(oi) {
    setTimeout(function() { if (!IsMouseOver(oi)) $(oi).fadeOut(); }, 100);
}
Run Code Online (Sandbox Code Playgroud)

jquery mouseover

261
推荐指数
10
解决办法
32万
查看次数

显示有关鼠标悬停的数据

我有一组数据,我正在散点图中.当我将鼠标悬停在其中一个圆圈上时,我希望它能够弹出数据(如x,y值,或许更多).这是我尝试使用的:

vis.selectAll("circle")
   .data(datafiltered).enter().append("svg:circle")
   .attr("cx", function(d) { return x(d.x);})
   .attr("cy", function(d) {return y(d.y)})
   .attr("fill", "red").attr("r", 15)
   .on("mouseover", function() {
        d3.select(this).enter().append("text")
            .text(function(d) {return d.x;})
            .attr("x", function(d) {return x(d.x);})
            .attr("y", function (d) {return y(d.y);}); });
Run Code Online (Sandbox Code Playgroud)

我怀疑我需要提供更多信息才能输入什么数据?

mouseover tooltip d3.js

159
推荐指数
5
解决办法
22万
查看次数

如何使用Java在Selenium WebDriver中执行鼠标悬停功能?

我想在下拉菜单中执行鼠标悬停功能.当我们将鼠标悬停在菜单上时,它会显示新选项.我尝试使用xpath单击新选项.但无法直接单击菜单.所以,作为我试图将鼠标悬停在下拉菜单上的手动方式,然后将单击新选项.

Actions action = new Actions(webdriver);
WebElement we = webdriver.findElement(By.xpath("//html/body/div[13]/ul/li[4]/a"));
action.moveToElement(we).build().perform();
Run Code Online (Sandbox Code Playgroud)

java selenium mouseover selenium-webdriver

124
推荐指数
6
解决办法
34万
查看次数

iPad/iPhone悬停问题导致用户双击链接

我有一些我以前建立的网站,使用jquery鼠标事件...我只是有一个ipad,我注意到所有鼠标悬停事件都是通过点击转换...所以例如我必须做两次点击而不是一次..(第一次悬停,比实际点击)

有解决方法吗?也许是一个jquery命令我shoudl已经使用而不是鼠标悬停/出去等..谢谢!

jquery mouseover hover ipad

121
推荐指数
5
解决办法
14万
查看次数

带有CSS的图像灰度和鼠标悬停时重新着色?

我想要一个彩色的图标(并将是一个链接)并将其转换为灰度,直到用户将鼠标放在图标上(然后它将为图像着色).

这可能吗,并且以IE和Firefox支持的方式?

css mouseover grayscale

84
推荐指数
3
解决办法
26万
查看次数

如何在WPF中更改Button MouseOver的背景?

我在这个XAML页面上有一个按钮:

<Button Content="Button" HorizontalAlignment="Left" VerticalAlignment="Bottom" 
    Width="50" Height="50" HorizontalContentAlignment="Left" 
    BorderBrush="{x:Null}" Foreground="{x:Null}" Margin="50,0,0,0">
    <Button.Style>
        <Style TargetType="Button">
            <Setter Property="Background" Value="Green"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="Red"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Button.Style>
</Button>
Run Code Online (Sandbox Code Playgroud)

但是当我将鼠标放在我的按钮上时,按钮的背景会变为默认的窗口灰色背景.
有什么问题?

这是鼠标悬停之前和之后的按钮图片:
之前:
之前
后:
后

wpf triggers background mouseover button

82
推荐指数
4
解决办法
16万
查看次数

如何删除WPF按钮上的默认鼠标悬停效果?

我的问题是,在WPF中,每当我尝试使用触发器或动画更改按钮背景的颜色时,默认鼠标悬停效果(灰色与橙色光晕)似乎优先.

经过广泛的搜索后,我对如何消除这种影响毫无头绪.

wpf mouseover button

77
推荐指数
5
解决办法
13万
查看次数

如何在鼠标悬停时显示工具提示或项目信息?

我显示5 userImage上一个screen.I要显示userIDemailmouseover所使用的那些userImage.I alt图像控件的属性,但在mozila,Chrome和IE的一些版本不工作.那么在鼠标悬停时显示信息的其他更好的方法是什么?

html mouseover

53
推荐指数
3
解决办法
11万
查看次数

鼠标悬停时谷歌地图v3标记信息窗口

我已经冲刷计算器和其他论坛,包括谷歌地图V3 API文档的答案,但我无法找到如何改变,从火灾标记信息窗口时点击鼠标悬停在我一起工作的文件.

我正在使用谷歌图书馆的一个包含融合表层的演示.

您可以放大聚类并查看位置的小红圈标记.您必须单击以显示信息窗口.我希望翻转以显示信息窗口.

我的演示在这里:http: //www.pretravelvideo.com/gmap2/

functions.js文件完成了大部分工作:http: //www.pretravelvideo.com/gmap2/functions.js

google-maps mouseover google-maps-api-3 google-maps-markers google-fusion-tables

53
推荐指数
3
解决办法
10万
查看次数

鼠标结束时更改按钮的颜色

我想在IsMouseOver == True时更改按钮的背景颜色

    <Button Command="{Binding ClickRectangleColorCommand}" Background="{Binding Color, Converter={StaticResource RGBCtoBrushColorsConverter},Mode=TwoWay}" Width="auto" Height="40">
        <TextBlock Foreground="Black" Text="{Binding Color, Converter={StaticResource RGBCColorToTextConveter},Mode=TwoWay}"/>
          <Button.Style>
             <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
               <Style.Triggers>
                  <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="DarkGoldenrod"/>
                  </Trigger>
               </Style.Triggers>
             </Style>
         </Button.Style>
    </Button>
Run Code Online (Sandbox Code Playgroud)

我似乎无法理解为什么这个触发器不起作用.

wpf user-interface xaml mouseover button

53
推荐指数
3
解决办法
12万
查看次数