hackerman Posted April 3, 2007 Report Share Posted April 3, 2007 Skripts: <script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'none') e.style.display = 'block'; else e.style.display = 'none'; } //--> </script> Nu man ir vairāki linki. Un kad nospiežu vairākus pēc kārtas, tad viņi saiet vienā stabā. Kā var panākt, lai nākamais nomaina iepriekšējo linku? Link to comment Share on other sites More sharing options...
andrisp Posted April 3, 2007 Report Share Posted April 3, 2007 Ko ? Kādā "vienā stabā" ? Kā nomaina iepriekšējo ? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 3, 2007 Report Share Posted April 3, 2007 saglabaa visus BLOCK id ieksh masiiva... kad nospied uz linka (paraadiit) tad visus pareejos parveert par NONE.... apmeram taa.... Link to comment Share on other sites More sharing options...
Kaitnieks Posted April 3, 2007 Report Share Posted April 3, 2007 Otrs variants ir dariit apmeeram taa: <script type="text/javascript"> <!-- oldInvisibleId = -1; function toggle_visibility(id) { if(oldInvisibleId != -1) { var e = document.getElementById(oldInvisibleId); e.style.display = 'block'; } oldInvisibleId = id; var e = document.getElementById(id); if(e.style.display == 'none') e.style.display = 'block'; else e.style.display = 'none'; } //--> </script> Link to comment Share on other sites More sharing options...
Recommended Posts