开发者

jquery popout of details on mouseover

开发者 https://www.devze.com 2023-04-11 01:55 出处:网络
On Google News. there is a carousel with a popout on mouseover on an item.I\'ve also found a video with a tutorial of how to make one: http://www.youtube.com/watch?v=Iy78nJgRiUM

On Google News. there is a carousel with a popout on mouseover on an item. I've also found a video with a tutorial of how to make one: http://www.youtube.com/watch?v=Iy78nJgRiUM

Can anyone suggest some other (better?) tutorials out there on how to achieve the same effect?

I'm really looking for this exact behaviour. I'm not really looking to use tooltips, title/alt tags, m开发者_Python百科odal windows, etc.

Edit: Don't you hate it, when you post a question you find somewhere? Ok, I found this also, which will probably help me out. But I am still interested in what others might add. :)

http://impact-products.co.uk/category.asp?cat=Sound

Thanks


In the end I took what was in http://impact-products.co.uk/category.asp?cat=Sound and used it for my own purposes.


I'd just do something like this:

$(".myElement").hover(function() { // mouseover
    // add and show a div styled with css
}, function() { // mouseout
    // remove the div
});

Its simple, allows you to display any content you want (in the div), and is customizable (using css). You may also try using jQuery UI's modal as the popup, but I think that'd be too much.

0

精彩评论

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

关注公众号