Show Hide in Javascript

simple show/hide function in js that needs mostly every webmaster

stáhnout snippet
zobrazení: SyntaxHighlighter | GeSHi | Holý text
// old classic
function showhide(e) {
    el = document.getElementById(e);
	el.style.display = el.style.display  == "block" ? "none" : "block";
}

// if you have prototype.js
$(e).toggle();


Tagy:
javascript 9 řádků | 2008-03-13 23:22:16 | asimov