update fancybox to 1.3.1

add this function (notice it uses createSWF which is different to embedSWF -
3 args first 2 objects then a string to target)

function playIntro() {
  swfobject.createSWF({data: 'http://www.toriportails.be/tori_intro.swf',
width: '965', height: '315'}, {wmode: 'window'}, "myContent");
}

amend the setup of fancybox on #single  (I have not checked thoroughly the
api of fancybox - but onCleanup seems good )
$("#single").fancybox({'overlayShow':true,'width':838,'height':540,
onCleanup: function () { playIntro(); }}).trigger('click');

works for me in ff3.6

- S




On 10 June 2010 08:20, humbucker <[email protected]> wrote:

> Hi Sam,
>
> Thanks to your tips, I've been able to correct the problem of the
> animation coming on top of the splash screen, but the animation is
> still starting on website launch.
>
> Can you maybe show me how to alter the fancybox box ahref link in
> order to start it when I click on the image to close it :
> <a id="single" style="display:none; z-index:0;" rel="groupa" title=""
> href="http://toriportails.be/images/promo.jpg";><img src="images/
> promo.jpg" alt="" width="960" height="610" /></a>
>
> Maybe with a "onclick"
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to