Javascript Menu Not Loading Images - (Now with linked Webpage)

J

John Ortt

Hi everyone, I posted with the title "Javascript Menu Not Loading Images"
last week but I only posted the code as the site was on a corporate
Intranet.
Thanks to advice on the thread I have created a Geocities page. I have also
cleaned up the code slightly (again thanks to a few tips).
The problem should be evident when you open up the link, but I will include
the original text after the link. (A link to the original thread would be
better but I don't know how to do them).

The following link takes you to the problematic page:
http://www.geocities.com/johnortt/Index.html

Thanks In advance,

John Ortt


---------------------------------------
Original Post:

I have created a Javascript menu for my site which uses frames. The first
stage loads fine but I want two drill down menus ("About Me Menu" and
"Projects Menu"). The pages load fine, but the images aren't displayed,
instead the alt text is shown. The images come up after you "Mouse Over"
them but not before......can anybody spot any errors in my code which could
be doing this please. For info, I have 4 images for each button, to take
into acount whether the button had been used and to give a mouse-over image
for each state. I have also deleted the code for items 3-5 as they are
commercially sensitive.
 
J

John Ortt

I am trying to modify the code by asigning the GIF file name into the html.
I have developed the following code but my knowledge of Javascript is
limited so I cannot see what is stopping it working.

Any advice would be greatly appreciated,

Thanks,

John Ortt.

Code follows:

parent.Left.document.writeln('<img src=')
<!-- Up to this point works fine

(about_me==0) ? parent.Left.document.writeln(aboutMe[0]) :
parent.Left.document.writeln(aboutMe[2])
<!-- The code stops running at the start of the line above

parent.Left.document.writeln(' alt="About Me" width=250 height=50 border=0
name="about"></A>')
 
J

John Ortt

Thanks for looking Andrew.

You're right in saying the right hand portion of the page is missing, I have
not created this part of the site yet as I am trying to get the menu to work
first.

Essentially it is a two level menu, with About me and projects at the top
level. When you click on each of them the sub menu's have a (back) up
option and a single link for the sake of simplicity which would change the
source data for the right hand side (If I had created the page).

The big problem for me is that the pictures which load for the drill down
menus are either wrong or do not load...

Please experiment with navigating down the menu and back up and you should
see. The Javascript procedures seem to work but I need to find out how to
output the results of a procedure as text and subsequently how to write that
text using the writeln command. (Refer to the other post I have made
underneath the top level)

Thanks again for looking at the site though,

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top