xfr33 Posted September 25, 2008 Report Share Posted September 25, 2008 Vēlos, lai kad uzspiež uz pogas mainas vai nu pazūd vai parādas viens div. Bet nesanāk izdarīt lai pazūd. Var kāds palīdzēt? Vai arī ir otrs variants, ka aizvērt to divu var ar citu pogu. Bet vajadzētu ar to pašu :) Link to comment Share on other sites More sharing options...
Val Posted September 25, 2008 Report Share Posted September 25, 2008 gan jau nav labākais veids, bet nu... <script type="text/javascript"> var x=1; function toggle(elem) { if(x==0) { document.getElementById(elem).style.display = 'none'; x=1; } else { document.getElementById(elem).style.display = ''; x=0; }; }; </script> <a href="#" onclick="toggle('showhide'); return false;">kukuu</a> <span style="display:none;" id="showhide">paslēp/parādi mani</span> Link to comment Share on other sites More sharing options...
xfr33 Posted September 25, 2008 Author Report Share Posted September 25, 2008 paldies, derēja :) Link to comment Share on other sites More sharing options...
Recommended Posts