Last change
on this file since 162 was
80,
checked in by guille, 16 years ago
|
el plugin completo
|
-
Property svn:executable set to
*
|
File size:
576 bytes
|
Rev | Line | |
---|
[80] | 1 | var icone_haut; |
---|
| 2 | var 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 | |
---|
| 11 | function montrer_item(leitem) { |
---|
| 12 | jQuery(leitem).toggle(); |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | function 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.