:master:
ho un link che mi lancia una funzione showhide, passandogli il div da visualizzare e una funzione da lanciare, quando viene eseguito showhide
Mappa
showhide fa questo:
codice:
function showhide(targetId,startfunction ){
if (document.getElementById){
target = document.getElementById( targetId );
if (target.style.display == "none"){
target.style.display = "block";
if (startfunction) {
startfunction();
}
} else {
target.style.display = "none";
}
}
}
startfunction() dovrebbe farmi partire la funzione showmap no? invece mi restitusice errore... cosa mi sfugge? :master:
showmap naturalmente esiste...