Link to home
Start Free TrialLog in
Avatar of safe-2-surf
safe-2-surf

asked on

Works fine in IE - but not in Mozilla - javascript function onmouseover

Hi All,

I have been playing with some javascript - see www.bespokitchens.co.uk/gallery.htm - and it all works in IE but only partly works in Mozilla. Everything but the change of background image in the big Layer (layer2).

any ideas??

the code:

function changeLayerImage(obj)    {
   if (obj!=oldObject)    {
   obj.style.borderColor='#FF6633';
   obj.style.filter='Alpha(Opacity=100)';
   obj.style.opacity=1;
    document.all.Layer2.style.backgroundImage=obj.style.backgroundImage;


what do you think?

Many thanks for your time & I hope you can help.

Kind regards,

Max.
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

well my FFox java console provides the following instight into the issue.

document.all has no properties    Line:25
http://www.bespokitchens.co.uk/gallery.htm

which is:

       document.all.Layer2.style.backgroundImage=obj.style.backgroundImage;

ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of safe-2-surf
safe-2-surf

ASKER

what can i say - dinosaur - fast, and spot on.

my subscription fee just paid for itself!!

for opacity I used

 obj.style.opacity=1;

no worries, works on mozilla and ie ... haven't looked at teh site in NN yet.

cheers,

Max.
Cool that Moz is supporting it that way. It will be less hassle.  Thanks for the A. :^)

Cd&