home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

trouble with javascript menu reference.

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2130
Discussions: 200,948, Posts: 2,379,414, Members: 246,310
Old January 24th, 2006, 08:52 PM   Digg it!   #1 (permalink)
Member
 
daedreem's Avatar
 
Join Date: Jan 2006
Location: Texas, Y'all.
Posts: 139
(Solved)trouble with javascript menu reference.

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

Last edited by daedreem : January 30th, 2006 at 01:05 PM. Reason: FIXED
daedreem is offline   Reply With Quote
Old January 24th, 2006, 09:00 PM     #2 (permalink)
Member
 
daedreem's Avatar
 
Join Date: Jan 2006
Location: Texas, Y'all.
Posts: 139
PPs.... Right now, I'm basically trying to come up with a versitile template I can make better, and use for my 2 different websites.. I have no $ to buy one, but if you can give me any good suggestions of how to make it better, it'd be wonderful.. i don't expect you to do the work for me (although that'd be nice.. ) but i'd love a little assistance..
The one site is planned to be a way for me to earn $ from home so i can take care of my daughter and work at the same time.. my other hosted site was just so much of a hassel to update (2 days approx. to add 1 page) that I don't want to do anything with it or my 'work' site without an easy to edit template.
daedreem is offline   Reply With Quote
Old January 24th, 2006, 09:28 PM     #3 (permalink)
Member
 
brian0555's Avatar
 
Join Date: Mar 2002
Location: Ohio
Posts: 125
Send a message via AIM to brian0555
[quote=daedreem]
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>")

The only problem in this one is the line with your email.. Notice the ".." instead of '..'

Also, it should be one line, without a break between the a
href. A space is fine, just fix it from going to the next line.
__________________
Rosetta@Home [XPC ]
brian0555 is offline   Reply With Quote
Old January 24th, 2006, 09:41 PM     #4 (permalink)
Member
 
daedreem's Avatar
 
Join Date: Jan 2006
Location: Texas, Y'all.
Posts: 139
Brian, Thank-you thank-you!!
That worked...
The mailto was working on the bottom of the page, and I'd had a mailto link on my other site. it didn't occur to me that copying it to here had inserted an extra space, or that the " vs ' would make the difference!

Whichever it was, it works now!

If you have any other suggestions, feel free to send them my way!!
daedreem is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript help - customizing drop select menu border color Namie Graphic Design and Digital Photography 0 September 28th, 2005 04:45 AM
Help with JavaScript menu problem (positioning) Francesca Webmastering and Programming 7 October 7th, 2003 07:57 PM
A historical reference Theophylact IMO Community 25 April 21st, 2003 03:00 AM
Added JavaScript and it totally cocked up my menu bar :( Fade2Grey Webmastering and Programming 4 March 18th, 2003 11:36 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (175)
Is It Just Me? (2940)
The disrespect of Obama by Russian .. (26)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
windows vista security holes (9)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Multiple Restarts Required at Boot (1)
For Sale BFG GTX285 OC2 with 10 year .. (3)
Point and Shoot Camera Suggestions. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)


All times are GMT -4. The time now is 10:35 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28