<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/Tiana" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/Tiana" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 13 Apr 2012 05:03:51 GMT</lastBuildDate><title>Tiana's Blog</title><description>Ajax | ActionScript | PHP &amp; MySQL</description><image><url>http://www.feedsky.com/feed/Tiana/sc/gif</url><title>Tiana's Blog</title><link>http://tiana.ejstyle.cn</link></image><link>http://tiana.ejstyle.cn</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Fri, 13 Apr 2012 05:04:48 GMT</pubDate><item><title>dota蛋疼集锦71</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149332/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;embed src=&quot;http://player.youku.com/player.php/sid/XMzc2NDYzMjA4/v.swf&quot; quality=&quot;high&quot; width=&quot;600&quot; height=&quot;500&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/p&gt;
&lt;p&gt;蛋疼集锦71期，太疼了 &lt;img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /&gt; &lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149332/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149332/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>蛋疼集锦71期，太疼...&lt;img src=&quot;http://www1.feedsky.com/t1/627149332/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149332/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>视频</category><category>dota</category><category>我的日志</category><pubDate>Fri, 13 Apr 2012 13:03:51 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=578</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149332/4416665</fs:itemid></item><item><title>MySQL存储过程乱码解决方法</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149333/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;我本地的开发环境是windows，服务器为linux，上传到服务器后出现乱码的问题，把存储过程中的变量指定编码后问题解决 &lt;img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /&gt;  。&lt;/p&gt;
&lt;pre class=&quot;brush: sql; light: false; title: ; toolbar: true; notranslate&quot;&gt;
DECLARE name VARCHAR(100) CHARACTER SET utf8;
&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149333/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149333/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>我本地的开发环境是windows，服务器为linux，上传到服务器后出现乱码的问题，把存储过程中的变量指定编码后问题解决 ...&lt;img src=&quot;http://www1.feedsky.com/t1/627149333/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149333/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>程序开发</category><pubDate>Fri, 25 Mar 2011 17:09:42 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=428</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149333/4416665</fs:itemid></item><item><title>JavaScript模仿PHP的日期格式化函数</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149334/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://joncom.be/code/jquery-phpdate/&quot;&gt;http://joncom.be/code/jquery-phpdate/&lt;/a&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: jscript; light: false; title: ; toolbar: true; notranslate&quot;&gt;
$.PHPDate(&amp;quot;l, jS F Y H:i:s T&amp;quot;, new Date());
&lt;/pre&gt;
&lt;p&gt;用法基本和PHP的date是一样的，很简便，具体请查看作者Blog上的文档&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149334/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149334/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/jquery-phpdate.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>http://joncom.be/code/jquery-phpdate/ 用法基本和PHP的date是一样的，很简便，具体请查看作者Blog上的文...&lt;img src=&quot;http://www1.feedsky.com/t1/627149334/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149334/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>前端技术</category><category>date</category><category>javascript</category><pubDate>Sat, 29 Jan 2011 16:52:15 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/jquery-phpdate.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=414</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/jquery-phpdate.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149334/4416665</fs:itemid></item><item><title>jQuery Superfish Menu插件的z-index bug</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149335/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;这个BUG在IE6/IE7上才会&lt;/p&gt;
&lt;pre class=&quot;brush: css; light: false; title: ; toolbar: true; notranslate&quot;&gt;
.sf-menu, .sf-menu * {
	margin:0;
	padding:0;
	list-style:none;
	z-index:9999999 !important; /* 加上这一行就能解决叠层问题 */
}&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/&quot;&gt;参考来源 Superfish jQuery Menu IE z-index Bug&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149335/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149335/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html/feed</wfw:commentRss><slash:comments>1</slash:comments><description>这个BUG在IE6/IE7上才会 参考来源 Superfish jQuery Menu IE z-index Bu...&lt;img src=&quot;http://www1.feedsky.com/t1/627149335/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149335/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>前端技术</category><pubDate>Sat, 01 Jan 2011 21:12:32 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=398</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149335/4416665</fs:itemid></item><item><title>一个基于Mootools/jQuery的表格插件</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149336/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://tiana.ejstyle.cn/wp-content/uploads/2010/11/TableGear.jpg&quot; rel=&quot;lightbox[327]&quot;&gt;&lt;img src=&quot;http://tiana.ejstyle.cn/wp-content/uploads/2010/11/TableGear.jpg&quot; alt=&quot;TableGear&quot; title=&quot;TableGear&quot; width=&quot;500&quot; height=&quot;275&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://andrewplummer.com/code/tablegear/&quot;&gt;TableGear&lt;/a&gt;是一个基于Mootools/jQuery的表格插件，通过Ajax删除、添加、修改数据。 &lt;img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /&gt;  &lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149336/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149336/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/tablegear.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>TableGear是一个基于Mootools/jQuery的表格插件，通过Ajax删除、添加、修改数据...&lt;img src=&quot;http://www1.feedsky.com/t1/627149336/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149336/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>table</category><category>前端技术</category><category>jquery</category><category>mootools</category><pubDate>Mon, 01 Nov 2010 19:04:34 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/tablegear.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=327</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/tablegear.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149336/4416665</fs:itemid></item><item><title>用JS来实现PHP函数功能</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149337/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://phpjs.org/&quot;&gt;http://phpjs.org/&lt;/a&gt;&lt;br /&gt;
很多PHP函数都有相应的Javascript实现&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149337/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149337/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/phpjs-org.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>http://phpjs.org/ 很多PHP函数都有相应的Javascript实...&lt;img src=&quot;http://www1.feedsky.com/t1/627149337/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149337/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>前端技术</category><category>php</category><category>javascript</category><pubDate>Thu, 28 Oct 2010 02:07:26 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/phpjs-org.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=317</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/phpjs-org.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149337/4416665</fs:itemid></item><item><title>css hacks</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149338/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://www.webdevout.net/css-hacks&quot;&gt;http://www.webdevout.net/css-hacks&lt;/a&gt;&lt;br /&gt;
CSS的兼容技巧，备忘一下。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149338/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149338/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/css-hacks.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>http://www.webdevout.net/css-hacks CSS的兼容技巧，备忘一下...&lt;img src=&quot;http://www1.feedsky.com/t1/627149338/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149338/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>前端技术</category><category>hack</category><category>CSS</category><pubDate>Sat, 18 Sep 2010 03:23:28 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/css-hacks.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=307</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/css-hacks.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149338/4416665</fs:itemid></item><item><title>自定义CodeIgniter的404错误页面</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149339/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://maestric.com/doc/php/codeigniter_404&quot;&gt;http://maestric.com/doc/php/codeigniter_404&lt;/a&gt;&lt;br /&gt;
google一下，找一个国外朋友提供的一个解决方法。&lt;/p&gt;
&lt;p&gt;其他几个解决方法。&lt;/p&gt;
&lt;p&gt;http://codeigniter.com/forums/viewthread/76340/&lt;/p&gt;
&lt;p&gt;http://codeigniter.com/forums/viewthread/90613/&lt;/p&gt;
&lt;p&gt;http://codeigniter.com/forums/viewthread/54807/&lt;/p&gt;
&lt;p&gt;把MY_Router类放到你的&lt;strong&gt;“./application/libraries/MY_Router.php”&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: php; light: false; title: ; toolbar: true; notranslate&quot;&gt;
&amp;lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Router extends CI_Router {

	var $error_controller = 'error';
	var $error_method_404 = 'error_404';

    function My_Router()
    {
        parent::CI_Router();
    }

	// this is just the same method as in Router.php, with show_404() replaced by $this-&amp;gt;error_404();
	function _validate_request($segments)
	{
		// Does the requested controller exist in the root folder?
		if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))
		{
			return $segments;
		}

		// Is the controller in a sub-folder?
		if (is_dir(APPPATH.'controllers/'.$segments[0]))
		{
			// Set the directory and remove it from the segment array
			$this-&amp;gt;set_directory($segments[0]);
			$segments = array_slice($segments, 1);

			if (count($segments) &amp;gt; 0)
			{
				// Does the requested controller exist in the sub-folder?
				if ( ! file_exists(APPPATH.'controllers/'.$this-&amp;gt;fetch_directory().$segments[0].EXT))
				{
					return $this-&amp;gt;error_404();
				}
			}
			else
			{
				$this-&amp;gt;set_class($this-&amp;gt;default_controller);
				$this-&amp;gt;set_method('index');

				// Does the default controller exist in the sub-folder?
				if ( ! file_exists(APPPATH.'controllers/'.$this-&amp;gt;fetch_directory().$this-&amp;gt;default_controller.EXT))
				{
					$this-&amp;gt;directory = '';
					return array();
				}
			}

			return $segments;
		}

		// Can't find the requested controller...
		return $this-&amp;gt;error_404();
	}

	function error_404()
	{
		$this-&amp;gt;directory = &amp;quot;&amp;quot;;
		$segments = array();
		$segments[] = $this-&amp;gt;error_controller;
		$segments[] = $this-&amp;gt;error_method_404;
		return $segments;
	}

	function fetch_class()
	{
		// if method doesn't exist in class, change
		// class to error and method to error_404
		$this-&amp;gt;check_method();

		return $this-&amp;gt;class;
	}

	function check_method()
	{
		$ignore_remap = true;

		$class = $this-&amp;gt;class;
		if (class_exists($class))
		{
			// methods for this class
			$class_methods = array_map('strtolower', get_class_methods($class));

			// ignore controllers using _remap()
			if($ignore_remap &amp;amp;&amp;amp; in_array('_remap', $class_methods))
			{
				return;
			}

			if (! in_array(strtolower($this-&amp;gt;method), $class_methods))
			{
				$this-&amp;gt;directory = &amp;quot;&amp;quot;;
				$this-&amp;gt;class = $this-&amp;gt;error_controller;
				$this-&amp;gt;method = $this-&amp;gt;error_method_404;
				include(APPPATH.'controllers/'.$this-&amp;gt;fetch_directory().$this-&amp;gt;error_controller.EXT);
			}
		}
	}

	function show_404()
	{
		include(APPPATH.'controllers/'.$this-&amp;gt;fetch_directory().$this-&amp;gt;error_controller.EXT);
		call_user_func(array($this-&amp;gt;error_controller, $this-&amp;gt;error_method_404));
	}

}
?&amp;gt;
&lt;/pre&gt;
&lt;p&gt;这个是控制器&lt;/p&gt;
&lt;pre class=&quot;brush: php; light: false; title: ; toolbar: true; notranslate&quot;&gt;
&amp;lt;?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
include_once(&amp;quot;base.php&amp;quot;);

class Error extends Controller {
	function error_404()
	{
		$this-&amp;gt;load-&amp;gt;view($this-&amp;gt;_getTheme().'error_404_view', $this-&amp;gt;data);
	}
}
?&amp;gt;
&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149339/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149339/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>http://maestric.com/doc/php/codeigniter_404 google一下，找一个国外朋友提供的一个解决方法。 其他几个解决方法。 http://codeigniter.com/forums/viewthread/76340/ http://codeigniter.com/forums/viewthread/90613/ http://codeigniter....&lt;img src=&quot;http://www1.feedsky.com/t1/627149339/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149339/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>php</category><category>codeigniter</category><category>程序开发</category><pubDate>Fri, 17 Sep 2010 00:01:53 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=300</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149339/4416665</fs:itemid></item><item><title>Image_moo Class</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149340/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;&lt;a href=&quot;http://www.matmoo.com/codeigniter/image_moo/&quot;&gt;Image_moo&lt;/a&gt;是一个基于Codeigniter的图片类，比Codeigniter自带的Image_lib类要方便，且功能也很强。&lt;/p&gt;
&lt;pre class=&quot;brush: php; light: false; title: ; toolbar: true; notranslate&quot;&gt;
//可以连续操作添加水印和生成不同尺寸的缩略图
$this-&amp;gt;image_moo
	-&amp;gt;load(“image.jpg”)
	-&amp;gt;make_watermark_text(&amp;quot;Text&amp;quot;, &amp;quot;FONT.TTF&amp;quot;, 25, &amp;quot;#000&amp;quot;)
	-&amp;gt;resize(600,600)
	-&amp;gt;watermark(2)
	-&amp;gt;save(“large.jpg”)
	-&amp;gt;resize(400,400)
	-&amp;gt;save(“medium.jpg”)
	-&amp;gt;resize(100,100)
	-&amp;gt;save(“small.jpg”);
&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149340/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149340/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>Image_moo是一个基于Codeigniter的图片类，比Codeigniter自带的Image_lib类要方便，且功能也很强...&lt;img src=&quot;http://www1.feedsky.com/t1/627149340/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149340/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>image</category><category>class</category><category>codeigniter</category><category>程序开发</category><pubDate>Sun, 12 Sep 2010 20:37:04 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=291</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149340/4416665</fs:itemid></item><item><title>Codeigniter的Ajax示例</title><link>http://item.feedsky.com/~feedsky/Tiana/~7457088/627149341/4416665/1/item.html</link><content:encoded>&lt;!-- wp-jquery-lightbox, a WordPress plugin by ulfben --&gt; 
&lt;p&gt;下载后解压缩到自己的CI目录，导入SQL文件就可以直接查看了。示例是用Google Libraries API的Mootools 1.1.1版本，所以无需再自己下载了。&lt;br /&gt;
&lt;a href=&quot;http://tiana.ejstyle.cn/downloads/codeigniter_ajax_example&quot;&gt;点击下载示例&lt;/a&gt;&lt;br /&gt;
示例中的Ajax代码&lt;/p&gt;
&lt;pre class=&quot;brush: jscript; light: false; title: ; toolbar: true; notranslate&quot;&gt;
window.addEvent('domready', function(){
	$$('a[title=status]').each(function(el){
		el.addEvent('click', function(e){
			new Event(e).stop(); //停止a标签的跳转
			var uri = this.getProperty('href').split(&amp;quot;#&amp;quot;); //把URL分割出等下要提交Ajax请求的地址和参数
			var value = uri[1].split(&amp;quot;-&amp;quot;); //把参数分割为数据库中的id值和当前status的值
			new Ajax(uri[0], {
				method: 'post', //以post方式提交
				data: Object.toQueryString({
					//生成querystring格式的请求，示例&amp;quot;id=1&amp;amp;status=1&amp;quot;
					id:value[0],
					status: value[1] == '1' ? '0' : '1'
				}),

				//当ajax请求完成时触发的事件
				onComplete: function(vars){
					var r = Json.evaluate(vars); //把从PHP传递过来的Json字符串转换为Javascript对象
					if(r.result){ //判断刚才发送的Ajax请求是否更新成功
						this.setProperty('href', uri[0] + '#' + r.id + '-' + r.status);//更新a标签的URL与参数
						this.setText( r.status );//设置a标签的新文本为更新后的status值
					}
				}.bind(this)
			}).request();
		});

		el.addEvent('mouseover', function(){
			this.setProperty('title', '');
		});
	});
});
&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/627149341/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149341/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>下载后解压缩到自己的CI目录，导入SQL文件就可以直接查看了。示例是用Google Libraries API的Mootools 1.1.1版本，所以无需再自己下载了。 点击下载示例 示例中的Ajax代...&lt;img src=&quot;http://www1.feedsky.com/t1/627149341/Tiana/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/Tiana/~7457088/627149341/4416665/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>codeigniter</category><category>程序开发</category><category>demo</category><category>example</category><category>ajax</category><pubDate>Fri, 03 Sep 2010 21:47:54 +0800</pubDate><author>小鹅</author><comments>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html#comments</comments><guid isPermaLink="false">http://tiana.ejstyle.cn/?p=284</guid><dc:creator>小鹅</dc:creator><fs:srclink>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html</fs:srclink><fs:srcfeed>http://tiana.ejstyle.cn/feed/</fs:srcfeed><fs:itemid>feedsky/Tiana/~7457088/627149341/4416665</fs:itemid></item></channel></rss>
