提示框在文本框的一侧 [英] Hint box in the side of text box

查看:57
本文介绍了提示框在文本框的一侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对java脚本有疑问。


当我将鼠标移到我的文本字段时,在它的旁边出现了一些东西,请输入用户名。我不知道他们是怎么做的。请帮助我

I have a doubt in java script.


when i keeps the mouse over to my text field,in the side of it something appears like please enter username.I dont know how they r doing.please help me

推荐答案

这是非常基本的,他们所拥有的只是一个隐藏的跨度,然后是一个输入领域。这将是这样做的:


[HTML]< span id =" name" style =" visibility:hidden;">用户名:< / span>

< input type =" text" onmouseover =" document.getElementById(''name'')。style .visibility =''visible''"的onmouseout = QUOT;的document.getElementById(姓名)式。能见度=隐藏" /> [/ HTML]


希望这就是你想要的。
It is very basic really, all they have is a span that is hidden and then to the side an input field. It would be done like this:

[HTML]<span id="name" style="visibility:hidden;">User Name:</span>
<input type="text" onmouseover="document.getElementById(''name'').style .visibility=''visible''" onmouseout="document.getElementById(''name'').style. visibility=''hidden''" />[/HTML]

Hope this is what you''re after.


嗨...


更改主题标题以更好地描述问题...请始终使用好的主题标题


亲切的问候
hi ...

changed thread title to better describe the problem ... please always use a good thread title

kind regards


hi im elango我有一个疑问。我看过一个名为的网站mginger.com。在这个网站上,有一个名为invite s的标签。当进入网站时,两个文本框就在那里。同时保持鼠标焦点在那里它显示为请在相应的文本框的侧面输入名称。不是工具提示..请任何人帮助我。
hi i m elango i have a doubt .i have seen a site named mginger.com.In this site, a tab named invite s there. while entered in to the site two text boxes r there .while keeping the mouse focus over there it shows as Please enter the name in the side of the appropriate text box.its not an tooltip..please anyone help me.


这篇关于提示框在文本框的一侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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