SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok here is the deal I am building a dhtml menu system and it works great in ie 4.0+ and nn6 but in nn4.7 the table background color inside the layers doesn't show up. It does in the other two have a look
    http://www.irq11.com/vhn/dhtml.htm

    Any Ideas?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey freddy,

    I guess we should be chasing each other around since cat and dog

    Anyway, NN 4 uses the bgColor property and not background-color. So in CSS styles, include that also, and with JavaScript, use bgColor isntead of backgroundColor.

    I think that's your problem.

    aDog

    P.S>-Nice looking menu...

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I'll give that a try! I really can't stand browser indifferences, my menu thankfully works in NN6 though
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry that didn't work any other thoughts?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey freddy,

    I got two ideas that should work. First, I tested and style="bgColor..." doesn't work in NS. However, style="background-color..." does. So, you really have two choices that I'm pretty sure wourld. First, when you define the stuff for div1, div2, etc...

    use:

    td.background-color:...

    not just background-color:...

    Ok?

    Now, that won't get the onmouseover thing to work in NS4, so here it goes:

    What you gotta do is this (example):

    original code
    Code:
    <td id="sub41" bgcolor="#eeeeee" onMouseOver="change_bg('sub41', '#ffffff')" onMouseOut="change_bg('sub41', '#eeeeee')"><a href="#" class="nav" onMouseOver="cleardelay(); " onMouseOut="navdelay(); "><img src="images/clear.gif" width="110" height="1" alt="" border="0"><br>
    Add User</a></td>
    New code for NS 4 compatibility:
    Code:
    <td id="sub41" bgcolor="#eeeeee" onMouseOver="change_bg('sub41', '#ffffff')" onMouseOut="change_bg('sub41', '#eeeeee')"><ilayer><layer bgcolor="#eeeeee" onmouseover="this.bgColor='#ffffff'" onmouseout="this.bgColor='#eeeeee'"><a href="#" class="nav" onMouseOver="cleardelay(); " onMouseOut="navdelay(); "><img src="images/clear.gif" width="110" height="1" alt="" border="0"><br>
    Add User</a></layer></ilayer></td>
    I knwo it's messy, but that's really the only way to change the background coor of a table cell in NS 4.


    Hope that works/helps

    aDog

  6. #6
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did this help you?

  7. #7
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the suggestion I tried it but it seemed to break the rest of my script, so we decided that those with NN4 will not get the changing bgcolor only those with IE4+ and NN6 will, thanks again!
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


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
  •