Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.82 KB | None | 0 0
  1. <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <! We import jquery module 1 !>
  2. <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <! We import jquery module 2 !>
  3. <script> <! Start script !>
  4. function home(){ // We define the function
  5. $("#main").load("home.html"); // We select the div with the id main and then use the .load to load the page
  6. } // end function
  7.  
  8. function login(){ // We define the function
  9. $("#main").load("login.html");// We select the div with the id main and then use the .load to load the page
  10. } // end function
  11. </script> <! end script !>
  12. <nav here> <! for you to put nav bar which calls these in onclick !>
  13. <div id="main" onload="home();"><! create a div with id main !>
  14. Loading... <! This can be anything. I will be replace when user clicks shit !>
  15. </div><! end div !>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement