Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-07-2009, 05:10 AM   #1
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
Adding drop down in Navigation bar

Hello all, I been tasked with redoing a website, the preliminary site is complete. However I would like to create a mouse over drop down box in the navigation bar. I've tried a couple different Java scripts, and html code, however I cannot get it to work. If anyone has any tips or ideas, all will be accepted. Here's the website in Question;

http://www.alpenadiver.com/DiveAlpena
__________________
Registered linux user # 217167 - Be counted http://counter.li.org/
Currently running:
Desktop - XP Pro, Fedora
HP dv9700z CTO laptop, running Windows 7 Pro
mikeL is offline   Reply With Quote
Old 12-07-2009, 11:23 AM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
http://www.google.com/search?hl=en&s...q=f&oq=&aqi=g1

Lots of examples
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 12-08-2009, 04:31 AM   #3
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
Thanks force, That is where my problems begin, I've tried three or four of the examples, copy and pasted code and it doesn't work out, my problem is that this my first exposure to CSS, and don't know if I need to edit any of the CSS files or not. I have a total of CSS files, the index.html only calls two of them, default.css, and thickbox.css
mikeL is offline   Reply With Quote
Old 12-08-2009, 04:51 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Personally, I would take all the layout and formatting stuff out of the default.css file. The default file is just that--for setting defaults. Make another file named layout.css

Second, the reason you're not seeing any dropdowns appear is because there is no code for it in your HTML. All you have is just your first-level navigation items Dive Charters, Diving the Sanctuary, etc)
Force Flow is offline   Reply With Quote
Old 12-08-2009, 05:05 PM   #5
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
I picked up O'Reilly's CSS- the missing manual, looks like I need to learn the nuts, and bolts of CSS.

As for the web-page itself, when I do add the Unordered List tag then a link it only shows up under one of the original links (Diving the Sanctuary, Wreck Sites, etc.) getting it to create a drop down list is my problem.
mikeL is offline   Reply With Quote
Old 12-08-2009, 07:27 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Usually, the HTML goes something like this...you nest a list within a list. Everything else is controlled with CSS.

PHP Code:
<ul>
<
li><a href="">title</a>
<
ul>
<
li><a href="">item1</a></li>
<
li><a href="">item2</a></li>
<
li><a href="">item3</a></li>
</
ul>
</
li>
<
li><a href="">another title</a>
<
ul>
<
li><a href="">item1</a></li>
<
li><a href="">item2</a></li>
<
li><a href="">item3</a></li>
</
ul></li>
<
li><a href="">title with no dropdown</a></li>
</
ul
Force Flow is offline   Reply With Quote
Old 12-08-2009, 08:10 PM   #7
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
Thanks again force, I'll play around with it and see how it goes.
mikeL is offline   Reply With Quote
Old 12-11-2009, 09:06 PM   #8
Member (1 bit)
 
Join Date: Dec 2009
Posts: 1
Hi...

I found a source which is similar to your question,
have a look at here.
Hope this helps.

Last edited by glc; 12-11-2009 at 10:29 PM. Reason: Ad link removed
joshuab is offline   Reply With Quote
Old 12-13-2009, 06:21 AM   #9
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
joshuab, the mouseover you linked is the one I've been working on. however when I copy and paste the code that is where I run into problems, the links from the mouse over code show up next to my horizontal nav bar, in the vertical position.
mikeL is offline   Reply With Quote
Old 12-13-2009, 12:15 PM   #10
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Don't use javascript for this. It's not necessary. It can be done more simply with just CSS.
Force Flow is offline   Reply With Quote
Old 12-15-2009, 05:03 PM   #11
Member (11 bit)
 
mikeL's Avatar
 
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
Well I'm back, not having any luck with the drop down list, as you can see in the link. I used the code you gave me Force, however I think something else is controlling the layout.

http://picasaweb.google.com/lh/photo...eat=directlink
mikeL is offline   Reply With Quote
Old 12-15-2009, 07:00 PM   #12
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
HTML provides the structure...CSS provides the layout. You'll need to work with the CSS some more.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:44 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2