FCK調(diào)用方法..
更新時間:2006年12月21日 00:00:00 作者:
<script type="text/javascript" src="editor/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.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'zhangthree' ) ;
oFCKeditor.BasePath = '/editor/' ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '隨便寫點(diǎn)內(nèi)容!' ;
oFCKeditor.Create() ;
//-->
</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.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'zhangthree' ) ;
oFCKeditor.BasePath = '/editor/' ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '隨便寫點(diǎn)內(nèi)容!' ;
oFCKeditor.Create() ;
//-->
</script>
相關(guān)文章
關(guān)于不同頁面之間實現(xiàn)參數(shù)傳遞的幾種方式討論
下面小編就為大家?guī)硪黄P(guān)于不同頁面之間實現(xiàn)參數(shù)傳遞的幾種方式討論。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02
JavaScript fontcolor方法入門實例(按照指定的顏色來顯示字符串)
這篇文章主要介紹了JavaScript fontcolor方法入門實例,fontcolor方法用于按照指定的顏色來顯示字符串,需要的朋友可以參考下2014-10-10
javascript中call apply 與 bind方法詳解
網(wǎng)上文章雖多,大多復(fù)制粘貼,且晦澀難懂,我希望能夠通過這篇文章,能夠清晰的提升對apply、call、bind的認(rèn)識,并通過一些具體的示例給大家展示下這3個方法的用法,希望大家能夠喜歡。2016-03-03
javascript prototype原型詳解(比較基礎(chǔ))
prototype原型是javascript中特別重要的概念,屬于必須要掌握,如果沒有良好的掌握的話,進(jìn)一步用好或者學(xué)好js基本是不可能的實現(xiàn)的事情,并且此概念稍有難度,可能對于初次接觸的朋友來說有點(diǎn)困難,下面就通過代碼實例簡單介紹一下prototype原型的用法2016-12-12
window.onload和$(function(){})的區(qū)別介紹
window.onload和$(function(){})有什么區(qū)別。window.onload表示頁面加載完了后(包括dom和js),再執(zhí)行函數(shù)里面的內(nèi)容,感興趣的朋友可以了解下2013-10-10

