开发者

retain jquery facebox centered when scrolling

开发者 https://www.devze.com 2023-03-22 10:33 出处:网络
I\'m using jquery facebox dialogs, I\'m trying to modify it to remain centered when I scroll, I\'m not a programer although I know a bit of coding, I found this to open facebox on click coordinates

I'm using jquery facebox dialogs, I'm trying to modify it to remain centered when I scroll, I'm not a programer although I know a bit of coding, I found this to open facebox on click coordinates

http://www.web-ramblings.co.uk/positioning-jquery-facebox-by-mouseclick/

I guess thats the same are to edit, what I'm trying to achieve is havi开发者_开发技巧ng facebox centered on the page even if I scrool down,

Can anyone help me?

thanks


It looks like you need to implement a window event for resize / scrolling. Instead of providing an answer to that can you not simply use fancyBox which already takes care of this for you?

0

精彩评论

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