Thanks a lot.
add to your script:
'onStart': function() {
$("body").css({'overflow':'hidden'});
},
'onClosed': function() {
$("body").css({"overflow":"visible"});
help others this way as you were helped too
'onStart' : function() {
$("body").css({'overflow':'hidden'});
$("html").css({"overflow":"hidden"});
$("html").css({"overflow-x":"auto"});
},
'onClosed' : function() {
$("body").css({"overflow":"visible"});
$("html").css({"overflow":"-moz-scrollbars-vertical"});
$("html").css({"overflow-x":"auto"});
}
On 5 Mar, 01:28, JFK <jfk.d...@gmail.com> wrote:
> please don't change the subject of the post because people with the
> same request may not find the solution
> "BlockPageScrolling When FancyBox is Open" makes more sense than
> falsefalse, don't you think?
>
> help others this way as you were helped too
>
> On Mar 4, 3:40 pm, Vincenzo Ferme <webmas...@galileonews.it> wrote:
>
> > Thanks a lot, it works very well!
>
> > On 4 Mar, 23:41, JFK <jfk.d...@gmail.com> wrote:
>
> > > that's a tricky one ... but possible
>
> > > add to your script:
>
> > > 'onStart': function() {
> > > $("body").css({'overflow':'hidden'});},
>
> > > 'onClosed': function() {
> > > $("body").css({"overflow":"visible"});
>
> > > }
>
> > > On Mar 4, 4:33 am, Vincenzo Ferme <webmas...@galileonews.it> wrote:
>
> > > > Hi, there is a way to block possibility ofscrollpagewhen a fancy
> > > > box frame is open? I would make something like modal alert of java,
> > > > where there is no way to access on the content of other panel under
> > > > alert ( here thepagethat opened the fancy box ), until alert is
> > > > closed.
>
> > > > Thanks a lot.
Hello Vincenzo& JFK,
could you please explain in detail where (in which file at which
position)
I have to "add to ... [my] ... script" the suggested lines below to
prevent
the page from being scrolled when a fancybox item is opened?
That would be great – thanks in advance& greetz
Claus
--------------------------------------------
'onStart': function() {
$("body").css({'overflow':'hidden'});
},
'onClosed': function() {
$("body").css({"overflow":"visible"});
}