combat_tourer
Feb 16 2004, 03:56 PM
I've come accross a pretty slick pop-up menu driven by javascript that I'd like to use on my website. It is free, and the instructions indicate that I need to add some of the code within the <HEAD></HEAD> tags, and the rest of it within the <BODY></BODY> tags.
Can someone tell me how to do this? Using the code for the <BODY> tags is pretty straight forward, I'll just add my final code into the left-hand navigation HTML editor. The first bit of code contains <Styles> variable and function descriptions and the script. It also calls "JavaScript1.2", does that matter? And does it really matter to place the code into the <HEAD> section?
Thanks,
Todd
mbsupport
Feb 16 2004, 04:44 PM
Todd,
To be perfectly honest I've often placed javascript in places besides the head and didn't seem to suffer any from it. Give it a try and see if there are any problems.
robert
Feb 16 2004, 04:49 PM
Todd, this question has come up often. We're usually advised to put it in the Top of Page section.
undejj
Feb 16 2004, 05:07 PM
I've never seen where 'JavaScript 1.2' really matters.
Also, the location of the script does not have to be in the <HEAD>. It just has to load before the rest of the script runs, so you could put it right before the rest of the script that goes in the <BODY>.
combat_tourer
Feb 16 2004, 06:34 PM
Thanks for the quick replies everyone.
I didn't understand the need to place it in the <head> section, and really, using the available MC Functions proves this out.
Thanks again.
Todd
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.