开发者

hover on picture, showing a new window

I am trying to get the same effect as this site (I don't think you can see it if you don't register). Here's the image that describes it

hover on picture, showing a new window

As you can see when I hover on the image, it shows this box and then when I hover on youtube it automatically plays the trailer of the movie. How the hell can I do this? This just seems to be pretty amazing to me. I am guessing that they are doing this开发者_如何转开发 on real time


The part where you hover an image, that plugin is called a ToolTip. You can basically load up any html in it as you wish. Take a look at qTip.

As for playing a youtube video on hover. This is using the youtube javascript API. You can start the video right after the tooltip pops up, etc. API here.


you would want to use qTip for this.

Hey! I baked something for you here demo.

also a similar demo here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜