$query(“textarea.rich”)
.addHandler(“focus”, function(e) {
Sys.Debug.trace(“focused into “ + (e.eventTarget.id || “?”));
})
.setStyle(“width”, function() {
return (document.body.clientWidth – 10) + “px”;
})
.create(Contoso.UI.RichTextBehavior, {
showToolbar: true,
fonts: [“Arial”, “Times”, “Courier”]
});
这代码写的跟jquery似的……
--
FROM 219.224.98.129