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
精彩评论