可以浮动某个物体的jquery控件
-
- (function($){
- $.fn.scrolltip = function(){
- $(this).each( function() {
- var obj = $(this);
- var objtop = obj.position().top;
- $(window).scroll(function(){
- obj.CSS({
- top:$(window).scrollTop()+objtop,
- position:'absolute'
- });
- });
- });
- }
- })(jQuery);
- //该片段来自于http://www.codesnippet.cn/detail/210520133466.html
来源: http://www.codesnippet.cn/detail/210520133466.html