source: spip-zone/_plugins_/refbase/trunk/refbase_js.html

Last change on this file was 54498, checked in by joseph@…, 8 years ago

Changement de catégorie
Début de conformité SPIP 3 (reste la config à faire)

File size: 668 bytes
Line 
1#HTTP_HEADER{Content-Type: text/javascript}
2// Show or hide the element with the given 'id':
3function refbase_toggleVisibilitySlide(id, imgid, txtid, txt, upd) {
4        var e = document.getElementById(id);
5        var i = document.getElementById(imgid);
6        //var t = document.getElementById(txtid);
7        //var upd;
8        //if (upd === undefined) upd = true;
9        if (e.style.display == 'block' || e.style.display == '') {
10                //if (upd)
11                e.style.display = 'none';
12                i.src = '#URL_SITE_SPIP/#CHEMIN{refbase_closed.gif}';
13                //t.innerHTML = txt;
14        }
15        else {
16                //if (upd)
17                e.style.display = 'block';
18                i.src = '#URL_SITE_SPIP/#CHEMIN{refbase_open.gif}';
19                //t.innerHTML = '';
20        }
21}
Note: See TracBrowser for help on using the repository browser.