- Create Account

font in startmenu not displaying correctly in firefox

Forums > Cascading Popup Menus: Help > font in startmenu not displaying correctly in firefox
Author
Message

1) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 199.94.--.--
My startmenu and dropdown menus appear fine in IE but in firefox the startment displays times new roman and is shifted to the left. Please see www.chertekweb.com/pallas07 (test site). Can you please assist??? Thank you!
cw

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Hello again :).

Copy  the menu's CSS rules into your site stylesheet, in particular the "itemText" class.

Also, quick query: I recall you've used the scripts in the past, are you considering making a donation or credit link for this site and/or others?

Good luck - Angus.

3) xenon2050 Group: Guests
IP: 69.210.--.--
Hey cwigmore... Just got a tip for your website... You are missing the closing </html> tag... :) Oh and like Angus said, give some credit where credit is due, or donate. He has obviously worked very hard on these scripts and deserves some compensation either in a link or a donation...

4) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 24.177.--.--
Thanks for your responses! I will see if I can get this to work.

I definately have a credit link on my site's services page, http://chertekweb.com/services.htm, and when I do put sites in production, I put a link on the pages.

Thanks,  again!!
cw

5) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 24.177.--.--
I have included the end </html> tag (thanks), and the following is in my css file:

.itemText { text-decoration:  none; color: #ffffff; font: Bold 10px Verdana }
.itemHover { text-decoration:  none; color: #000052; font: Bold 10px Verdana }

in  my menu:
var hBar = new ItemStyle(145, 10, '', 10, 0, '#009999', '#009999', 'itemText',  'itemHover', '', '',
 null,  null);

startMenu('root', false, 'page.winW()/2 - 290', 88, 20, hBar)

As mentioned, the files are working fine in ie, but are not showing properly in firefox. Is there some other silly thing I am missing???

Thank you!

Cheryl

cw

6) xenon2050 Group: Guests
IP: 204.11.--.--
Try putting in a Doc Type such as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

They can really help... And
<LINK REL="stylesheet" type="text/css" href="menustyle.css"/>
Get rid of that last "/" as far as I can tell it is not needed.
you have this: <SCRIPT LANGUAGE="JavaScript1.2" SRC="menu.js"></script>
Try this <script type="text/javascript" language="JavaScript1.2" src="menu.js"></script>


7) xenon2050 Group: Members
Posts: 6 Joined: 10 Jan 2008 Location: WI, USA but I wish Minnesota IP: 204.11.--.--
Oh wait I think I see the problem... In your css file you put
"<head>
<style>
<!--"
And
"-->
</style>
</head>"

Delete those and you should be set. But it would still be a good idea to do my other recommendations...

8) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
xenon2050: thanks for your help!

Yes, ".itemText"  isn't being picked up by the browser because of the HTML in there. Clean that up and it'll work OK.

- Angus.

9) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 24.177.--.--
THANK YOU! It is fixed!

cw

10) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 24.177.--.--
one more thing -- is there another silly reason why the menus will not align equally in ie and firefox? Now in firefox it shows centered and in ie it does not . . .

startMenu('root',  false, 'page.winW()/2 - 260', 88, 20, hBar);
cw

11) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Try using the positioning relative to links in the "Advanced Positionin" section of pop_syntax.html.

Either that or:

startMenu('root', false,  'page.winW()/2 - 260 - (isIE&&!isOp ? 8  : 0)', 88, 20, hBar);

or similar.

Also, the FreeStyle Menu script is a lot newer and easier -- try using that for your next site :).

-  Angus.

12) cwigmore Group: Members
Posts: 6 Joined: 9 Jan 2008 Location: CT IP: 24.177.--.--
Thanks, Angus. I guess I am not using the most recent version with the pop-syntax.html file and the startmenu did not work with the IE varible. I am definately not a js guru so, therefore, having problems. Is there some other simple fix within the js file that I can fix without upgrading? Everything else is working fine and I was hoping to finish this project. Will be happy to try out the freestyle menu for next project.

Cheryl
cw

13) xenon2050 Group: Members
Posts: 6 Joined: 10 Jan 2008 Location: WI, USA but I wish Minnesota IP: 204.11.--.--
Not to hijack the thread or anything... But Angus you seem to be recommending the FreeStyle Menu script a lot, and it does seem nice. But I picked the Cascading Popup Menu because of the fact that the menu is in a separate file thus being easy to change when I make a menu change. Plus doing it that way decreases the size of the files... Is there a way to have the FreeStyle Menu script in a external file and just pull it in like a php include statement?

cwigmore - just  curious if you tried Angus' suggestion of using this:
startMenu('root', false, 'page.winW()/2 - 260 - (isIE&&!isOp  ? 8 : 0)', 88, 20, hBar);

It might just be worthwhile to upgrade to the newer version... I don't imagine it would be too hard... A lot of it could be copied over... But that is strange because I haven't had any problems with my menus aligning correctly...

14) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Yeah, the latest version is always a good idea, particular since the script is basically in "maintenance mode" these days!

xenon: The menu data in the page was a deliberate decision for accessibility / SEO / etc. You can of course use a PHP include() for the menu data, in fact I recommend it and do the same on my own site!

- Angus.

15) xenon2050 Group: Members
Posts: 6 Joined: 10 Jan 2008 Location: WI, USA but I wish Minnesota IP: 204.11.--.--
Okay thanks for the reply.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.