Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 06-11-2006, 03:52 PM   #1 (permalink)
Noogle
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
confused.little.einstein
Needing help with navigation bar and code

<>I am creating a cancer-research oriented web page, and have run into problems with my navigation bar.
It's probably just a simple error, or a component I didn't know about, but I'm getting fairly frustrated.
The links work perfectly fine, but the image of the navigation bar won't load. I downloaded the images to my hard drive.
Is it a problem with the code, do I have to do something else with the image file?
Et cetera, et cetera...
I've spent too long on something that seems so simple.
Any input would be greatly appreciated.
This is the code:

<script language = "javascript">
<!--
imagename0 = new Image();
imagename0.src = "PediatricCancersB.png";
imagename1 = new Image();
imagename1.src = "PediatricCancers.png";
imagename2 = new Image();
imagename2.src = "StatisticsB.png";
imagename3 = new Image();
imagename3.src = "Statistics.png";
imagename4 = new Image();
imagename4.src = "BiologyB.png";
imagename5 = new Image();
imagename5.src = "Biology.png";
imagename6 = new Image();
imagename6.src = "EffectsB.png";
imagename7 = new Image();
imagename7.src = "Effects.png";
imagename8 = new Image();
imagename8.src = "TreatmentB.png";
imagename9 = new Image();
imagename9.src = "Treatment.png";
imagename10 = new Image();
imagename10.src = "AboutthesiteB.png";
imagename11 = new Image();
imagename11.src = "Aboutthesite.png";<
><>//-->
</script><
><><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="/commonchildhoodcancers.html">[img]PediatricCancers.png[/img]<><></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="/statistics.html">[img]Statistics.png[/img]<><></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="/biologyofcancer.html">[img]Biology.png[/img]<><></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="/effects.html">[img]Effects.png[/img]<><></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="eatment.html">[img]Treatment.png[/img]<><></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%"><a href="/aboutsite.html">[img]Aboutthesite.png[/img]<><></table>
<
>

Thanks!
confused.little.einstein is offline   Reply With Quote
 
Sponsored Links
Old 06-12-2006, 08:08 AM   #2 (permalink)
Master Googler
 
Join Date: Mar 2006
Location: Terminus
Posts: 531
Thanks: 0
Thanked 0 Times in 0 Posts
cruocitae
I don't know JavaScript, but I know one reason of your problem: your code is hard to debug. Make easy-to-read code. Feel free to use spaces, tabs, newlines. A reason why I like Python is the fact that it makes visible code design a must for the programmer.
cruocitae is offline   Reply With Quote
Old 06-13-2006, 12:30 PM   #3 (permalink)
Google Guru
 
andrew247's Avatar
 
Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,386
Thanks: 3
Thanked 13 Times in 13 Posts
andrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of light
I don't know very much about javascript, so anything I suggest might not work.

EDIT: You've declared variable names, then never used them.



The following is what I was originally going to reply, but I just noticed something that caught my eye.
Quote:

You could try putting the "<script>javascript code here</script>" in your header.
andrew247 is offline   Reply With Quote
Old 06-14-2006, 03:20 AM   #4 (permalink)
Master Googler
 
Join Date: Mar 2006
Location: Terminus
Posts: 531
Thanks: 0
Thanked 0 Times in 0 Posts
cruocitae
I don't think that's a serious mistake, but I used to use <script type="text/javascript">...</script>

I knew some basic functions some years before..
cruocitae is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down Roll-over Navigation Menus And Seo Diana 897 All About Google 2 02-05-2007 06:16 AM
Navigation Below Ocean / Lake-level in GE odesius Google Earth & Google Maps 0 08-17-2006 10:36 AM
Needing some advise... Christopholofigus Graphics Design Forum 3 12-02-2005 09:56 AM
Dynamic Previous & Next Navigation sutekia Web Design, Coding & Programming Forum 2 08-13-2004 12:45 AM
Needing some advise... Christopholofigus Graphics Design Forum 3 01-01-1970 10:52 AM


All times are GMT -8. The time now is 05:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community