Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 7th, 2004, 12:47 PM
itzstatic2k1 itzstatic2k1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 113 itzstatic2k1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 40 m 9 sec
Reputation Power: 5
Send a message via AIM to itzstatic2k1
Drop Down Menu's Won't Work!

Alright, I've been working on what should be some simple dropdown menus. I used three seperate files to do so.

dropdown.shtml
stylesheet.css
drop_down.js

Now my first level of the dropdown works I can highlight over "Home" and down drops

About
F.A.Q.
Help
Contact
Logout

There problems lies within my "Athletics" part of the dropdown... from there I want to be able to put the cursor over "Fall" and have the Fall Sports dropdown... same with Winter ect ect. I tried this but soon as I highlight over athletics it automatically shows whats under fall. Any ideas? Below is my code for the .shtml page and then the .js page

Reply With Quote
  #2  
Old October 7th, 2004, 12:48 PM
itzstatic2k1 itzstatic2k1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 113 itzstatic2k1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 40 m 9 sec
Reputation Power: 5
Send a message via AIM to itzstatic2k1
.shtml page code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Horizontal Drop Down Menus</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="drop_down.js"></script>
<style type="text/css">
@import "stylesheet.css";
</style>
</head>
<body>
<ul id="nav">
<li><a href="#"><strong>Home</strong></a>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">F.A.Q.</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Logout</a></li>
</ul>

<li><a href="#"><strong>Athletics</strong></a>
<ul>
<li><a href="#">Fall</a>
<li><a href="#">Winter</a></li>
<li><a href="#">Spring</a></li>
<li><a href="#">Club</a></li>
</ul>

<li><a href="#"><strong>Teachers</strong></a>
<ul>
<li><a href="#">Administrative</a></li>
<li><a href="#">Math</a></li>
<li><a href="#">English</a></li>
<li><a href="#">Science</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Others</a></li>
</ul>

<li><a href="#"><strong>Clubs</strong></a>
<ul>
<li><a href="#">Administrative</a></li>
<li><a href="#">Academic Decathalon</a></li>
<li><a href="#">Drama</a></li>
<li><a href="#">Hugs</a></li>
<li><a href="#">Key Club</a></li>
<li><a href="#">Latin Club</a></li>
<li><a href="#">Newspaper</a></li>
<li><a href="#">NHS</a></li>
<li><a href="#">Philosophy</a></li>
<li><a href="#">Student Council</a></li>
<li><a href="#">West G TV</a></li>
<li><a href="#">Yearbook</a></li>
<li><a href="#">Currio</a></li>
</ul>


</body>
</html>

Reply With Quote
  #3  
Old October 7th, 2004, 12:49 PM
itzstatic2k1 itzstatic2k1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 113 itzstatic2k1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 40 m 9 sec
Reputation Power: 5
Send a message via AIM to itzstatic2k1
.js page code

// JavaScript Document

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;

Reply With Quote
  #4  
Old October 13th, 2004, 09:39 AM
itzstatic2k1 itzstatic2k1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 113 itzstatic2k1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 40 m 9 sec
Reputation Power: 5
Send a message via AIM to itzstatic2k1
Up!

Reply With Quote
  #5  
Old October 13th, 2004, 01:45 PM
metasilk metasilk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 19 metasilk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by itzstatic2k1
Alright, I've been working on what should be some simple dropdown menus. I used three seperate files to do so.

dropdown.shtml
stylesheet.css
drop_down.js


These sources might help you:

http://www.htmldog.com/articles/suckerfish/dropdowns/

http://www.wpdfd.com/editorial/wpd1004news.htm#feature

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Drop Down Menu's Won't Work!


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway