2

Let's say I have a webpage which uses a third-party javascript library to pull JSONP data from their API, and then builds a rich tooltip based on the data returned... when the visitor hovers their mouse cursor over the link.

Is it possible to use javascript to mimic the mouse hover state? (so the rich tooltip appears permanently)

Update for more info

The javascript is from WoWHead here. It runs automatically after it's loaded, searching the DOM for wowhead.com links and building tooltips dynamically on mouse hover.

Essentially, I'd like the dynamically generated tooltip always visible, rather than only on hover.

4

1 に答える 1

0

より良い答えを得るには、ツールチップを実行するコードを投稿する必要があるかもしれませんが、「onmousehover」から取り出して、ページの読み込み時に実行することはできませんか?

于 2012-08-27T04:33:24.527 に答える