View Single Post
  #5 (permalink)  
Old Mar 24th, 2008, 19:40
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 945
Blog Entries: 2
Thanks: 5
Thanked 18 Times in 16 Posts
Send a message via Skype™ to Aso
Re: Javascript menu - does not work on title page, but does work on other pages

Ok, I had a think, and this is the best I can come up with.

Put all your Javascript in an external .js file, then link to it in your HTML in the <head> like so:
Code: Select all
<script type="text/javascript" src="http://www.bookfest.ca/path/to/script.js"></script>
That way, every page is using the exact same javascript, and it'll be easier to deduce the problem (if it still exists).

Plus, you'll get neater lighter markup and it'll be easier to mod your Javascript in the future!
Reply With Quote