Advertisement
Guest User

Javascript include

a guest
Aug 7th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This is include.js.
  2.     $(document).ready(function(){
  3.        
  4.         function changeColor(elem) {
  5.             $(elem).css({
  6.                 "border-radius": "5px",
  7.                 "font-weight":   "bolder",
  8.                 "border":        "1px solid red"
  9.             });
  10.         }
  11.        
  12.         function exclamation(elem) {           
  13.           $(elem).notify(
  14.             "-",
  15.                 { position:"right" }
  16.           );
  17.         }
  18.        
  19.     });
  20.  
  21. // This is all the Jquery/JS things I'm including, this part is in the header.php file.
  22.         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  23.         <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js" type="text/javascript"></script>
  24.         <script src="../js/notify.js" type="text/javascript"></script>
  25.         <script src="../js/include.js" type="text/javascript"></script>
  26.  
  27. // Then I have a register.php file, before PHP starts I'm including the register.js file.
  28. <script src="../js/aanmelden.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement