Wed, 2004-12-08 17:10
Hi, i really need your help. I have got one javascript and i have a problem with it. When i click on some text, it will show something , but other texts are still shown and i want to show only one text.
I think you understand me. Here is code:
function ShowOrHide(d1, d2) { if (d1 != '') DoDiv(d1); if (d2 != '') DoDiv(d2); } function DoDiv(id) { var item = null; if (document.getElementById) { item = document.getElementById(id); } else if (document.all){ item = document.all[id]; } else if (document.layers){ item = document.layers[id]; } if (!item) { } else if (item.style) { if (item.style.display == "none"){ item.style.display = "block"; } else {item.style.display = "none"; } }else{ item.visibility = "show"; } }
chilix you really should post a fresh topic rather than hikjacking a rather old one; I've moved this to a new topic for you. Hugo.