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

Discussion in 'Javascript' started by John Ortt, Jul 19, 2004.

  1. John Ortt

    John Ortt Guest

    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
    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:

    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.
    John Ortt, Jul 19, 2004
    1. Advertisements

  2. John Ortt

    John Ortt Guest

    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,


    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]) :
    <!-- The code stops running at the start of the line above

    parent.Left.document.writeln(' alt="About Me" width=250 height=50 border=0
    John Ortt, Jul 19, 2004
    1. Advertisements

  3. John Ortt

    John Ortt Guest

    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

    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,


    "Andrew Thompson" <> wrote in message
    > On Mon, 19 Jul 2004 16:51:07 +0100, John Ortt wrote:
    > > I am trying to modify the code by asigning the GIF file name into the

    > > I have developed the following code but my knowledge of Javascript is
    > > limited so I cannot see what is stopping it working.

    > Hi John!
    > I checked the link you gave*, and was confused
    > to see a pretty standard 'site mot uploaded'
    > type of GeoCities page..
    > <>
    > I did not realize that was your frameset..
    > It seems to be having problems because it cannot
    > find the 'Right.html', which (checks) is not here..
    > <>
    > OK.. now I see two images on left, which
    > change with mouseover..
    > One points to..
    > <>
    > That is definitely not correct form for a link,
    > it seems you are trying to call a JS function,
    > but it is too late for me to remember what they
    > they should look like..
    > I might have to cede to others that are more
    > alert, and know Javascript, to get you a little
    > further..
    > --
    > Andrew Thompson
    > Open-source software suite
    > Web & IT Help
    > Science & Technology
    John Ortt, Jul 19, 2004
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Woodmon

    Linked images not displaying

    Woodmon, Oct 21, 2005, in forum: HTML
    Jukka K. Korpela
    Oct 21, 2005
  2. Timmah1980

    Images not loading in webpage

    Timmah1980, Mar 9, 2006, in forum: HTML
    Jim Moe
    Mar 10, 2006
  3. Replies:
  4. John Ortt

    Javascript Menu not loading images

    John Ortt, Jul 16, 2004, in forum: Javascript
    John Ortt
    Jul 19, 2004
  5. Replies:
  6. Jitendra
    David Dorward
    Dec 31, 2005
  7. jitendramr
    David Dorward
    Dec 29, 2005
  8. soren625
    Dec 12, 2006