Mouseover problem, text disappears

  hal_cyon 19:39 27 Jun 2005
Locked

Hi,

I have redesigned the site for my small company
and it worked fine on my PC, but when i uploaded it to my webspace there is a problem with the menu,
The mouseover initially works but then the text disappears

I'm new to JavaScript and can't see what might be wrong

I tried taking down the whole site and uploading it all again, but to no avail

I would very much appreciate some help on this one, thanks

my url is click here

hal_cyon

  phil 20:07 27 Jun 2005

Your menu js code says .....img1off.src = "home.gif."; but the html is looking for.....onMouseOut="imgOff('img1')">

You've missed the numbers (1 in this case) off.

  phil 20:09 27 Jun 2005

Also you have one bit in lower case and the other partly in proper.

  hal_cyon 20:38 27 Jun 2005

"Your menu js code says .....img1off.src = "home.gif."; but the html is looking for.....onMouseOut="imgOff('img1')">

You've missed the numbers (1 in this case) off. "

okay man thanks

what do I need to change?

  phil 21:01 27 Jun 2005

You need to keep:

img1off = new Image();
img1off.src = "home.gif.";

img2off = new Image();
img2off.src = "aboutus.gif.";

img3off = new Image();
img3off.src = "services.gif.";

etc, etc

And change these:

onMouseOut="imgOff('img1')">

onMouseOut="imgOff('img2')">

onMouseOut="imgOff('img3')">

etc, etc to:

onMouseOut="img1off('img1')">

onMouseOut="img2off('img2')">

onMouseOut="img3off('img3')">

etc, etc

  hal_cyon 21:19 27 Jun 2005

Phil

thanks again man

I changed them like You said (I think)

could You please check to confirm I did it right

I hope i missed something because the links now stay yellow instead of going back to blue

I appreciate you helping me man

hal_cyon

  hal_cyon 21:31 27 Jun 2005

Phil

I noticed in your reply

"You need to keep:

img1off = new Image(); img1off.src = "home.gif.";

img2off = new Image(); img2off.src = "aboutus.gif.";

img3off = new Image(); img3off.src = "services.gif."; "


I had put a . after home.gif/aboutus.gif etc

what a plonker I am

thanks for all your help man
I really appreciate it

would have been tearing my hair out by now

hal_cyon

  phil 23:10 27 Jun 2005

I'd missed that one too. Does that make us both plonkers.

If you ever get any errors appearing always double and treble read your code. The fault is usually in there somewhere.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

AMD Radeon Adrenalin release date, new features, compatible graphics cards

8 brilliant character artists speaking at Pictoplasma 2018

iMac Pro release date, UK price & specs

Football : comment regarder la Ligue 1 en direct ?