开发者

retain jquery facebox centered when scrolling

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜