当我们将鼠标悬停在表单的关闭按钮上时,如何自定义消息 [英] How Can I Customize The Message When We Hover The Mouse Over The Close Button Of A Form

查看:55
本文介绍了当我们将鼠标悬停在表单的关闭按钮上时,如何自定义消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改表单关闭按钮的默认moseOver消息(关闭)的文本。

有没有办法做到这一点?



(通过关闭按钮我的意思是窗口右上角的按钮)



是否有鼠标悬停事件对于那个按钮?

I want to change the text of the default moseOver message ("Close") of the close button of a form.
Is there any way to do it?

(By the close button I mean the button present on the top right corner of the window)

Is there a mouse hover event for that button?

推荐答案

你可以这样使用Jquery:



You Can do this using Jquery like this:


document )。ready( function (){
(document).ready(function(){


#Button1)。hover ( function (){
alert( 你输入了Button!);
},
function (){
alert( 你现在离开了电子按钮!);
});

});
("#Button1").hover(function(){ alert("You entered Button!"); }, function(){ alert("You now leave Button!"); }); });


这篇关于当我们将鼠标悬停在表单的关闭按钮上时,如何自定义消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆