diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:19:32 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:19:32 +0200 |
commit | f55d097d97c3c81382c441f612b0ce2881e63334 (patch) | |
tree | ec6167735ab6184eaf05e99d262c6acdc28e22bf /maquette_old/script old.js | |
parent | a25edc8edf23e652dbd529b8c42199ae559905a1 (diff) | |
download | 2007-AWOR-f55d097d97c3c81382c441f612b0ce2881e63334.tar.gz 2007-AWOR-f55d097d97c3c81382c441f612b0ce2881e63334.tar.bz2 2007-AWOR-f55d097d97c3c81382c441f612b0ce2881e63334.zip |
Renommage pour diff entre maquette_old et maquette
Diffstat (limited to 'maquette_old/script old.js')
-rw-r--r-- | maquette_old/script old.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/maquette_old/script old.js b/maquette_old/script old.js deleted file mode 100644 index be5b113..0000000 --- a/maquette_old/script old.js +++ /dev/null @@ -1,36 +0,0 @@ -function pop()
-{
-
- var myAs = document.getElementsByTagName('a');
- for (var a = 0; a < myAs.length; ++a) {
- // Si le lien a une classe de type pop
- if (myAs[a].className == 'pop') {
- // on extrait l'id de la popup à partir du href
- var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
- // si la popup existe on l'affiche (display block)
- if (pop) {
- pop.style.display = 'none';
- myAs[a].onclick = function() {
- thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
- thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
- return false;
- };
- // on efface la popup en cliquant dessus
- // pop.onclick = function()
- // {
- // this.style.display = 'none';
- // };
- var nompopup = myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1);
- var num = nompopup.substring(3,nompopup.length);
- var nomform = 'form' + num;
- var formulaire = document.getElementById(nomform);
- if (formulaire) {
- document.forms[nomform].elements['fermer'].onclick = function() {
- pp = document.getElementById(('pop') + this.alt);
- pp.style.display = 'none';
- }
- }
- }
- }
- }
-}
\ No newline at end of file |