tags:

views:

24

answers:

1

I'm using Silverlight.CreateObject to create a silverlight object dynamically. when silverilght is not installed it shows its own patent image from microsoft. I want to replace this image with mine...how can I do this??

+1  A: 

Determine if Silverlight is installed, and then do whatever you want based on the result...

(you can find the contents of isSilverLightInstalled() at the linked site above)

function isSilverLightIntstalled() {
  // see website
}

if (!isSilverLightInstalled()) {
  var myImage = new Image;
  myImage.src = “image URL goes here”;
  document.appendChlid(myImage);
}
altCognito
Thanks for replying buddy...m new to silverlight...can u plz tell me how to detect whether silverlight is installed or not using javascript...in short what to write inside isSilverLightInstalled() function ?? :-)
Click the link, and all will be revealed. It's MSDN, so I'm not self-promoting, in fact, I feel a little uneasy about simply lifting their content here.
altCognito