![]() |
jquery fancybox on page load
Has anyone found a way to get Fancybox to display on page load?
There don't seem to be any options available in the docs. Thanks in advance!! |
Yes I think you can do it. Google code is available over here:
http://code.google.com/p/fancybox/do...ybox-1.2.6.zip |
You can call this onpage load
Code:
$('a.zoom').click(); |
Where do I add the .click??
This is my code: Code:
$(document).ready(function() { /* This is basic - uses default settings */ $("a#single_image").fancybox(); /* Using custom settings */ $("a#single_image").fancybox({ 'hideOnContentClick': true }); $("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false }); });Thanks. |
Hi,
I think fancybox loads itself once you have included the <script type="text/javascript" src="./fancybox/jquery.fancybox-1.2.6.pack.js"></script>. Try look into that .js, down to most bottom: PHP Code:
|
I got it to work using a cookie
|
| All times are GMT +1. The time now is 06:55 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.