Submitted by slurp9562 on
Bonjour! Je n'ai toujours pas trouvé de réponse à mon problème:
j'ai installer le module thickbox en sachant qu'il pouvait également charger des pages et non pas seulement des images. Cependant, ça ne marche pas! Je ne trouve pas la solution!
Alors je me suis dis, je vais utiliser thickbox, sans le module drupal. Seulement voila, il faut mettre
<script type="text/javascript" src="jquery.js"></script><link rel="stylesheet" href="thickbox.css" type="text/css" media="screen" /><script type="text/javascript" src="thickbox.js"></script>
Seulement, je ne sais pas ou le mettre. Ils disent:
Before you can implement ThickBox make sure the page that invokes ThickBox has a valid DTD. This is required for ThickBox to look and function correctly.
1. ThickBox requires the jQuery JavaScript library; because of this, you will need to include the jquery.js file in the head element of your web page, followed by the thickbox.js file (NOTE: jquery.js must come first in the source order). Example below:
<?php <script type="text/javascript" src="path-to-file/jquery.js"></script>
<script type="text/javascript" src="path-to-file/thickbox.js"></script> ?>
Once you have included the .js files, open thickbox.js or thickbox-compressed.js and locate the tb_pathToImage variable at the top of the page. Once you have found it, make sure to change the value of tb_pathToImage to the path where the loadingAnimation.gif file is located on your own server.
2. Include the ThickBox CSS file in your web page. As of version 3.1 you will also need to update the path to the macFFBgHack.png in the thickbox.css file. Example options below:
<?php <link rel="stylesheet" href="path-to-file/thickbox.css" type="text/css" media="screen" /> ?>
Or
<?php <style type="text/css" media="all">@import "path-to-file/thickbox.css";</style> ?>
Or, open the thickbox.css file and copy and paste the styles into an existing style sheet. Be aware that the ThickBox CSS file will remove the browsers default padding and margin for all elements.
3. View the examples to learn the many different ways to use and invoke ThickBox functionality.
Pouvez-vous maider à comprendre ce charabia?
Merci d'avance !
telecharge jquery.js sur
Permalien Soumis par julien le 5 Novembre, 2007 - 21:44
telecharge jquery.js sur jquery.com et thickbox.js somewhere!
install le dans le repertoire misc de drupal.
Apres dans la module ou tu veut ton thickbox, tu insere:
drupal_add_js('jquery.js'); ou drupal_add_js('chemin/vers/jquery.js')
drupal_add_js('thickbox.js');
C'est comme ca que j'utilise les javascript.
a+
Merci beaucoup de ta
Permalien Soumis par slurp9562 le 8 Novembre, 2007 - 18:29
Merci beaucoup de ta réponse :)