Forum Moderators: open

Message Too Old, No Replies

Frontpage and Dropdown Menus - Compatibility

How well does FrontPage go with JavaScript?

         

contentmaster

12:34 pm on May 10, 2004 (gmt 0)

10+ Year Member



I need to create a 3 tier drop down menu for my site navigation where color changes when i select any of the options from the list...my question is : how good is frontpage with an inclusion of such a java script once the overall page structure is designed?

pageoneresults

6:24 pm on May 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



how good is frontpage with an inclusion of such a java script once the overall page structure is designed?

As good as any other WYSIWYG program out there. FrontPage will not alter your javascript. I would recommend that you place all of the javascript in an external file and not put it on the page. For example, in your

<head></head>
...

<script type="text/javascript" src="http://www.example.com/js/file.js"></script>

DaveLite

12:41 am on May 11, 2004 (gmt 0)

10+ Year Member



place all of the javascript in an external file and not put it on the page

why do you recommend this? I place the script on the page and have had no problems.

pageoneresults

1:03 am on May 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



why do you recommend this?

Anything that can be placed in an external file is highly recommended. First and foremost is maintainability. With an external file, you have one file to change. When you have code on the page, then you have the tedious task of doing a find and replace routine.

JavaScript and CSS are two prime candidates for moving into external files. There are performance benefits also involved by doing this.