469,352 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Help with styling the font in Javascript

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
1 981
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.

Similar topics

8 posts views Thread by Johnny Knoxville | last post: by
7 posts views Thread by mike | last post: by
2 posts views Thread by Jackson Yap | last post: by
5 posts views Thread by Craig Keightley | last post: by
2 posts views Thread by Mel | last post: by
7 posts views Thread by gubbachchi | last post: by
2 posts views Thread by shapper | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.