I guess I have more problems than just how to put it where I want it. I tried what you gave me above and nothing. No navigation bar at all. It's probably something else I'm doing wrong.
I typed out the script file in notepad and saved it as "navbar.js". If I place the script directly into the head and content area I want the bar to be in, it works fine. If I just place the "navbar.js" in the root of the website and use the code given above, nothing happens.
This is the script if it helps:
<script language="javaScript" type="text/JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "buttons/about-over.gif";
image2 = new Image();
image2.src = "buttons/directionsover.gif";
image3 = new Image();
image3.src = "buttons/links-over.gif";
image4 = new Image();
image4.src = "buttons/comments-over.gif";
image5 = new Image();
image5.src = "buttons/contacts-over.gif";
image6 = new Image();
image6.src = "buttons/calendar-over.gif";
image7 = new Image();
image7.src = "buttons/bar.gif";
image8 = new Image();
image8.src = "buttons/bar.gif";
// End -->
</script>
<img name="image7" src="buttons/bar.gif" alt="Navbar"
border="0">
<a href="http://msmcctt.exofire.net"
onmouseover="image1.src='buttons/about-over.gif';"
onmouseout="image1.src='buttons/about-up.gif';"><img
name="image1" src="buttons/about-up.gif" alt="Home"
border="0"></a>
<a href="http://msmcctt.exofire.net/Directions.html"
onmouseover="image2.src='buttons/directions-over.gif';"
onmouseout="image2.src='buttons/directions-up.gif';"><img
name="image2" src="buttons/directions-up.gif"
alt="Directions" border="0"></a>
<a href="http://msmcctt.exofire.net/Links.html"
onmouseover="image3.src='buttons/links-over.gif';"
onmouseout="image3.src='buttons/links-up.gif';"><img
name="image3" src="buttons/links-up.gif" alt="Links"
border="0"></a>
<a href="http://msmcctt.exofire.net/Comments.html"
onmouseover="image4.src='buttons/comments-over.gif';"
onmouseout="image4.src='buttons/comments-up.gif';"><img
name="image4" src="buttons/comments-up.gif"
alt="Comments" border="0"></a>
<a href="http://msmcctt.exofire.net/Contacts.html"
onmouseover="image5.src='buttons/contacts-over.gif';"
onmouseout="image5.src='buttons/contacts-up.gif';"><img
name="image5" src="buttons/contacts-up.gif"
alt="Contact Us" border="0"></a>
<a href="http://msmcctt.exofire.net/Calendar/plans.cgi"
onmouseover="image6.src='buttons/calendar-over.gif';"
onmouseout="image6.src='buttons/calendar-up.gif';"><img
name="image6" src="buttons/calendar-up.gif"
alt="Calendar" border="0"></a>
<img name="image8" src="buttons/bar.gif" alt="Navbar"
border="0">
Any thoughts? (And yes, I had a lot of help with the script. I retyped it from an example so I could hopefully learn something.)
Edit:
You will then need to call the script as a function(bearing in mind that you can't have functions within a function).
You would do this like so as to the above example :
Code:
<script type="text/javascript" language="javascript" src="javascriptname.js">
what_ever_you_want_to_call_it(variable,var,another_var);
</script>
Code:
function what_ever_you_want_to_call_it(variable,var,another_var) {
....
}
I'm sorry but I'm a little slow with this. In your example above, are you stating it should look like this?:
Code:
<script type="text/javascript" language="javascript" src="navbar.js">
var (navbar);
var navbar {
}
</script>
And thank you for the help.