Fancybox jQuery / fermer la box quand la page se charge
Bonjour,
Je suis pas du tout calé sur le sujet, mais je souhaite :
- Ouvrir un fichier dans Fancybox (ça ça va :mouarf:)
- Exécuter un code PHP
- Puis fermer directement la box.
Sur le forum fancybox :
Citation:
5. How can I close FancyBox from other element?
Just call $.fancybox.close() on your onClick event
Mais où diable faut-il mettre cela ?
Help please :oops:
Voici mon code (qui ne marche pas bien sur)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <?php //ici mon PHP// ?>
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body onload="$.fancybox.close();">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<link rel="stylesheet" href="http://www.fizzyexpress.pro/admin/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="http://www.fizzyexpress.pro/admin/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
</body> |