开发者

Add an FLV video on a jQuery tooltip

开发者 https://www.devze.com 2023-02-06 13:11 出处:网络
I currently have a quick line going like this: <img title=\"FLV Video goes here\" class=\"tooltip\" src=\"/images/icon-question.png\" alt=\"questions\" width=\"12\" height=\"12\" border=\"0\" />

I currently have a quick line going like this:

<img title="FLV Video goes here" class="tooltip" src="/images/icon-question.png" alt="questions" width="12" height="12" border="0" />

And when you hover over the image it shows the text in the title attribute, how would I go about embedding an swf in there? It contains javascript tags and div tags, putting it directly into the title tag causes it to error out.

I am using the tooltip plugin for j开发者_运维问答query.

Any suggestions? Thanks.


Use Hovertips instead: http://www.dave-cohen.com/node/1186.

This is what you need:

  1. use jQuery and hovertip plug-in
  2. call hovertipInit on $(document).ready
  3. <a id="a1">link</a>
  4. <div class="hovertip" target="a1"><h1>jQuery rocks!</h1>I'm the newest member of the jQuery fan club!</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消