J'ai oublié de dire que j'avais bien fait une fonction 
function hide(nom_div) {document.getElementById(nom_div).style.display="none";}
par contre si je fais
<span onclick="hideAll(['singlepart_cover', 'singlepart_link', 'multipart_link']);" >
la console d'erreur d'Opera me dit :
Event thread: click
Error:
name: TypeError
message: Statement on line 3: Could not convert undefined or null to object
Backtrace:
(document.getElementById(nom_div)).style.display = "none";
Line 1 of script
affiche("JWZ159MP.php"), hide(["singlepart_cover", "singlepart_link", "multipart_link"]), show("multipart_name");
At unknown location
[statement source code not available]
Partager