Reply
Too Many Ways to Skin a Cat! Confused Need Help!
Old 04-07-2008, 10:19 PM Too Many Ways to Skin a Cat! Confused Need Help!
Average Talker

Posts: 16
Sorry for the title but I'm drowning in options. I'm a beginner who is trying to learn html, css and javascript. I'm working on a sample page right now and want to create a simple navigation bar. I want the bar to be horizontal, span the whole width of the page and have that hover over effect in which it changes colors when I place my cursor over it. Some people tell me to use only html and css, some say do it in Javascript. I'm confused on which to use and then how to do it?
samo1215 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-08-2008, 04:33 AM Re: Too Many Ways to Skin a Cat! Confused Need Help!
chrishirst's Avatar
Super Moderator

Posts: 13,479
Location: Blackpool. UK
HTML & CSS is far more accessible

http://www.cssplay.co.uk/menus/final_drop.html
http://www.cssplay.co.uk/menus/index.html
http://www.seoconsultants.com/css/menus/horizontal/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-08-2008, 01:49 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
Average Talker

Posts: 16
I have heard that, but in doing research, it also seemed like javascript was better supported by more browsers, especially older ones.
samo1215 is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 03:15 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
willcode4beer's Avatar
Webmaster Talker

Posts: 695
Name: Paul Davis
Location: San Francisco
Here's another place to get started
http://css.maxdesign.com.au/listamatic/

http://css.maxdesign.com.au/listamatic/horizontal02.htm
http://css.maxdesign.com.au/listamatic/horizontal03.htm
http://css.maxdesign.com.au/listamatic/horizontal04.htm

I believe Chris' recommendation was also based upon your statement that you are a beginner. Learning two things is simpler than learning three.
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 04:16 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
Average Talker

Posts: 16
I completely agree and appreciate everyone's help. I'm learning web design so I can make a site for my business. I fear that many of my clients will be using older browsers so what will happen if their program can't display the css?
samo1215 is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 05:10 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
nyef's Avatar
Ultra Talker

Posts: 264
Name: Lucas
Some browsers can't display javascript, either (and some people just turn javascript off). Webpages also look differently on IE/Firefox/Opera/Safari/etc and on windows/linux/unix/mac/etc... do you test all those combinations at all resolutions? If you want to be THAT thorough it is possible and you could do what you want to do with a combination of both javascript and css to cover as many possibilities as possible... and there's still no guarantee that there wouldn't be a setup out there that it didn't work on.

You have to make choices. CSS is *widely* recognized and implemented. It's more likely to be available than javascript, in my opinion, so I would just do it with css.

Code:
#nav a {background-color:#cccccc;}
#nav a:hover {background-color:#333333;}
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Reply     « Reply to Too Many Ways to Skin a Cat! Confused Need Help!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13585 seconds with 12 queries