Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 30
Trades: 0
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
 
 
Register now for full access!
Old 04-08-2008, 05:33 AM Re: Too Many Ways to Skin a Cat! Confused Need Help!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-08-2008, 02:49 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
Experienced Talker

Posts: 30
Trades: 0
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, 04:15 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
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.
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 05:16 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
Experienced Talker

Posts: 30
Trades: 0
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, 06:10 PM Re: Too Many Ways to Skin a Cat! Confused Need Help!
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.68833 seconds with 12 queries