开发者

JQuery: Floating share box like Mashable?

开发者 https://www.devze.com 2022-12-23 06:52 出处:网络
I am looking for a jQuery plugin which can serve me the floating share box functionality just like Mashable implement in their new design: http://mashable.com/2010/03/12/flickr-co-founders-startup-hun

I am looking for a jQuery plugin which can serve me the floating share box functionality just like Mashable implement in their new design: http://mashable.com/2010/03/12/flickr-co-founders-startup-hunch-raises-10-million/.

In the left side on the page above Mashable has sharing options which stays on the screen when you scroll the page. I want to implement the same kind of functionality in my application, using a jQuery plugin.

How can I do th开发者_JAVA技巧at?


The easiest solution might be something like this:

p.pos_fixed
{
     position:fixed;
     top:30px;
     right:5px;
}

(source: http://www.w3schools.com/css/tryit.asp?filename=trycss_position_fixed)


CSS can give the share box a fixed position in the browser. But it will not give the same effect as mashable.com. You have to use jQuery in combination with CSS to achieve this.

Here is a good way to do it: Add floating share buttons

0

精彩评论

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