a long time agao, I found a tutorial that explained how you could make a javascript file for a menu, that every page in the website could look up in order to show a
menu while only needing to update one file for new pages.
It worked great!!
I haven't updated that page in forever, but here's the site that uses that menu:
My BCS Gamers Club
so, I have 2 other sites that I've wanted to do the same thing in.. these sites are not free hosted, I pay for them. I have been unable to get the same thing to work.
Every time i try, i search for that old tutorial, and cannot find it, and give up.
Today, I started working on a new main page for my newer site... it's again not working.
If I copy my old menu from bcs gamers, it works.
If I replace the information inside the document.write... it stops working.
I am not changing the javascript coding... only the information inside of it. I cannot figure out why this will not work.
here are working vs nonworking codes.
WORKING
Code:
document.write("<br><font color='turquoise'><b>Message Boards</b></font><br>")
document.write("<a href='http://www.communitygaming.org/clubforum/viewforum.php?f=56'>Public Forum</a><br>")
document.write("<a href='http://www.communitygaming.org/clubforum/'>Private Forum</a><br>") NOT WORKING
Code:
document.write("<br><b>Menu</b><br>")
document.write("<a href='http://www.catscratches.net/index.html'>HOME</a><br>")
document.write("<a href='http://www.catscratches.net/links.html'>links</a><br>")
document.write("<a href='http://www.catscratches.net/aboutus.html'>Bio</a><br>")
document.write("<a
href="mailto:CAT@CatScratches.Net?subject=Regarding%20CatScratches.Net">Contact CAT</a>")
document.write("<a href='http://www.communitygaming.org/clubforum/'>CGO Public Forum</a><br>")
document.write("<a href='http://www.catscratches.net/cscredits.html'>Credits</a><br>") Can anyone save hy head from exploding, and tell me either what i'm doing wrong, or an easier way to do this??
(I hand code, cannot afford dreamweaver, and prefer to continue handcoding anyway)
p.s...
The page I'm working on is
http://www.catscratches.net/newindex.html