By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,215 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,215 IT Pros & Developers. It's quick & easy.

Help with styling the font in Javascript

P: n/a
Howdy!

I've got a javascript menu that was handed to me. I believe it was hand
coded- but not sure.

I need to find a way to specify the font color and size of the menus.

Currently, the menu is embeded into an html page that links a CSS file.
The BODY tag in the CSS file will tell the javascript menu what to do,
but the problem is, i need the javascript menu to have different font
than the rest of the HTML page.

How do I specify a new tag in the CSS file, OR how can i hard code the
style in the Javascript menu?

Link to the page containing the menu. If you'd rather I post the whole
Javascript I can do that too...

http://www.rockwood.k12.mo.us/default_copy.htm

Much Thanks!

Jun 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
xx********@juno.com said the following on 6/5/2006 2:33 PM:
Howdy!

I've got a javascript menu that was handed to me. I believe it was hand
coded- but not sure.
I doubt it. But whether it is or not it is very badly coded with a lot
of bad habits in it.
I need to find a way to specify the font color and size of the menus.


Use CSS to do that.

And, save yourself a lot of trouble and find a better menu.

<URL:
http://www.evolt.org/article/How_to_make_a_simple_CSS_dropdown_menu/17/52030/>
Would be a start.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.