Listing 1 shows the code for this tooltip.
清单1显示了这个工具提示的代码。
Notice the value of the hostname variable as a tooltip.
请注意作为工具提示的主机变量的值。
Listing 2 shows the code for the content of the tooltip.
清单2显示了该工具提示内容的代码。
The tooltip content can be customized for different functions.
工具提示内容可以针对不同的功能定制。
A name attribute that jTip uses to render a header inside the tooltip.
name属性,jTip使用它在工具提示内呈现标题。
More than one tooltip can be visible concurrently, some fading out while another fades in.
同时可有多个工具提示可视,一些淡出,一些淡入。
Once there the website shows its own icon, tooltip, and jump list as if it were an installed application.
一旦将站点“钉在”了任务栏上,站点就会显示自己的图标、提示和跳转列表,就好像他们是安装好的应用一样。
The title attribute tells the API what to display as a tooltip when the user's mouse hovers over the marker.
title属性告诉API,当用户的鼠标悬停在该标记上时,显示什么内容作为工具提示。
However, you need to show the tooltip for a component that lies in the local-coordinate system of its parent.
不过,您需要为位于其父组件局部坐标系中的组件显示工具提示。
The sample application, FadingTooltip, is a more elaborate tooltip than the default built into most browsers.
样例应用程序fadingtooltip比内置于大多数浏览器的默认工具提示更为精致。
Users who face busy pages with dozens or hundreds of elements might miss a tooltip that pops instantly into view.
面对有数十个或数百个元素的繁忙页面,用户很可能会错过即刻弹出的工具提示。
How this message is actually displayed is implementation specific; at present the GNOME notification area displays a tooltip.
该消息的实际显示方式是特定于实现的;目前,GNOME通知区显示工具提示。
Setting the status bar in the browser is easy, but doing something useful-like popping up a tooltip-is a bit more difficult.
在浏览器中设置状态栏相当简单,但是要实现一些有用的功能(比如说弹出一个工具提示)则不是那么容易。
You can verify this by checking if the tooltip has changed from "Kulvir hates gyros." to "Kulvir loves gyros." See figure 17.
检查工具提示是否由 “Kulvirhatesgyros” 更改为“Kulvirloves gyros”(参见图17),即可证实是否完成了更新。
While you're at it, add a new CSS declaration to control the width of the tooltip content so it doesn't end up with a scrollbar.
与此同时,添加一个新CSS声明以控制工具提示内容的宽度,从而不需要再用到滚动条。
The page first employs an Ajax call to update the contents of the tooltip by using the Ajax.Updater class from the Prototype.js library.
该页面首先使用一个Ajax调用更新工具提示的内容,方法是使用 Prototype.js 库中的 Ajax.Updater类。
The arguments for the createFadingTooltip function are an HTML element identifier, the content of the tooltip, and an optional set of parameters.
createFadingTooltip 函数的自变量是一个HTML元素标识符、工具提示的内容和一组可选的参数。
The tooltip is an HTML division element containing whatever text, images, and markup are passed to the constructor in its tooltipContent argument.
工具提示是一个HTMLdiv元素,其中可以包含任何文本、图像和标记,它在 tooltipContent 参数中传递给构造方法。
Part 1 describes a tooltip widget for Web pages that has more elaborate behavior than the built-in implementation provided by popular Web browsers.
第1部分描述web页面的一个工具提示部件,与流行的Web浏览器实现的内置实现相比,它具有更高级的行为。
Each time a timetick event occurs in FadeIn state, the handleEvent method will call a function that increases the opacity of the tooltip slightly.
每当在FadeIn状态下发生timetick事件时,handleEvent方法将调用一个函数,它略微增加工具提示的不透明度。
These methods will cancel any running timers, delete the tooltip if one has been created, and return the finite state machine to its initial state.
这些方法将取消任何正在运行的计时器,如果已经创建了工具提示,就删除它,并将有限状态机返回到初始状态。
Editor responsiveness - Updating IntelliSense, displaying the QuickInfo tooltip and processing AutoComplete requests won't degrade editor experience.
编辑器响应—更新智能感应、显示QuickInfo工具提示,以及处理自动完成请求,这些操作不会降低编辑器的使用体验。
The second tooltip, for the TestInput HTML element, formats the content with some markup, and specifies the fade in and fade out times (in seconds).
第二个工具提示用在TestInputHTML元素上,它的内容需要用一些标记进行格式化,并指定淡入和淡出时间(以秒为单位)。
Any of these animation effects might be as effective with context menus, dialog boxes, and input prompts as they would be with tooltip-like widgets.
这些动画效果也可以应用于上下文菜单、对话框和输入提示框。
You want the tooltip to appear near the cursor when the timeout event occurs in Pause state, but browsers do not pass the cursor position to timer events.
当在Pause状态下出现timeout事件时,希望工具提示出现在鼠标光标附近,但是浏览器没有将鼠标位置传递给计时器事件。
Part 1 of this series described a tooltip widget for Web pages with more elaborate behavior than the built-in implementation provided by popular Web browsers.
本系列的第1部分描述web页面的一个工具提示部件,与流行的Web浏览器提供的内置实现相比,它具有更精致的行为。
This FadingTooltip widget fades into view after the cursor hesitates over an HTML element, and then fades from view after the tooltip has displayed for a while.
当鼠标光标停留在一个HTML元素上之后,这个FadingTooltip部件会淡入视图,工具提示显示一段时间之后就淡出视图。
Shows call context: In the sequence diagram when the mouse is hovered over a call, the tooltip shows the call context - the call argument and the return value.
显示调用上下文(call context):在序列图中,当鼠标在调用(call)上悬停的时候,就会弹出提示框,显示出调用上下文——调用方法的参数和返回值。
Decide for yourself whether these differences are improvements, and whether they are worth the time and effort you invested in developing your own tooltip widget.
您可以自己判断这些差异是否有改进,是否值得花时间和精力来开发自己的工具提示部件。
User agents can display this information using some sort of meter control or give the extra data in a tooltip, but most will probably style it like any other inline element.
用户代理可以用某种数值控件显示这一信息,也可以在工具提示中显示额外的数据,但是最常见的情况可能是像其他内联元素一样对它应用样式。
应用推荐