Archive for 八月, 2007

Ajaxrain


ajaxrain.jpg

ajaxrain.com是一个收集了超过640个Ajax和JavaScript效果的网站,每天都在增加中,对喜欢Ajax但又懒惰的人最适用了!

Flickr有繁体界面


flickr.jpg

好久没上Flickr,其实我都没用过Flickr,虽然申请过一个,但因为速度问题,所以我一直都是用国内的Yupoo。
刚才打开了一下Flickr,才发现有繁体界面了,不知道几时出简体中文的呢

Aptana IDE

Aptana是一个免费,开源JavaScript-focused的AJAX开发IDE。它的特点包括:
*JavaScript,JavaScript函数,HTML,CSS语言的Code Assist功能;
*Outliner(大纲):显示JavaScript,HTML和CSS的代码结构;
*支持JavaScript,HTML,CSS,PHP代码提示,包括JavaScript 自定函数;
*代码语法错误提示;
*支持Aptana UI自定义和扩展;
*支持跨平台;
*支持FTP/SFTP;
*调试JavaScript;
*支持流行AJAX框架的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI,Ext;
*Adobe AIR与iPhone开发工具。

PS:最新版本装上后就会自动设为中文界面的,不过选项设置里面一些还没完全汉化

http://aptana.com/

ThinkPHP中以PHP方式创建FCKeditor

用JS在ThinkPHP中的模板文件来创建FCK是很简单的事,但用fckeditor.php来创建貌似挺麻烦的说,在Common\common.php中定义一个函数

function createFCK($value, $name='description', $toolbar='MyToolbar', $height=300){
	$oFCKeditor = new FCKeditor($name);
	$oFCKeditor->BasePath = 'fck目录'; //我试过将FCK目录放在网站公共目录和项目公共模版目录,是成功引入了文件,但就是会报错
	$oFCKeditor->ToolbarSet = $toolbar;
	$oFCKeditor->Height = $height;
	$oFCKeditor->Value = $value;
	return $oFCKeditor->CreateHtml();
}

但在模板中{$value|createFCK}用这样来创建并不能成功,会出现HTML页面套着HTML页面的情况,或是模板文件报错,我也查不出来为什么会这样,经过多次尝试,我找到另一个办法。

直接在一个Action类中定义一个方法,然后直接继承这个Action类就OK了

function createFCK($value, $name='description', $toolbar='MyToolbar', $height=300){
	require_cache(WEB_ROOT.'/Public/fck/fckeditor_php5.php');
	$oFCKeditor = new FCKeditor($name);
	$oFCKeditor->BasePath = WEB_PUBLIC_URL.'/Js/fck/';
	$oFCKeditor->ToolbarSet = $toolbar;
	$oFCKeditor->Height = $height;
	$oFCKeditor->Value = $value;
	$this->assign('fckhtml', $oFCKeditor->CreateHtml());
}

终于装上Flash CS3 简体中文版

flash_cs_zh1.jpg
外观比以前好看,但也更占资源呀,特别是那个拖动透明的效果 8)

Powered by WordPress | Shop Free Cellular Phones at Bestincellphones.com. | Thanks to Best CD Rates, iCellPhoneDeals.com Offers Best Cell Phone Deals. and Incinerador De Grasa