All pastes #919809 Raw Edit

Untitled

public text v1 · immutable
#919809 ·published 2008-02-27 00:22 UTC
rendered paste body
<script type="application/javascript">
function load () {
  var Browser="Unsupported";

  function isInstalled(d) {
    var c = false,
    a = null;
    try {
        var b = null;
        if (Browser == "MSIE") b = new ActiveXObject("AgControl.AgControl");
        else if (navigator.plugins["Silverlight Plug-In"]) {
            a = document.createElement("div");
            document.body.appendChild(a);
            if (Browser == "Safari") a.innerHTML = '<embed type="application/x-silverlight" />';
            else a.innerHTML = '<object type="application/x-silverlight"  data="data:," />';
            b = a.childNodes[0]
        }
        document.body.innerHTML;
        if (b.IsVersionSupported(d)) c = true;
        b = null;
        //Silverlight.available = true
    } catch(e) {
        c = false
    }
    if (a) document.body.removeChild(a);
    return c
  };

  alert (isInstalled ("1.0"));
}
</script>

<body onLoad="load()">
</body>