以秒为单位指定alt文本超时的任何方法? [英] Any way to specify alt text timeout in seconds?

查看:57
本文介绍了以秒为单位指定alt文本超时的任何方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


很好地发现这个小组是知识的源泉我还有另外一个问题。嘿,不用担心,如果你不知道或不想回答,

请忽略这一点。


有没有办法在

图片上更改工具提示AKA替代文字的超时?通常文本出现约5秒然后消失,但

我希望它能无限期地保留在特定的图片上。 (这是一张带照片的照片。
照片描述)。


有什么想法吗?在此先感谢:)

Hi all,

Well having found this group to be a fountain of knowledge I have another
question. And hey, no worries if you don''t know or don''t want to answer,
please ignore this.

Is there a way to change the timeout of a tooltip AKA alt text over a
picture? Normally the text appears for about 5 seconds then vanishes, but
I''d like it to stay indefinitely on a specific picture. (It''s a photo with
a description of the photo).

Any ideas? Thanks in advance :)

推荐答案

思考Hobnobs或Rich Tea的永恒问题,Chris Ianson

终于宣布:
Pondering the eternal question of "Hobnobs or Rich Tea?", Chris Ianson
finally proclaimed:
有没有办法在
图片上更改工具提示AKA替代文字的超时?


只有Internet Explorer才能使用alt文本执行此操作。其他浏览器

不会对alt属性表现出这种行为,但可能会显示工具提示

的标题属性。

通常文本显示为大约5秒后消失了,但是我希望它能无限期地保留在特定的图片上。 (这是一张带照片描述的照片)。
Is there a way to change the timeout of a tooltip AKA alt text over a
picture?
It''s only Internet Explorer that does this with alt text. Other browsers
don''t exhibit this behaviour for alt attributes, but may show tooltips
for title attributes.
Normally the text appears for about 5 seconds then vanishes, but
I''d like it to stay indefinitely on a specific picture. (It''s a photo with
a description of the photo).




你不能为实际的alt / title文本做这个,但是你或许可以使用Javascript来产生同样的效果。

http://www.kryogenix.org/code/browser/nicetitle/

有这样的东西事情说实话,

但是,如果它是图像的描述那么它不应该在

alt属性中 - alt属性是*替换*如果图像无法看到,则为

图像,而不是描述。


title属性(上述脚本使用的内容)可能更适合这个,但是如果您打算使用的文本是基本的

内容那么你应该在页面上写它而不是隐藏它

远离属性。


-

Dylan Parry
http://electricfreedom.org - 音乐逐步摇滚的地方!


听:SigurRós - Flugufrelsarinn



You can''t do this for the actual alt/title text, but you might be able
to use Javascript to give the same effect.

http://www.kryogenix.org/code/browser/nicetitle/

has something that does this sort of thing. To be entirely honest
though, if it is a description of the image then it shouldn''t be in the
alt attribute anyway - the alt attribute is a *replacement* for the
image in the event that the image cannot be seen, not a description.

The title attribute (which is what the above script uses) is probably
better suited to this, but if the text you plan on using is fundamental
content then you should really write it on the page rather than hide it
away as an attribute.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Listening to: Sigur Rós - Flugufrelsarinn


Chris Ianson写道:
Chris Ianson wrote:
大家好,

很好地发现这个小组是一个知识的源泉我有另一个
题。嘿,不用担心,如果你不知道或不想回答,
请忽略这一点。

有没有办法改变工具提示的超时AKA alt
图片上的文字?通常文本出现约5秒然后消失,但
我希望它能无限期地保留在特定的图片上。 (这是一张带照片描述的照片)。
Hi all,

Well having found this group to be a fountain of knowledge I have another
question. And hey, no worries if you don''t know or don''t want to answer,
please ignore this.

Is there a way to change the timeout of a tooltip AKA alt text over a
picture? Normally the text appears for about 5 seconds then vanishes, but
I''d like it to stay indefinitely on a specific picture. (It''s a photo
with a description of the photo).




不,没有办法做到这一点。并且ALT属性不应该是用于工具提示的

- 它是应该显示的文本,如果

图像无法显示为什么原因。使用TITLE属性

获取有关图像的其他信息。不,你无法控制浏览器显示TITLE属性的方式。


-

Benjamin Niemann

电子邮件:粉红色at odahoda dot de

WWW: http://pink.odahoda.de/


" Dylan Parry" <我们**** @ dylanparry.com>在消息中写道

新闻:ak ************** @ dylanparry.com ...
"Dylan Parry" <us****@dylanparry.com> wrote in message
news:ak**************@dylanparry.com...
你可以'不要为实际的alt / title文本执行此操作,但您可以使用Javascript来产生相同的效果。

http://www.kryogenix.org/code/browser/nicetitle/

谢谢,我看了一眼,虽然这对于

超链接的标题属性很有用,但它似乎无法影响图像:(


此外,我需要从弹出标题中删除目标网址。

有一些东西可以做这类事情。说实话,但是,如果它是对图像的描述然后它不应该在
alt属性中 - 如果无法看到图像,alt属性是
图像的*替换*,而不是描述。


我同意。我已将attrib改为'标题''对于我的图片,它仍然是

给出了IE中的工具提示,但是我想让它为它工作。

任何想法?

title属性(这是上面脚本使用的)可能更适合这个,但如果你打算使用的文本是基本的内容,那么你应该真的写它页面而不是隐藏它作为一个属性。
You can''t do this for the actual alt/title text, but you might be able
to use Javascript to give the same effect.

http://www.kryogenix.org/code/browser/nicetitle/
Thanks, I had a look and whilst that works great for the title attrib of
hyperlinks, it doesn''t seem to be able to affect images :(

Also, I need to remove the destination URL from the popup title.
has something that does this sort of thing. To be entirely honest
though, if it is a description of the image then it shouldn''t be in the
alt attribute anyway - the alt attribute is a *replacement* for the
image in the event that the image cannot be seen, not a description.
I agree. I have changed the attrib to ''title'' for my images, which still
gives the tooltip in IE, however I''d like to get nicetitle working for it.
Any ideas?
The title attribute (which is what the above script uses) is probably
better suited to this, but if the text you plan on using is fundamental
content then you should really write it on the page rather than hide it
away as an attribute.




由于缺乏空间和对整洁的偏好,我有这样的人,

将鼠标悬停在图像上以获取信息。它至少在IE中工作得很好,其他的比它在5秒后消失了:(


有什么想法吗?


谢谢:)



Due to a lack of room and a penchant for neatness, I am having it so people
hover over an image for info on it. It works nice in IE at least, other
than it disappears after 5 seconds :(

Any ideas?

Thanks :)


这篇关于以秒为单位指定alt文本超时的任何方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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