using javascript in an include

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
abond
Beginner
Beginner
Posts: 6
Joined: Tue Sep 13, 2005 8:25 pm
Location: Elmira, New York
Contact:

using javascript in an include

Post by abond »

I am working on a site using a content management system with very strict hierarchy and naming. All javascripts must the placed on the templates within an includes file.

My current left navigation is an include file placeed within a table cell. I read the instructions on placing the javascript within a table cell, but that will not work for me, due to the necessity of the include.

Thanks.
Amy Bond (apbond@stargazette.com)
Web Producer
http://www.stargazette.com
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The 3 main menu code files (and style and sub-menu code) can be placed in an include immediately after the body tag. The only item required in the td is the main menu code, which can also be placed in an include in the td.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

This will depend on browser support.

If you only need to support the latest browsers then youcan put the include files anywhere you like.

This will have an effect on browsers like Opera 6 and Internet Explorer for the Apple Mac. Mostly browsers which should no longer be used but people still do.

So, in essence, it will work but not 100% cross browser.

Hope this helps,
Andy
Post Reply