Layers compatible NS 4.7 et IE
Fermé
ZIG1
Messages postés
1709
Date d'inscription
vendredi 7 juillet 2000
Statut
Membre
Dernière intervention
24 mars 2009
-
26 nov. 2001 à 09:59
ZIG1 Messages postés 1709 Date d'inscription vendredi 7 juillet 2000 Statut Membre Dernière intervention 24 mars 2009 - 27 nov. 2001 à 15:39
ZIG1 Messages postés 1709 Date d'inscription vendredi 7 juillet 2000 Statut Membre Dernière intervention 24 mars 2009 - 27 nov. 2001 à 15:39
A voir également:
- Layers compatible NS 4.7 et IE
- Installer windows 11 sur pc non compatible - Guide
- Google payment ie ltd - Forum Consommation et internet
- N'est pas compatible avec cet ipad - Guide
- Youtube n'est pas compatible avec cet ipad - Forum iPad
- Aucun adaptateur dxgi compatible n'a été trouvé mw2 - Forum Carte graphique
4 réponses
Bobinours
Messages postés
2898
Date d'inscription
jeudi 26 avril 2001
Statut
Membre
Dernière intervention
21 mars 2013
503
27 nov. 2001 à 02:12
27 nov. 2001 à 02:12
Pour cacher un layer sous NS il faut remplacer 'hidden' par 'hide'...
Montre ton code pour voir.
-= Bobinours =-
Montre ton code pour voir.
-= Bobinours =-
ZIG1
Messages postés
1709
Date d'inscription
vendredi 7 juillet 2000
Statut
Membre
Dernière intervention
24 mars 2009
186
27 nov. 2001 à 10:15
27 nov. 2001 à 10:15
Dans mon head je met
<script language="javascript">
function findObj(n, d)
{ //v4.0
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n);
return x;
}
var menu = 1;
function adminMenu()
{ //v3.0
if ((obj=findObj('admin'))!=null) with (obj)
{
if ( menu == 1 )
{
menu = 0;
innerHTML += ICI LE CONTENUE DE MON LAYER';
}
else if ( menu == 0 )
{
menu = 1;
innerHTML = '';
}
}
}
</script>
dans mon body
<a href="#" onClick="adminMenu();">mon appele de layer</a>
<div id="admin" style="z-index:1; visibility: visible"> </div>
voili voila tous sait tout maintenant :°)
..:::ZIG1:::..
<script language="javascript">
function findObj(n, d)
{ //v4.0
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n);
return x;
}
var menu = 1;
function adminMenu()
{ //v3.0
if ((obj=findObj('admin'))!=null) with (obj)
{
if ( menu == 1 )
{
menu = 0;
innerHTML += ICI LE CONTENUE DE MON LAYER';
}
else if ( menu == 0 )
{
menu = 1;
innerHTML = '';
}
}
}
</script>
dans mon body
<a href="#" onClick="adminMenu();">mon appele de layer</a>
<div id="admin" style="z-index:1; visibility: visible"> </div>
voili voila tous sait tout maintenant :°)
..:::ZIG1:::..
Bobinours
Messages postés
2898
Date d'inscription
jeudi 26 avril 2001
Statut
Membre
Dernière intervention
21 mars 2013
503
27 nov. 2001 à 14:04
27 nov. 2001 à 14:04
A première vu, ton script est compatible IE 4 (document.all), IE 5 et Netscape 6 (getElemenetsById) mais pas NS 4...
Je vais regarder à tête reposée.
-= Bobinours =-
Je vais regarder à tête reposée.
-= Bobinours =-
ZIG1
Messages postés
1709
Date d'inscription
vendredi 7 juillet 2000
Statut
Membre
Dernière intervention
24 mars 2009
186
27 nov. 2001 à 15:39
27 nov. 2001 à 15:39
merci Bobinours :°)
..:::ZIG1:::..
..:::ZIG1:::..