ÔÚHtmlÖÐʹÓÃÓïÒô´¦Àí¿Ø¼þ
1 ÓÃVC++½¨Á¢Ò»¸öMFC¿Ø¼þ
Ö÷Òª¿Ø¼þµÄIDΪAB8DDD1B-F57D-489C-B8C4-BE03B7506CD2
ÔÚÏÂÃæ¿ÉÒÔ¿´µ½£º
// Class information for CHYSpeechCtrlCtrl
[ uuid(AB8DDD1B-F57D-489C-B8C4-BE03B7506CD2),
helpstring("SpeechCtrl Control"), control ]
coclass HYSpeechCtrl
{
[default] dispinterface _DHYSpeechCtrl;
[default, source] dispinterface _DHYSpeechCtrlEvents;
};
2 ×¢²á¿Ø¼þ
regsvr32 xxx.ocx //ÌîдÉÏocxµÄÎļþ·¾¶
3 ÔÚHTMLÖвåÈëÈç϶ÔÏó
<object id="MfcAtl" width=590 height=144
classid="CLSID:AB8DDD1B-F57D-489C-B8C4-BE03B7506CD2">
<param name="_Version" value="65536">
<param name="_ExtentX" value="3351">
<param name="_ExtentY" value="1870">
<param name="_StockProps" value="0">
</object>
4 Ôö¼ÓJS´úÂë
// ÉèÖÃÉèÖñ³¾°ÑÕÉ«
function setBkColor()
{
alert("setBkColor");
var bKR=parseInt(document.getElementById("txtR").value);
var bkG=parseInt(document.getElementById("txtG").value);
var bkB=parseInt(document.getElementById("txtB").value);
document.all.MfcAtl.SetBkColor(bKR,bkG,bkB) ;
}
5 ´¥·¢µ÷ÓÃJS
<input name=btnBkColor onClick=setBkColor() type=Button value=ÉèÖÃͼÏñ±³¾°É« id="btnBkColor">
6×îºó½á¹ûÈçÏÂ:
ËäÈ»ºÜ¾Ã¾ÍÓÐд¿Ø¼þ£¬µ«ÊÇÕâ´ÎÊÇʹÓÃHtmlµ÷Ó㬳ɹ¦ÁË£¬¸Ð¾õÐË·ÜÖС£
´ó¼ÒÓÐʲôÏë·¨¿ÉÒԶཻÁ÷\(^o^)/~
Ïà¹ØÎĵµ£º
±ê Ç© ÄÚ ÈÝ ±¸ ×¢
»ù ±¾ ±ê Ç© ËùÓÐHTMLÎļþ¶¼ÓеÄ
<html>……</html> ±íʾÎļþÀàÐÍΪHTMLÎĵµ
<head>……</head> ÉèÖÃÎĵµÃèÊö¼°ÆäËû²»ÔÚWEBÍøÒ³ÉÏÏÔʾµÄÐÅÏ¢ÍøÒ³µÄ±êÌ⣬Ñùʽ¶¨Ò壬Script
<body>……< ......
ÕâÁ½¸ö²Ù×÷ĬÈÏÊDZ»ÆÁ±ÎÁ˵ģ¬ÐèÒªÊÖ¶¯À¹½Ø°´¼üÏûϢȻºó´¦Àí¡£
Èç¹ûǶÈëHTMLµÄ´°¿ÚÄò»µ½WM_KEYDOWNÕâÑùµÄÏûÏ¢£¬¾ÍÖ»ºÃÖ±½ÓÔÚÏûϢѻ·ÀïÀ¹½ØÁË£º
{
while (0 != (r = GetMessage(&msg, NULL, 0, 0))) {
if (r == -1) {
break;
}
if (CheckIfDealCopyPaste(msg)) {
......
Silverlight 4й¦ÄÜ: Host HTML Content.
Õâ¸öй¦ÄÜͦ²»´íµÄ£¬¿ÉϧµÄÊÇËüÖ»ÄÜÊÇÄã°ÑSilverLightÓ¦ÓóÌÐò°²×°µ½¿Í»§¶Ë²ÅÄÜʹÓ㬲»Ã÷°×ΪʲôSilverLight ToolkitÍŶӲ»ÈÃËüÄܹ»ÔÚä¯ÀÀÆ÷ÖÐÒ²¿ÉÒÔÓá£
¿´Á˶ÎÊÓÆµ£¬ËüÖ÷ÒªÊǽ²ÁËÈý¸öÓ¦Óã¬ÆäËü»¹ÓкܶàʹÓÃÕâ¸ö¹¦Äܵķ½·¨Äã¿ÉÒÔÊÔ×ÅÔÚÏÂÃæ¸øÎÒÁôÑÔ£¬´ó¼ÒÒ»Æðѧϰ¡£
  ......
ÔÚÍøÉÏÕÒÁËºÜ¶à¹ØÓÚÕâ·½ÃæµÄ×ÊÁÏ£¬°üÀ¨ºÜ¶à¿ªÔ´¹¤¾ß¡£
µ«ÊÇ×îºó·¢ÏÖAndroidÀà android.text.Html ÀïÓÐÕâÑùÒ»¸ö·½·¨£º
//Returns displayable styled text from the provided HTML string.
static Spanned fromHtml(String source)
¾ÍÊǵ±´«Èëhtml¸ñʽµÄsourceºó£¬·µ»ØSpannedÀàÐ͵ĶÔÏó£¬È»ºóÖÐÔÙtoString()¾ÍµÃµ½Txtµ ......
¶¨ÒåºÍÓ÷¨
¶¨ÒåÒ»¸öǶÈëµÄ¶ÔÏó¡£ÇëʹÓôËÔªËØÏòÄúµÄ XHTML Ò³ÃæÌí¼Ó¶àýÌå¡£´ËÔªËØÔÊÐíÄú¹æ¶¨²åÈë HTML ÎĵµÖеĶÔÏóµÄÊý¾ÝºÍ²ÎÊý£¬ÒÔ¼°¿ÉÓÃÀ´ÏÔʾºÍ²Ù×÷Êý¾ÝµÄ´úÂë¡£
<object> ±êÇ©ÓÃÓÚ°üº¬¶ÔÏ󣬱ÈÈçͼÏñ¡¢ÒôƵ¡¢ÊÓÆµ¡¢Java applets¡¢ActiveX¡¢PDF ÒÔ¼° Flash¡£
object µÄ³õÖÔÊÇÈ¡´ú img ºÍ applet ÔªËØ¡£²»¹ýÓ ......