source: trunk/spip/esqueleto-redcta/plugins/magusine/javascript/selecteur_priv.js @ 277

Last change on this file since 277 was 80, checked in by guille, 16 years ago

el plugin completo

  • Property svn:executable set to *
File size: 576 bytes
Line 
1var icone_haut;
2var icone_bas;
3
4$(document).ready(function(){
5 if ($(".fleche").length){
6  icone_haut = $(".fleche")[0].getAttribute('src');
7  icone_bas = icone_haut.replace(/deplierhaut\.gif/, 'deplierbas.gif');
8 }
9});
10
11function montrer_item(leitem) {
12        jQuery(leitem).toggle();       
13}
14
15function deplier_contenu(elem) {
16  if ($(elem).attr("src") == icone_haut) {
17    $(elem).attr({src: icone_bas});
18    $(elem).siblings("ul").css({display: "block"});
19  } else {
20    $(elem).attr({src: icone_haut});
21    $(elem).siblings("ul").css({display: "none"});
22  }
23}
Note: See TracBrowser for help on using the repository browser.