473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
13
by: Jitendra | last post by:
Hi! I m facing a problem with 'javascript:void(0)' Software Environ:- IE: 6.0.2600.0000 OS: Windows 2000 Professional with Service Pack 4 Problem:- I have a webpage with several links (<A>...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.