adding javascript menu

T

trint

How can I add javascript to my code view of my default.aspx file and
get my meny to show?
Here is the code I want to display (it's obviously a menu):

<!-- menu script itself. you should not modify this file -->
<script language="JavaScript" src="menu.js"></script>
<!-- items structure. menu hierarchy and links are stored there -->
<script language="JavaScript" src="menu_items.js"></script>
<!-- files with geometry and styles structures -->
<script language="JavaScript" src="menu_tpl.js"></script>
<script language="JavaScript">
<!--//


new menu (MENU_ITEMS, MENU_POS);
//-->
</script>


Thanks,
Trint
 
D

David Wier

All you really need to do is just put it between the Body tags, exactly
where you want it to show. Before, with many pages in my site, I just
created an include file (yes, include), since there's nothing really dynamic
about it, put all the Javascript code in the include, then place the include
file between the body tags, exactly where you want it to show.
 
T

trint

David,
I did as you said, and it still isn't showing after I do a build and
view in browser.
Thanks,
Trint
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top