Mac not showing dynamically added images

Discussion in 'Javascript' started by Andrew Poulos, May 15, 2009.

  1. I don't have access to a Mac but, as a substitute, I test on Windows Safari.

    A client has told me that a user of theirs who is on a Mac cannot see
    the images that are dynamically added to a "main menu" page. The client
    can't yet tell me what OS or browser the user has.

    The code is something like this:

    var myimg = document.createElement("img");
    myimg.src = "images/mm1.png"; = "visible";

    The "container" has this CSS

    ..mainmenu {

    and the images within the container have this CSS

    ..mainmenu img {

    Why would a Mac not show the images?

    Andrew Poulos
    Andrew Poulos, May 15, 2009
    1. Advertisements

  2. What is "container"?
    My Magic 8-Ball says: "Ask again later." However, why would you hide images
    *by default*? Hiding things by default through CSS is almost always a BAD idea.

    Thomas 'PointedEars' Lahn, May 15, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.