SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My brain is absent without leave today , so I need a quick-fix script, if you don't mind. I'm trying to have the bgcolor of table rows change dynamically according to the color depth of the users' monitors.

    I know how to get the color depth in both IE and NS, but I need to know is how to identify a tag by its class name. Any ideas?

    This would be greatly appreciated.

    Thanx. Scot-Bot.

  2. #2
    SitePoint Addict
    Join Date
    Mar 2001
    Location
    the windy city
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scot-Bot, if you don't mind, how do I get the color depth in both IE and NS?
    thanks

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To get colour depth is straight forward ...

    if (screen)
    {
    if (screen.colorDepth) alert(screen.colorDepth) ;
    else alert (screen.pixelDepth)
    }

    ... is that ok, Val?

    Now, does any1 know the answer to my question?


    Thanks. Scot-Bot. :idea


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
  •