Results 1 to 4 of 4

Thread: DD Tab Menu--problem in IE

  1. #1
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Tab Menu--problem in IE

    Script: DD Tab Menu
    http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

    My page is working correctly in Firefox and Netscape, but not IE. I have put the words "lorem ipsum" in a div called "cecil" as the main body of the page where the text will go, but I am not able to see that phrase when I view the page in IE. When I remove the DD tab menu javascript and html, I see the phrase fine, which is why I suspect it's something to do with my DD tab menu!

    http://www.cofc.edu/~reu

    Any help is appreciated!

  2. #2
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default more information

    Okay, I'm deconstructing my code. On the page:
    http://www.cofc.edu/~reu/test2.html

    I get this error:

    Line 73, Char: 1
    error: object required
    code: 0

    and here is the javascript on line 73:
    document.getElementById(cid).style.display="block"

    here is the block of javascript surrounding line 73:

    function expandcontent(cid, aobject){
    if (disabletablinks==1)
    aobject.onclick=new Function("return false")
    if (document.getElementById){
    highlighttab(aobject)
    if (turntosingle==0){
    if (previoustab!="")
    document.getElementById(previoustab).style.display="none"
    document.getElementById(cid).style.display="block"
    previoustab=cid
    }
    }
    }

    any idea on what's wrong with line 73?

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Nothing's wrong with line 73.
    Code:
    function expandcontent(cid, aobject){ }
    Somewhere, you're calling expandcontent() with a first parameter that doesn't exist.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, I've got the error figured out.

    Another question, same script:

    I have the text change color on the tabs when the mouse is over the tab. How can I get the initial tab to also have the different text color when the page loads (because that tab is highlighted) in IE? (It works in firefox).

    http://www.cofc.edu/~reu
    Last edited by quartney; 07-06-2005 at 09:30 PM. Reason: browser clarification

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
  •