summaryrefslogtreecommitdiff
path: root/maquette/script old.js
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:23:45 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:23:45 +0200
commit3c8d3719af0f77f8a01881b022e548d3a7d4604e (patch)
tree475c5ac9085dc4e62bc8095f906f211a0052c8de /maquette/script old.js
parent50b0ff7533657a8edb7a0d9645699559c50ea712 (diff)
download2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.tar.gz
2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.tar.bz2
2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.zip
Deuxième maquette 2007-02-06+19:18:54 - 2007-02-08+16:46:19
Diffstat (limited to 'maquette/script old.js')
-rw-r--r--maquette/script old.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/maquette/script old.js b/maquette/script old.js
deleted file mode 100644
index 8e96d1b..0000000
--- a/maquette/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