Пример #1
0
 /// <summary>
 /// Makes a control transparent.  Works with several browsers.
 /// </summary>
 /// <param name="control">The control.</param>
 /// <param name="opacity">The opacity amount.</param>
 private static void MakeTransparent(HtmlControl control, int opacity)
 {
     control.SetStyleAttribute("filter", "alpha(opacity=" + opacity + ")");
     control.SetStyleAttribute("-moz-opacity", "." + opacity);
     control.SetStyleAttribute("opacity", "." + opacity);
 }