Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var active = [];
- function resize(id) {
- var div = document.getElementById(id);
- if(active[id] == 1) {
- div.style.display = "none";
- active[id] = 0
- } else {
- div.style.display = "initial";
- active[id] = 1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement