Advertisement
Guest User

prob

a guest
Nov 29th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <head>
  2. <script language="JavaScript" type="text/javascript" src="/js/jquery-1.7.1.js"></script>
  3. <script language="JavaScript" type="text/javascript" src='/js/test.js'></script>
  4. </head>
  5.  
  6. //Just did a test function, but I cant seem to get it to work. When trying <script>testing()</script> in <body> nothing happens
  7. //testing() just get a red underline.
  8.  
  9.  
  10. in test.js:
  11.  
  12. function testing(){
  13. document.write("<h1>This is a heading</h1>");
  14. document.write("<p>This is a paragraph.</p>");
  15. document.write("<p>This is another paragraph.</p>");
  16.  
  17. }
  18.  
  19.  
  20. $(function(){
  21. var contentHeight = $('#content').height();
  22. $('#menu').height(contentHeight
  23. });
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement