View Single Post
  #3   Spotlight this post!  
Unread 11-02-2012, 22:41
ianonavy ianonavy is offline
Programming Mentor/Alumnus
AKA: Ian Adam Naval
FRC #3120 (RoboKnights)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Sherman Oaks
Posts: 32
ianonavy is an unknown quantity at this point
Re: Help with website

First of all, you should ALWAYS begin your HTML files with a doctype.
Code:
<!DOCTYPE html
Your JavaScript should really be in a separate file that is linked in with something like this before the </body> tag:
Code:
<script type="text/javascript" src="js/index.js"></script>
with all your JavaScript being put in the file "index.js" in a "js" subdirectory.

Second of all, I made a little demonstration snippet using JSFiddle, which can be found here: http://jsfiddle.net/ianonavy/cfHpd/

I hope this helps. Continue to post if you have further questions.
Reply With Quote