Can't see menu on Safari 1.3 (v312) on Mac

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
fluffygang
Beginner
Beginner
Posts: 7
Joined: Mon May 09, 2005 3:24 pm

Can't see menu on Safari 1.3 (v312) on Mac

Post by fluffygang »

I am trying to develop a menu which will work on both Mac and PC, but am having problems. I have abandoned early attempts encorporating images and am now just trying to get anything to work at all. My simplified menu can be seen at...

http://www.bodytronix.co.uk/menutest/

This seems to work fine on my PC (Windows XP - IE 6.029, FireFox 1.01, Netscape 7.0), but on Safari 1.3 on my Mac (OSX 10.3.9) I just see a blank screen.

I guess I must be doing something dumb, but I can't see what... can someone please help?

I'm using the latest Milonic Menu code. My menu code is as follows...

Code: Select all

_menuCloseDelay=250 // The delay for menus to remain visible on mouse off
_menuOpenDelay=100  // The delay for opening menus on mouse over
_subOffsetTop=0     // Sub menu offset Top position
_subOffsetLeft=0    // Sub menu offset Left position

// Top Menu Style...

with(topMenuStyle=new mm_style()){
followscroll=0;
fontfamily="arial, helvetica, sans-serif";
offcolor="#000000";
oncolor="#ffffff";
onbgcolor="#ff3333";
offbgcolor="#eaeaea";
fontsize="10pt";
padding=0;
valign="center";
align="center";
itemwidth=161;
itemheight=28;
borderwidth=1;
bordercolor="#d2d2d2";
separatorsize=1;
separatorcolor="#d2d2d2";
}

// Top (Sub) Menu Style...

with(topSubMenuStyle=new mm_style()){
followscroll=0;
fontfamily="arial, helvetica, sans-serif";
oncolor="#ffffff";
offcolor="#000000";
onbgcolor="#ff3333";
offbgcolor="#eaeaea";
fontsize="9pt";
padding=3;
valign="center";
align="left";
itemwidth=160;
itemheight=20;
borderwidth=1;
bordercolor="#d2d2d2";
separatorsize=1;
separatorcolor="#d2d2d2";
}

// Top Menu...

with(milonic=new menuname("topMenu")){
style=topMenuStyle;
orientation="horizontal";
alwaysvisible=1;
left=16;
top=89;
aI("text=Contents;url=#;status=Xxxxxxxx;showmenu=Contents");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxx;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxx;");
}

with(milonic=new menuname("Contents")){
style=topSubMenuStyle;
left=16;
top=118;
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
aI("text=Xxxxxxxx;url=#;status=Xxxxxxxxe;");
}

drawMenus();
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I tried to see if I could tell by 'looking' what the problem might be because sometimes it is obvious. I'm getting a js error in IE5.5 on PC, something about event is undefined. I saw your calls for the menu files and changed them to the following which eliminated the js error

Code: Select all

<SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
	if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");		
	  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>"); 
	</SCRIPT>
<SCRIPT src="menuStyles.js" type=text/javascript></SCRIPT>
Try that, using your own paths of course, and see if it makes a difference. And, try that coding right after the body tag if the above doesn't.

There should be no problem with the menu on Mac Safari, with or without images. Many Milonic users have Macs and Safari. Unfortunately I don't have a Mac, so if neither of the suggestions work, you'll need to wait for John, who uses a Mac, to check it.

If you could put up the menu with the images we'd be glad to test it and see what the problem is.

For further inforamtion, eliminate the top= and left= from the submenu "Contents" since they won't do anything on the positioning because the subs drop from the main based on the main item's position, that is part of the internal coding in the menu. You also don't need the followscroll=0; that is the default for the menu.

Ruth
fluffygang
Beginner
Beginner
Posts: 7
Joined: Mon May 09, 2005 3:24 pm

All better now - thanks

Post by fluffygang »

Hi Ruth,

Thank you very much - told you I was doing something dumb!
The menu works fine now, as does the image-based one.

Kind Regards,
Adam
Post Reply