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

  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,

    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>')
    John Ortt, Jul 19, 2004
    #2
    1. Advertising

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


    "Andrew Thompson" <> wrote in message
    news:8n0mrd09dsec$...
    > 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

    html.
    > > 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..
    >
    > <http://www.geocities.com/johnortt/Index.html>
    >
    > 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..
    > <http://www.geocities.com/johnortt/>
    >
    > OK.. now I see two images on left, which
    > change with mouseover..
    >
    > One points to..
    > <http://www.geocities.com/johnortt/top.projects()>
    >
    > 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
    > http://www.PhySci.org/ Open-source software suite
    > http://www.PhySci.org/codes/ Web & IT Help
    > http://www.1point1C.org/ Science & Technology
    John Ortt, Jul 19, 2004
    #3
    1. Advertising

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. Timmah1980

    Images not loading in webpage

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

    Javascript Menu not loading images

    John Ortt, Jul 16, 2004, in forum: Javascript
    Replies:
    7
    Views:
    98
    John Ortt
    Jul 19, 2004
  3. Jitendra
    Replies:
    14
    Views:
    291
    David Dorward
    Dec 31, 2005
  4. jitendramr
    Replies:
    1
    Views:
    120
    David Dorward
    Dec 29, 2005
  5. soren625
    Replies:
    2
    Views:
    349
    soren625
    Dec 12, 2006
Loading...

Share This Page