Determining if images are on or off - Is a font present

Discussion in 'JavaScript' started by deathshadow, Sep 19, 2007.

  1. #1
    Two questions/opinions needed.

    In one of my scripts I'm finding I need to determine if the user has images turned off. I'm thinking I could create a position:absolute (to remove it from flow) image without specifying it's height, then during my onload method check the height of that image... If it's less than it should be, images are off.

    The second question is determining if a font is present/being used... I've got no clue how to go about that one since style.fontFamily is returning the full list, not the one being used.

    Anyone out there know a better way to test for these?
     
    deathshadow, Sep 19, 2007 IP