|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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! |
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Master Googler
![]() Join Date: Mar 2006
Location: Terminus
Posts: 531
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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.
|
|
|
|
|
|
#3 (permalink) | |
|
Google Guru
![]() Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,386
Thanks: 3
Thanked 13 Times in 13 Posts
![]() ![]() ![]() ![]() ![]() |
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:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |