SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Menu Problems IE

    Hello,

    I'm building a website, and the drop-down menu system will not work in Internet Explorer.

    I have a rough version online for testing purposes, here is a link to it: Ryoku Seikido - Home

    Any ideas?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    The IE error occurs when attempting to set the top style.

    Code:
    c.style.position   = "absolute";
    c.style.top        = 'px';
    c.style.left       = 'px';
    c.style.visibility = "visible";
    because 'px' is an invalid argument. It should be a number followed by px, for example:

    Code:
    c.style.top        = top + 'px';
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

Bookmarks

Posting Permissions

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