开发者

How to make the jQuery Sticky Float plug-in react live to page changes?

开发者 https://www.devze.com 2023-02-13 12:32 出处:网络
I\'ve been looking at the really rather wonderful \'stickyf开发者_C百科loat\' plug-in (http://plugins.jquery.com/files/stickyfloat_0.htm) for jQuery for a project I\'m working on. I need to keep a pan

I've been looking at the really rather wonderful 'stickyf开发者_C百科loat' plug-in (http://plugins.jquery.com/files/stickyfloat_0.htm) for jQuery for a project I'm working on. I need to keep a panel on the right of the page 'in view' as the content on the left scrolls. The stickyfloat plug-in works a treat but it doesn't update it calculations if you use jQuery to effect the length of the content block in which it sits.

Is there any way I might be able to adjust this plug-in to make it respect live changes to the content div height?


I wrote this plugin, and I have re-posted it and fixed this issue of height being changed dynamically after the plugin was initiated, check this out:

http://dropthebit.com/74/sticky-floating-box/

0

精彩评论

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