0
Pagination with java script?
Hello! I want to create a sign page, but before this I have a landing page with sing In and sign up buttons. So I just want to code it with java script, when click on sign in button ,it show sign in page and hide landing page, how to achive this? Please help!
2 Antworten
0
You can modify css display attribute for make this. Example:
// simple HTML
<div id='landing'>
<button onclick='onSignInRequest()'>Sign In<button>
</div>
<div id='sign-in'>
....
</div>
// simple CSS
#landing{}
#sign-in{ display:none; }
// simple JS
function onSignInRequest(){
document.getElementById('landing').style.display= 'none';
document.getElementById('sign-in').style.display= 'block';
}
Obliviouslly you have to handle like return to original state (landing visible, sign-in gone)
+ 1
thanks Kr0W