SkyD Posted June 11, 2006 Report Share Posted June 11, 2006 Šitam JS kodam vajag piesastiit klaat taadu lietu kaa: ja atver valjaa kategoriju x, tad kaada no atveertajaam kategorijaam x, tiek aizveerta, un parādās jaunās kategorija x. Piem. atveru kategoriju - auto, peectam veru valjaa kategoriju - sunji, un tad lai kategorija - auto pazuud. Palīdziet! :)~~ Link to comment Share on other sites More sharing options...
bubu Posted June 11, 2006 Report Share Posted June 11, 2006 Eh... kur cilvēki nevar tik elementāras lietas izdomāt.. var last = false; function showhide(kastiesi) { if (last) last.style.display = "none"; var id = document.getElementById(kastiesi); last = id; id.style.display = (id.style.display=="none" ? "block" : "none"); } Link to comment Share on other sites More sharing options...
SkyD Posted June 11, 2006 Author Report Share Posted June 11, 2006 Paldies! :) Link to comment Share on other sites More sharing options...
Recommended Posts