Hey guys i'm no wizzard with javascript lol
Someone has helped me with something before and i tried using a similar code but instead of buttons i'm using listboxes
this is the code i'm using to highlight the menu option and to make the listbox related to the option appear in the page (while the other listboxes if there's any visible disappear)
the images work fine but the listboxes don't appear and disapear...
function homefunction()
{
//declaring image variablesvar home = document.getElementById("imgHome");
var product = document.getElementById("imgProduct");var shopcart = document.getElementById("imgShoppingCart");
var faq = document.getElementById("imgFaq");var contact = document.getElementById("imgContact");
//declaring tree view variablesvar mnuhome = document.getElementById("lbxHome");
var mnuproduct = document.getElementById("lbxProduct");var mnushopcart = document.getElementById("lbxShopCart");
var mnufaq = document.getElementById("lbxFaq");var mnucontact = document.getElementById("lbxContact");
//menu effecthome.src="../images/Home1.jpg";
product.src=
"../images/Product.jpg";shopcart.src="../images/ShoppingCart.jpg";
faq.src=
"../images/FAQ.jpg";contact.src="../images/ContactUs.jpg";
//tree view appear and disappear code
mnuhome.style.visibility="visible";
mnuproduct.style.visibility=
"hidden";mnushopcart.style.visibility="hidden";
mnufaq.style.visibility=
"hidden";tvwcontact.style.visibility="hidden";
}