Could you help me ?
Any suggestions would be appreciated!
On Mar 25, 8:07 pm, JFK <jfk.d...@gmail.com> wrote:
> samehttp://fancybox.net/faq
> see No. 3
>
> On Mar 25, 8:39 am, ikalatch <ikalatc...@neosaej.com> wrote:
>
> > I have the same problem: a page includes aniframethat is pretty long
> > and scrollable and inside thatiframeI open a fancybox (which also
> > includes yet anotheriframe, but this is irrelevant here).
> > Fancybox calculates the center of theiframeinside which it has to
> > display itself and positions quite low on the screen because the
> >iframeis long.
> > I'd like it to be positioned in the center of the browser viewport
> > instead.
> > What I found to (somewhat) work is to use this callback when defining
> > the attributes of fancybox (using version 1.3.1):
> > 'onComplete': function() {
> > $("#fancybox-wrap").css({
> > 'top':'10px',
> > 'left':'10px'
> > })}
> > It works - moves the fancybox where I want it inside theiframe, but
Not that obvious.
http://fancybox.net/faq No. 3 also says : "....... You can modify
FancyBox source to suit your needs"
And a fellow fancybox fan did try modifying it to his needs ... see
below copy of the email (that I haven't tried it yet but it makes
sense to me)
>forget about the iframe: Basically it
>would be great if we had another
>two public attributes ...etc
let's the developer answer what he thinks of your suggestions
***copy of email **************
hi JFK it work, ive tried it using just a simple tweak, using the on
load
example $("a.sample").trigger("click");
here what ive done;
in my iframe page i called the parent window with the href e.g.
onClick="callMe('www.google.com')" or if pics "/images/pics.png"
and call this script in my parent page
<script type="text/javascript">
function callMe(site){
$(".sample").fancybox({
'width' : '97%',
'height' : '97%',
'href' : ''+site+'' //force href to change its site from the
call function in the iframe page
});
readyFancy() call to trigger the decoy link page
}
function readyFancy(){
$("a.sample").trigger("click");
}
</script>
in my parent html we right a decoy link (this one is from the example
on load fancybox)
<body>
<a href="#" class="sample"></a>
</body>
******
On Mar 30, 5:26 pm, JFK <jfk.d...@gmail.com> wrote:
> >I understand that it can not be displayed
> >outside of the iframe -
> >this is obvious,
>
> Not that obvious.http://fancybox.net/faq No. 3 also says : "....... You can modify