Menu
Hi guys,
I’ve got a problem with a drop-down menu I found on the net. Here is the code :
<script language=”JavaScript”>
function doit(header){
var head=header;
flag=”0″;
if (head.className==”ferme”) { flag=”1″ }
document.getElementById(“1,2”).className = “ferme”;
if (flag==”1″) { head.className=”ouvre” }
}
</script>
and :
<div style=”cursor:hand” onClick=”doit(document.getElementById(‘1′,’2’))”>menu 1</div>
<span class=”ferme” id=”1″>submenu 1</span>
with only 1 submenu it’s working but when i’m adding 1 it’s not working … can anyone help me plz?
Thx,
~Francky683~