Javascript menu not displaying correclty

This is a discussion on "Javascript menu not displaying correclty" within the Web Page Design section. This forum, and the thread "Javascript menu not displaying correclty are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 21st, 2006, 12:19
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript menu not displaying correclty

I have downloaded a javascript drop-down menu but the divs that display the drop-down links aren't in the correct position

I downloaded the script from here http://www.dynamicdrive.com/dynamici...anylinkcss.htm

I have a div which acts as the menu bar, and the headers are displayed but the divs with the links are at the bottom of the page

here is the css for the nav bar

Code: Select all
 
#nav {
 width: 775px;  
 height: 27px; 
 border: 1px solid #000000; 
 position: absolute; 
 background-color: #FFD21F; 
 top: 240px; 
 left: 0px;
 z-index:3;
}
and here is the css that came with the script

Code: Select all
 
.anylinkcss{
position:absolute;
visibility: hidden;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #E9FECB;
width: 205px;
}
.anylinkcss a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover{ /*hover background color*/
background-color: black;
color: white;
}
}
I've included the whole css files and index.php
Attached Files
File Type: txt projects.txt (5.6 KB, 32 views)
File Type: txt index.txt (3.0 KB, 34 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 21st, 2006, 16:27
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

Apologies if I'm wrong but haven't we been through all this menu stuff with you before.

Have a look in the sticky thread, download and work through the menu tutorial. You then won't need to download scripts that you have no idea what they are doing. You will be able to create your own from scratch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 21st, 2006, 16:53
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Javascript menu not displaying correclty

Or just use the suckerfish drop downs.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 25th, 2006, 11:27
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

can't you make a drop down menu in CSS?

besides i heard that 10% of people who use the web turn off Java Script or don't have it, that will mean that 10% of people won't be able to use your navigation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 25th, 2006, 11:32
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

i don't know if these will help but
have a look at these

http://www.seoconsultants.com/css/menus/horizontal/

http://meyerweb.com/eric/css/edge/menus/demo.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 25th, 2006, 15:17
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Javascript menu not displaying correclty

It can be done with all CSS yes. However usually some js is required to make it work in IE. Other browsers wont need the javascript.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 25th, 2006, 18:46
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

Powderhound:
If you want to get a good understanding of css driven menus, both vertical and horizontal, have a work through the tutorial whose link is in the sticky thread at the top of this furum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 25th, 2006, 21:45
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

Quote:
Originally Posted by moojoo View Post
It can be done with all CSS yes. However usually some js is required to make it work in IE. Other browsers wont need the javascript.
dam, i hate IE it always has some sort of problem. When IE 7 comes out will these problems be fixed?

Quote:
Originally Posted by ukgeoff View Post
Powderhound:
If you want to get a good understanding of css driven menus, both vertical and horizontal, have a work through the tutorial whose link is in the sticky thread at the top of this furum.
thanks i'll have a look so i know what to do, but i don't plan on using them in my site just yet
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 25th, 2006, 22:00
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

According to the Microsoft releases the missing bit of css that required JavaScript to make dropdown menus work has been fixed in IE7.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 26th, 2006, 06:18
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

Awsome , IE always gives you some kind of problem when you build your website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 26th, 2006, 06:29
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu not displaying correclty

I'm gonna check out the sticky. At least I'll know it's not something I did if i doesn't work how it should....probably IE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 26th, 2006, 13:53
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Javascript menu not displaying correclty

The main thing is to have the top level menu items function so if the menu is disabled they can at least access the page and its sub links. Of course with css disabled it should show like a neat list. Which is one of th eimportant benefits of doing it with CSS and valid markup. i.e. ul's. li's and nested ul's and li's.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
javascript, menu, displaying, correclty

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] why isnt my javascript displaying the text skat JavaScript Forum 3 Jan 26th, 2008 20:43
Problem displaying a horizontal menu cmssken1 Web Page Design 1 Apr 19th, 2007 16:34
Please Help with hiding and displaying layers using CSS and Javascript rosh1e JavaScript Forum 2 Apr 15th, 2007 03:04
Flash menu is displaying over HTML vinoy Web Page Design 2 Nov 22nd, 2006 21:14
CSS menu displaying wrong in Firefox (fine in IE) camcc Web Page Design 10 Oct 21st, 2006 02:05


All times are GMT. The time now is 21:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42