使工具提示保持更长时间...... [英] Making tooltips stay longer...

查看:45
本文介绍了使工具提示保持更长时间......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有没有办法让网页工具提示在网页上使用CSS时保持比默认值更长的

5秒?只要鼠标悬在无论什么上,我宁愿让它保持可见

。原因是:我已经创建了网页并使用各种javascripts作为工具提示

弹出窗口,并且它们很好并且非常可调整。但是,我更愿意只用

使用标题。和/或alt属性并以某种方式改变它,以便

我的页面的查看者可以在它消失之前读取整个工具提示。

谢谢!


PlainDave

DDAS网页设计< - (一厢情愿!)

Hi,

Is there a way to make windows tooltips stay up longer than the default
5 seconds using CSS in a web page? I''d prefer to have it stay visible
as long as the mouse is over the "whatever." The reason: I''ve been
creating web pages and using various javascripts for the tooltip
popups, and they are fine and very "tweakable." But, I''d prefer to just
use the "title" and/or the "alt" attribute and somehow alter it so that
viewers to my pages can read the entire tooltip before it disappears.
Thanks!

PlainDave
DDAS Web Design <--(wishful thinking!)

推荐答案

" PlainDave" <峰; dd ***** @ gmail.com>写道:
"PlainDave" <dd*****@gmail.com> wrote:
有没有办法让windows工具提示


没有这样的东西,可视浏览器可能会弹出一个标题内容

框,但它也可能(被配置为)对它做任何事情。现在要用特定的操作系统做


在网页中使用CSS时,熬夜时间超过默认值
5秒?


再次没有这样的事情,没有默认。任何弹出框显示

持续时间因浏览器而异,幸运的是没有任何网页

代码可以改变持续时间。

只要鼠标悬在无论什么上,我宁愿让它保持可见。原因是:我一直在创建网页并使用各种javascripts作为工具提示弹出窗口,并且它们很好并且非常可调整。但是,我更愿意只使用标题。和/或alt属性并以某种方式改变它,以便
我的页面的查看者可以在它消失之前读取整个工具提示。
Is there a way to make windows tooltips
No such thing, a visual browser may display title content in a pop up
box, but it may also (be configured to) do nothing with it. Nowt to do
with a particular OS.
stay up longer than the default
5 seconds using CSS in a web page?
Again no such thing, there is no "default". Any pop up box display
duration will vary across browsers and fortunately there''s nothing web
code can do to change that duration.
I''d prefer to have it stay visible
as long as the mouse is over the "whatever." The reason: I''ve been
creating web pages and using various javascripts for the tooltip
popups, and they are fine and very "tweakable." But, I''d prefer to just
use the "title" and/or the "alt" attribute and somehow alter it so that
viewers to my pages can read the entire tooltip before it disappears.




您可以使用CSS方法显示文本悬停,但要显示alt

或title属性内容需要一个支持

生成内容的浏览器,不用说这不包括IE。如果IE

兼容性是必需的,你所能做的就是在文档中插入文本作为页面

内容,默认隐藏它然后在
上显示它b $ b鼠标悬停。毋庸置疑,您应该考虑编写此类文本

作为页面内容是否合适,您的文档应该使用CSS

禁用。


我建议有一个工具提示的原因。弹出窗口在某个时间后消失了,它们模糊/覆盖部分显示器。如果用户需要更多时间阅读内容,您应该问自己是否正确使用了

title属性及其内容。


适当使用,如果用户想要更多时间阅读,他/她将能够将焦点移开并重新开启以重新出现。

-

Spartanicus



You could use a CSS method to display text on hover, but to display alt
or title attribute content would require a browser that supports
generated content, needless to say that this doesn''t include IE. If IE
compatibility is required all you could do is insert the text as page
content in the document, hide it by default and then revealing it on
mouse over. Needless to say that you should consider if coding such text
as page content is appropriate, your document should work with CSS
disabled.

I''d suggest that there is a reason why "tooltip" pop ups disappear after
a certain time, they obscure/cover part of the display. If a user needs
more time to read the content you should ask yourself if you are using
the title attribute and its content appropriately.

Appropriately used, if a user wants more time to read he/she will be
able to move the focus off and back on again to make it reappear.

--
Spartanicus


星期四,2005年11月24日10:54:14 GMT来自Spartanicus

< in ***** @ invalid.invalid>:
Thu, 24 Nov 2005 10:54:14 GMT from Spartanicus
<in*****@invalid.invalid>:
再次没有这样的事情,没有默认。任何弹出框显示
持续时间会因浏览器而异,幸运的是,没有任何网页代码可以用来改变这段时间。
Again no such thing, there is no "default". Any pop up box display
duration will vary across browsers and fortunately there''s nothing web
code can do to change that duration.




但是,如果用户可以通过浏览器改变这种设置,那将是很好的。如果有办法在Mozilla中做到这一点,我找不到它

" about :config"。


-

Stan Brown,Oak Road Systems,美国纽约汤普金斯县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证者: http://validator.w3.org/

CSS 2.1规范: http://www.w3.org/TR/CSS21/

验证者: http://jigsaw.w3.org/css-validator/

为什么我们不能帮助你:
HTTP:// divei ntomark.org/archives/200..._wont_help_you



It would be nice, however, if the user could vary that by browser
settings. If there''s a way to do it in Mozilla, I couldn''t find it n
"about:config".

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won''t Help You:
http://diveintomark.org/archives/200..._wont_help_you


如何使用CSS方法在悬停时显示文本?那将是完美的满足我的需求,或者至少它会很高兴知道。谢谢!


PlainDave


Spartanicus写道:
How does one use a CSS method to display text on hover? That would be
perfect for my needs, or at least it would be nice to know. Thanks!

PlainDave

Spartanicus wrote:
您可以使用CSS方法在悬停时显示文字,但要显示alt
You could use a CSS method to display text on hover, but to display alt



----- snip -----


-----snip-----


这篇关于使工具提示保持更长时间......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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