Firefox Issues

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Ginocide
Beginner
Beginner
Posts: 6
Joined: Tue Aug 09, 2005 12:08 am

Firefox Issues

Post by Ginocide »

Now that I have my menu running great, I've found that it only works in IE. The only other browser I test in is Firefox, and it's completely inoperable in FF. What gives? Here is the test page: http://www.stgeorgewarren.org/test. Thanks for any help.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

The calls are incorrect. Using The Parish one as an example it should be:

Code: Select all

<A onmouseover="popup('Parish','parishmenu')" href="http://websites.milonic.com/stgeorgewarren.org/test/#" onmouseout="popdown()">
<IMG id=parishmenu src="TheParish.gif" border=0 name=parishmenu></A>
You left out the popdown which means the submenus won't close, and the id and name need to be the same. You'll have to check the other ones and make the changes.

Ruth
User avatar
Ginocide
Beginner
Beginner
Posts: 6
Joined: Tue Aug 09, 2005 12:08 am

Post by Ginocide »

Ruth, thank you so much for your help over the last couple days. I am now having some cosmetic issues with FF. If you look at the site in both FF and IE, you'll notice that everything's nice in IE, but certain things don't look right in FF. The menus don't fade in or out and the text is smaller.

Is there a way to get the same menu_data.js file to run the same in both browsers, or should I do a browser test and then call a separate menu_data.js file just for FF users? Here is my menu_data.js file if you need to look at it.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

The fade will never show in anything but IE. This is not a lack in the menu system. The overfilter and outfilter options are program inclusion of the Microsoft filters and transitions which uses active x. These are proprietary to Internet Explorer. Here's an interactive demo if you want to take a look at other things you can do with the overfilter/outfilter properties of the menu. There is no similar programming function available in other browsers, so no way to put anything in the menu to get those browser to do what IE does.

As to the size, that has to do with whatever the setting is on your FF browser especially since you have the font size set to 125%. That means it will be 125% of whatever size you have set in your browser, any browser. So if I have my text size set at smaller or decrease in IE and Firefox, it will be 125% of whatever the equivalent fontsize is to those. You can set a fixed font size which should be equal across browser, but remember that anyone using FF, Netscape or IE with the accessibility 'ignore font size' checked will be able to change the size. The only way to make it the same always is to use images, but it really is better to allow the user to change the submenu fonts for their vision needs.

I have a question for you. Is there some specific reason you are using the pop menu function instead of just putting the menu in a table at the top of the page? It would be so much easier to code and to make changes if you ever decide to do that.

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

Post by Ruth »

Hi again,

Just in case you decide you wanted to use a main menu in a table I put together the code. Your page would have this at the top, in place of the popup section and the spacer you have now.

Code: Select all

<!-- MENU -->
<CENTER> 
<table cellSpacing=0 cellPadding=0 width=600 border=0>
<tr>
       <td><center><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td><script>with(milonic=new menuname("main")){
style=mainStyle;
position="relative";
alwaysvisible=1;
orientation="horizontal";
aI("image=TheParish.gif;showmenu=Parish;")
aI("image=ProgressiveChristianity.gif;showmenu=ProgChrist;")
aI("image=LivingTheQuestions.gif;showmenu=Living;")
aI("image=RecentSermons.gif;showmenu=Recent Sermons;")
aI("image=Forum&Contact.gif;showmenu=Forum & Contact;")
}
drawMenus();
</script>
</td>
</tr>
</table></center></td>
</tr>
<tr>
       <td><IMG height=4 src="space.gif" width=2><BR></td>
</tr>
</table></CENTER><!-- /MENU -->
in your menu data file you would add this mainStyle code right below the menuStyle code and before the first submenu

Code: Select all

mainStyle=new copyOf(menuStyle); 
mainStyle.borderwidth=0; 
mainStyle.separatorsize=0;
mainStyle.subimage="";
Ruth
User avatar
Ginocide
Beginner
Beginner
Posts: 6
Joined: Tue Aug 09, 2005 12:08 am

Post by Ginocide »

Ruth, you're awesome. Thank you. A question though... How is this menu better than the other way that I did it? (I'm not questioning whether or not it's better - I'm a novice, I'm sure your way is better - but why is it better?)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Not better. Just easier given your design layout. As you can see from the coding for each it's much easier to do the table one. Look at what you had to put for each link in the html page and now look at the aI for those same links

Code: Select all

aI("image=TheParish.gif;showmenu=Parish;")
That does exactly the same thing because the menu program already has all the onmouseover/onmouseout automatically built in. In the links on the page you are just calling those functions.

I'm sending you information in private message with the coding to put it all in the menu_data.js file which is even easier than in a table.

Ruth
Post Reply