Problems in Mozilla 1.5 - _pp has no properties

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
lchin
Beginner
Beginner
Posts: 5
Joined: Wed Aug 25, 2004 4:53 pm

Problems in Mozilla 1.5 - _pp has no properties

Post by lchin »

My menu seems to be working OK in Internet Explorer. I have the website stored locally.

When I try to mouseover one of the menus, I get this error:

_pp has no properties

This error occurs in mmenudom.js

Any ideas why this might be occurring?

Thanks!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

We're probably going to need to see it. Any chance you can get it posted somewhere?
John
lchin
Beginner
Beginner
Posts: 5
Joined: Wed Aug 25, 2004 4:53 pm

OK, I posted the menu here..

Post by lchin »

User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

You need to ensure that the image name matches for the second popup parameter - You need to change Services to Image17:

Code: Select all

popup('Services','Image17')
-- Andy
lchin
Beginner
Beginner
Posts: 5
Joined: Wed Aug 25, 2004 4:53 pm

Doesn't seem to help..

Post by lchin »

Hello, I changed the popup image name, but it doesn't help in Mozilla. I am still getting the same error (_pp has no properties line 16). In same file: mmenudom.js
lchin
Beginner
Beginner
Posts: 5
Joined: Wed Aug 25, 2004 4:53 pm

Please help!

Post by lchin »

Anyone seen this problem before?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I found it :D

You need to also include an id for the image.

Basically Internet Explorer, is seeing name and assuming it's the same as id, probably shouldn't but that's IE for you.

Gecko browsers, on the other hand, are looking for an image id but not finding it, thus the error.

So, if you include an id for the image as well as a name (name is for Netscape 4 compatibility) this will fix Mozilla.

So you should have something like this:

Code: Select all

 <TABLE style="WIDTH: 760px; HEIGHT: 25px; TEXT-ALIGN: left" cellSpacing=0 
      cellPadding=0 border=0>
        <TBODY>
        <TR>
          <TD align=middle><A 
            onmouseover="MM_swapImage('Home','','images/home_r.gif',1)" 
            onmouseout=MM_swapImgRestore() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=home src="tst_files/home_g.gif" width=50 align=middle 
            border=0 name=Home></A></TD>
          <TD align=middle><A 
            onmouseover="MM_swapImage('corporate','','images/corporate_r.gif',1);popup('Corporate','corporate')" 
            onmouseout=MM_swapImgRestore();popdown() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=corporate src="tst_files/corporate_g.gif" width=75 
            align=middle border=0 name=corporate id=corporate></A></TD>
          <TD align=middle><A 
            onmouseover="MM_swapImage('products','','images/products_r.gif',1);popup('Products','products')" 
            onmouseout=MM_swapImgRestore();popdown() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=products src="tst_files/products_g.gif" width=71 
            align=middle border=0 name=products id=products></A></TD>
          <TD align=middle><A 
            onmouseover="MM_swapImage('solutions','','images/solutions_r.gif',1);popup('Solutions','solutions')" 
            onmouseout=MM_swapImgRestore();popdown() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=solutions src="tst_files/solutions_g.gif" width=74 
            align=middle border=0 name=solutions id=solutions></A></TD>
          <TD align=middle><A 
            onmouseover="MM_swapImage('Image17','','images/services_r.gif',1);popup('Services','Image17')" 
            onmouseout=MM_swapImgRestore();popdown() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=services src="tst_files/services_g.gif" width=62 
            align=middle border=0 name=Image17 id=Image17 ></A></TD>
          <TD align=middle>&nbsp;</TD>
          <TD align=middle><A 
            onmouseover="MM_swapImage('Image19','','images/contact_r.gif',1)" 
            onmouseout=MM_swapImgRestore();popdown() 
            href="http://websites.milonic.com/bittersweetgirl.com/t1/IDRom/test.html#"><IMG 
            height=18 alt=contact src="tst_files/contact_g.gif" width=67 
            align=middle border=0 
  name=Image19></A></TD></TR></TBODY></TABLE>
Hope this helps
Andy
lchin
Beginner
Beginner
Posts: 5
Joined: Wed Aug 25, 2004 4:53 pm

Thanks for all your help!

Post by lchin »

Wow fast response. Thanks so much!
Post Reply