SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Before These Crowded Streets
    0 Post(s)
    0 Thread(s)

    DHTML menus don't work right

    hey guys....

    Looking for some help here. This is the site:

    username: sitepoint password: forums

    I have a 2 javascript files: defines the menu and submenu functions, etc. defines the contents of the menus.

    Can someone help me figure out 3 things:
    [list=1][*]How to eliminate the spaces in between each nav item. Only need 2 spaces so I can have 11.5px text.[*]What is the DOM definition for a hoverlink?[*]Why doesn't the submenus appear when I mouseover the nav items?[/list=1]
    I lifted this off another site and unfortunately, the site owner is not able to help me as he too lifted it off some script page...who knows where. Can anyone give me a hand with this?

    Thanks in advance.

    Aaron Brazell

  2. #2
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    London, UK
    0 Post(s)
    0 Thread(s)
    Sorry But I cant get into the site.....

    But here is a HINT: CHeck that you have not conflict in Nameing or the values of ID.

    like <Div ID="somename"> ..d,fs.df,d.f, </div>

    are not same for all or same for all.

    depends on your script.

    if you email me the files I can email you back with the correction and tell you where things went wrong and how you can fix it.... or send the fixed version back to you.

    if you decided to email then sed them to :

    Hope that helps
    Azizur Rahman
    Web Application Developer

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    where the World once stood
    0 Post(s)
    0 Thread(s)
    Hi sketch,

    After signing in -- something I almost never do for forum questions -- I found a page with a banner, some tabs/menu items and that's it -- no submenus, no text within the body.

    After peeking at the view-source code, I came up with a few questions:

    1) did you write any of this?
    2) What is this?
    <div id="body"> </div>
    3) Why are you including *.js files and javascript functions within the div, rather than between the <head> tags?

    <!--- Main Navigation --->
    <div class="nav" style="position:absolute; width:427px; height:30px; left: 340px; top: 82px">
    <script language="JavaScript" src="menu.js"></script>
    <script language="JavaScript" src="menucontext.js"></script>

    4) why are you including function declarations in the same area?

    <script language="JavaScript">
    function UpdateIt(){
    if (document.all){
    document.all["MainTable"] = document.body.scrollTop;
    setTimeout("UpdateIt()", 200);

    Perhaps it be easier for you to get a new menu system from one of the following:

    Where the World Once Stood
    the blades of grass
    cut me still


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts