HTMLÔÚÏß±à¼Æ÷£¨HTML+js£©
http://download.csdn.net/source/2062506
²Î¿¼ÁËÔçÆÚ126Óʼþ±à¼Æ÷ÒÔ¼°ÍøÉÏһЩ×ÊÁÏ¡£Í¼Æ¬×ÊÔ´Ö÷ÒªÀ´×ÔÍøÂç¡£
´úÂ벿·ÖÖ»ÓÐÒ»¸öhtmlÎļþ¡£ÆäÓàΪͼ±ê¡£
´úÂëÈçÏ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META name=GENERATOR content="MSHTML 8.00.6001.18828">
</HEAD>
<STYLE type=text/css>
DIV A.n {PADDING: 2px; DISPLAY: block; COLOR: #000000; LINE-HEIGHT: 16px; HEIGHT: 16px; TEXT-DECORATION: none}
DIV A.n:hover {BACKGROUND: #e5e5e5}
.as1{margin:1px;border:2px solid #9EC9EC;background-color:#E5E8E8;font-size:12px;cursor:pointer;}
.as2{margin:1px;border:2px solid #E5E8E8;background-color:#E5E8E8;cursor:pointer;}
</STYLE>
<INPUT language=javascript onclick='setMode(this.checked);menu.style.display = (this.checked)?"none":""' type=checkbox id=switchMode>HTML
<DIV id=menu style="background:#E5E8E8;BORDER: #c5c5c5 1px solid;" >
<IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="Cut.gif" title=¼ôÇÐ onClick="format('Cut')" ><IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="Copy.gif" title=¸´ÖÆ onClick="format('Copy')" ><IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="Paste.gif" title=Õ³Ìù onClick="format('Paste')"><IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="Undo.gif" title=³·Ïû onClick="execCommand('undo')" ><IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="Redo.gif" title=ÖØ×ö onClick="execCommand('Redo')" ><IMG src="aline.gif"><IMG class="as2" onMouseOver="this.className='as1';" onMouseOut="this.className='as2'" src="TX.gif" title=Çå³ý¸ñʽ onClick=format("removeFormat") ><IMG class
Ïà¹ØÎĵµ£º
HTMLÖÐʵÏÖÓÒ¼ü²Ëµ¥¹¦ÄÜ
ÎÒÃÇʹÓõÄÓ¦ÓÃϵͳºÜ¶à¶¼ÓÐÓÒ¼ü²Ëµ¥¹¦ÄÜ¡£µ«ÊÇÔÚÍøÒ³ÉÏÃ棬µã»÷ÓÒ¼üÒ»°ãÏÔʾµÄÈ´ÊÇIEĬÈϵÄÓÒ¼ü²Ëµ¥£¬ÄÇôÎÒÃÇÈçºÎʵÏÖ×Ô¼ºµÄÓÒ¼ü²Ëµ¥ÄØ£¿ÏÂÃ潫½²½âÓÒ¼ü²Ëµ¥¹¦ÄܵÄʵÏÖÔÀíºÍʵÏÖ´úÂë¡£
ʵÏÖÔÀí
ÔÚHTMLÓïÑÔÖУ¬»ù±¾ÉÏÿ¸ö¶ÔÏó¶¼ÓÐÒ»¸öoncontextmenuʼþ£¬Õâ¸öʼþ¾ÍÊÇÊó±êµÄÓÒ¼üµ¥»÷ ......
ÔÚWeb¿ª·¢ÖУ¬³£³£ÒªÓõ½Á½¸ö´°¿ÚÖ®¼ä»¥Ïà´«Öµ¡£ÏÂÃæ̸̸¸¸×Ó´°¿ÚÖ®¼äµÄ´«Öµ£º
Ò»£ºÊ¹ÓÃOpen¿ªÆô×Ó´°¿Ú
1£ºµ¥Öµ´«µÝ
ͨ¹ýopen¿ªÆôµÄ×Ó´°¿Ú±È½ÏºÃ´¦Àí¡£
Ò³Ãæ´°¿Ú1.html´úÂ룺
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body>
<form name=" ......
Ö÷ÒªÊǽ«jsonÎÞ·¨Ê¶±ðµÄ×Ö·û½øÐÐתÒå
function dotran($str) {
$str = str_replace('"','\\"',$str);
$str = str_replace("\r\n",'\\r\\n',$str);
$str = str_ ......
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPÐÒéµÄÏìӦͷ±¨ÎÄ¡£meta ±êÇ©ÓÃÓÚÍøÒ³µÄ<he
ad>Óë</head>ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv
¡£nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷ÒýÇæ»úÆ÷
È˲éÕÒ¡¢·ÖÀࣨĿǰ¼¸ºõËùÓеÄËÑË÷ÒýÇ涼ʹÓÃÍøÉÏ»úÆ÷ÈË×Ô¶¯²éÕÒmetaÖµÀ ......