douboshan1466 2012-09-25 15:10
浏览 54

如果不加载,则替代WebGL

I have some WebGL stuff in an iframe. On some web browsers or old computers, the iframe isn't loading. When this happens I'd like to load an image instead. Is it possible and if yes how to do it ?

Thanks

  • 写回答

2条回答 默认 最新

  • dongnu4254 2012-09-25 15:13
    关注

    Wether or not WebGL is supported is probably best checked the same way you do in Javascript

    WebGLRenderingContext gl = canvas.getContext("experimental-webgl")
    
    if(!gl)
    {
        $("#image").show()
    }
    
    评论

报告相同问题?