Friday, 15 March 2013

javascript - Adding API options to initialization script? -



javascript - Adding API options to initialization script? -

i'd add together next api options fancybox initialization script, next advice given in forum (saving images in fancybox). adding these options said increment margins on sides when fancybox images opened.

but, problem don't know how/where add.

this initialization script:

<script type="text/javascript"> $(document).ready(function() { $(".fancybox").fancybox(); });

and api options suggested:

margin : [20, 60, 20, 60]

can help me add together api script? (and what's api? excuse ignorance)

just pass options within fancybox function

$(".fancybox").fancybox({ margin: [20, 60, 20, 60] });

http://fancybox.net/howto

javascript initialization

No comments:

Post a Comment