By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,689 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,689 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

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>')
Jul 23 '05 #2

P: n/a
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
Jul 23 '05 #3

P: n/a
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" <Se********@www.invalid> wrote in message
news:8n****************************@40tude.net...
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

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.