本文整理匯總了C#中SharpKit.Html.HtmlElement.setAttribute方法的典型用法代碼示例。如果您正苦於以下問題:C# HtmlElement.setAttribute方法的具體用法?C# HtmlElement.setAttribute怎麽用?C# HtmlElement.setAttribute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpKit.Html.HtmlElement
的用法示例。
在下文中一共展示了HtmlElement.setAttribute方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Open
public void Open()
{
_id = Id + NextId;
_swfId = _id + "swf";
Lookup[_id] = this;
NextId++;
_swfContainer = document.createElement("div").As<HtmlElement>();
_swfContainer.className = Id;
_swfContainer.setAttribute("id", _id);
document.body.appendChild(_swfContainer);
var swf = JsCode("swfobject");
var embedSwf = swf.Member("embedSWF").As<Action<string, string, string, string, string, string, object, object, object>>();
embedSwf(
_asRoot + "AlphaSynth.FlashOutput.swf",
_id, "1px", "1px", "9.0.0",
_swfObjectRoot + "expressInstall.swf",
new { id = _id, sampleRate = PreferredSampleRate }, new { allowScriptAccess = "always" }, new { id = _swfId }
);
}