Salut,
Je cree un script pour montrer/cache a menu en base de checkboxes. Il
marche sour Opera mais pas sour IE6!
Quelq' as des idees?
Merci a la avancee
Sergio
------------------------------------------------
<script language="JavaScript" type="text/javascript">
function dodisplaytbyarray(thewhat) {
if (navigator.appName.indexOf("Microsoft",0) != -1) {
var docloc = "document.all.",style = ".style";
}
var thearrays = new Array();
Salut, Je cree un script pour montrer/cache a menu en base de checkboxes. Il marche sour Opera mais pas sour IE6!
Et tu as certainement un message d'erreur (ou un triangle dans la statusbar). Que dit-il ?
-- A'tchao
Le Fou http://perso.club-internet.fr/ehiller/ http://club.exocet.free.fr/ http://www.ffessm-cd84.com/
Thibault
sergio wrote:
Salut, Je cree un script pour montrer/cache a menu en base de checkboxes. Il marche sour Opera mais pas sour IE6! Quelq' as des idees? Merci a la avancee Sergio
------------------------------------------------ <script language="JavaScript" type="text/javascript"> function dodisplaytbyarray(thewhat) { if (navigator.appName.indexOf("Microsoft",0) != -1) { var docloc = "document.all.",style = ".style"; } var thearrays = new Array();
function show ( id ) { var obj = document.getElementById( id ); if ( obj ) { obj.style.visibility = 'visible'; } } function hide ( id ) { var obj = document.getElementById( id ); if ( obj ) { obj.style.visibility = 'hidden'; } }
Avec ces 2 fonctions (qui marchent sous IE6 et Mozilla (pas testé sous opéra)) , tu peux masquer/afficher un obj en lui passant un id en string, ici: hide('cat73|cat88') va masquer ton 1er div.
Bye -- Thibault
sergio wrote:
Salut,
Je cree un script pour montrer/cache a menu en base de checkboxes. Il
marche sour Opera mais pas sour IE6!
Quelq' as des idees?
Merci a la avancee
Sergio
------------------------------------------------
<script language="JavaScript" type="text/javascript">
function dodisplaytbyarray(thewhat) {
if (navigator.appName.indexOf("Microsoft",0) != -1) {
var docloc = "document.all.",style = ".style";
}
var thearrays = new Array();
function show ( id ) {
var obj = document.getElementById( id );
if ( obj ) { obj.style.visibility = 'visible'; }
}
function hide ( id ) {
var obj = document.getElementById( id );
if ( obj ) { obj.style.visibility = 'hidden'; }
}
Avec ces 2 fonctions (qui marchent sous IE6 et Mozilla (pas testé sous
opéra)) , tu peux masquer/afficher un obj en lui passant un id en
string, ici: hide('cat73|cat88') va masquer ton 1er div.
Salut, Je cree un script pour montrer/cache a menu en base de checkboxes. Il marche sour Opera mais pas sour IE6! Quelq' as des idees? Merci a la avancee Sergio
------------------------------------------------ <script language="JavaScript" type="text/javascript"> function dodisplaytbyarray(thewhat) { if (navigator.appName.indexOf("Microsoft",0) != -1) { var docloc = "document.all.",style = ".style"; } var thearrays = new Array();
function show ( id ) { var obj = document.getElementById( id ); if ( obj ) { obj.style.visibility = 'visible'; } } function hide ( id ) { var obj = document.getElementById( id ); if ( obj ) { obj.style.visibility = 'hidden'; } }
Avec ces 2 fonctions (qui marchent sous IE6 et Mozilla (pas testé sous opéra)) , tu peux masquer/afficher un obj en lui passant un id en string, ici: hide('cat73|cat88') va masquer ton 1er div.