Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 24th, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What's wrong with my Javascript code?
  2. <head>
  3. <script type="text/javascript">
  4.  
  5. var theDate = new Date();
  6. var dayOfWeek = theDate.getUTCDay();
  7.  
  8. // Returns true if the restaurant is open
  9. function isOpen()
  10. {
  11.     //I'll fill this in later, for now, return true
  12.     return true;
  13. }
  14. </script>
  15.  
  16. </head><body>
  17. <script type = "text/javascript">
  18. if(isOpen())
  19. {
  20. <script type="text/javascript" src="http://www.formstack.com/forms/js.php?1134414-uqmj2UXxEw-v2"></script><noscript>
  21. <a href="http://www.formstack.com/forms/CampusEnterprises-chopped_greens_order_form__copy" title="Online Form">
  22. Online Form - Chopped Greens Order Form- COPY</a>
  23. }
  24. </script>
  25. </body>
  26.        
  27. <script type="text/javascript">
  28. if(isOpen())
  29. {
  30.     document.write( '<script type="text/javascript" src="http://www.formstack.com/forms/js.php?1134414-uqmj2UXxEw-v2"></script>' );
  31. }
  32. </script>