¹ØÓÚÔÚhtmlÒ³ÃæÖд´½¨fckeditor
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Îı¾±à¼Æ÷</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<link href="/sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="fckeditor/fckeditor.js" ></script>
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
// var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('fckeditor.html')) ;
//
// alert(sBasePath);
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Ïà¹ØÎĵµ£º
Ò»¡¢»ù´¡Àí½â:
var e = document.getElementById("selectId");
e. options= new Option("Îı¾","Öµ") ;
//´´½¨Ò»¸öoption¶ÔÏó,¼´ÔÚ<select>±êÇ©Öд´½¨Ò»¸ö»ò¶à¸ö<option value="Öµ">Îı¾</option>
//optionsÊǸöÊý×é,ÀïÃæ¿ÉÒÔ´æ·Å¶à¸ö<option value="Öµ">Îı¾</option>ÕâÑùµÄ±êÇ©
1:opt ......
À´Ô´£ºÍøÂç
headerÎļþ¸ñʽÀࣺ
'gif' => 'image/gif',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpe' => 'image/jpeg',
'bmp' => 'image/bmp',
'png' => 'image/png',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'pict' => 'image/x-pict',
'pic' => 'i ......
Èç¹ûAJAX¼ÓÔØµÄÊý¾ÝÊÇÒ»¸öHTMLƬ¶Î£¬¶øÇÒÕâ¸öHTMLƬ¶Î»¹°üº¬½Å±¾<script>¿é£¬ÄÇôÔÚÄã°ÑÕâÊý¾ÝxmlHttp.responseTextÓÃinnerHTML·½·¨²åÈëµ½µ±Ç°ÎĵµÒ»¸öÔªËØÖУ¬Äã»á·¢ÏÖAJAX¼ÓÔØ»ØÀ´µÄ½Å±¾¸ù±¾Ã»ÓÐÖ´ÐС£ÕâÊÇAJAX¿ª·¢Öкܳ£¼ûµÄÎÊÌ⣬Èç¹ûÄã²»ÊÇÒ»Ö±ÔÚÓÃJavaScript¿ò¼Ü×ö¿ª·¢£¬ÏàÐÅÄãÔç¾Í·¢ÏÖÕâ¸öÎÊÌâÁË¡£±¾ÎÄ·ÖÎöÁËÁ ......
Ò» HTMLµÄ¶¨Òå
HTML£¨HyperText Mark-up Language£©¼´³¬Îı¾±ê¼ÇÓïÑÔ»ò³¬Îı¾Á´½Ó±êʾÓïÑÔ£¬ÊÇÄ¿Ç°ÍøÂçÉÏÓ¦ÓÃ×îΪ¹ã·ºµÄÓïÑÔ£¬Ò²Êǹ¹³ÉÍøÒ³ÎĵµµÄÖ÷ÒªÓïÑÔ¡£HTMLÎı¾ÊÇÓÉHTMLÃüÁî×é³ÉµÄÃèÊöÐÔÎı¾£¬HTMLÃüÁî¿ÉÒÔ˵Ã÷ÎÄ×Ö¡¢Í¼ÐΡ¢¶¯»¡¢ÉùÒô¡¢±í¸ñ¡¢Á´½ÓµÈ¡£HTMLµÄ½á¹¹°üÀ¨Í·²¿£¨Head£©¡¢Ö÷Ì壨Body£©Á½´ó ......