Forum Moderators: mack

Message Too Old, No Replies

Can I move code for menus?

Away from the top of the page ...

         

Kenton

11:53 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



Hi

I am working on a site that has about 300 lines of code before any real content. ;-(

It contains some javascript that creates the menus that run across the top of the page. It then has a table that contains the calls to these functions to display the menus.

Is there any way I can move this scripting and/or table so that the content is higher within the source code?
Alternately, can the content text be pre-defined above the scriting in the source?

Thanks
Kenton

txbakers

1:34 am on Jan 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might be able to move all the javascript to an external file and include it.

traffik daddy

9:38 am on Jan 23, 2004 (gmt 0)

10+ Year Member



Yes,

Definatly use external files for all Javascript.

<SCRIPT LANGUAGE="JavaScript" type="text/javascript"
src="javascript.js"></SCRIPT>

That should do the trick

Terry

Kenton

10:49 pm on Jan 26, 2004 (gmt 0)

10+ Year Member



Thanks Guys