daveoffy Posted January 2, 2009 Share Posted January 2, 2009 I only want it to first show the Signup link. It shows both Signup and login link until I click one of them! HTML/CSS <div id="login"><?PHP include 'include/login.php'; ?> <a href="#" onClick="showHide('login', 'register'); return false">Sign Up!</a> </div> <div id="register">Register Form HERE!!! <a href="#" onClick="showHide('register', 'login'); return false">Log In!</a> </div> Javascript <script type="text/javascript"> function showHide(hideid, showid) { var hideElement = document.getElementById(hideid); var showElement = document.getElementById(showid); hideElement.style.display = "none"; showElement.style.display = ""; } </script> Quote Link to comment Share on other sites More sharing options...
daveoffy Posted January 2, 2009 Author Share Posted January 2, 2009 I fixed it for the register div I had to add style="display: none" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.