Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SwapDivsWithClick(div1,div2)
- {
- d1 = document.getElementById(div1);
- d2 = document.getElementById(div2);
- if( d2.style.display == "none" )
- {
- d1.style.display = "none";
- d2.style.display = "block";
- }
- else
- {
- d1.style.display = "block";
- d2.style.display = "none";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement