<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>19~Blog &#124; &#187; cookie</title>
	<atom:link href="http://www.ll19.com/tag/cookie/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ll19.com</link>
	<description>今天总是好过昨天~</description>
	<lastBuildDate>Fri, 02 Jul 2010 13:10:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JQUERY记录:UI使用和cookie插件</title>
		<link>http://www.ll19.com/cookie-jqueryui.html</link>
		<comments>http://www.ll19.com/cookie-jqueryui.html#comments</comments>
		<pubDate>Mon, 27 Oct 2008 07:04:19 +0000</pubDate>
		<dc:creator>19.</dc:creator>
				<category><![CDATA[Collect]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.ll19.com/?p=129</guid>
		<description><![CDATA[jQuery记录:UI使用和cookie插件.

首先是cookie：不知道从哪里找的例子中带了一个jQuery.cookie的插件，没有仔细看代码只是大致看了下例子中的用法，可以直接在前台设置记录信息在cookie中。比如下面，每次都会记录用户上次访问的站点，打开时候ALERT。现在还没有想到站点有什么地方会用到，不过一定会有用的 = =。

1
2
$thispath = $_SERVER&#91;'HTTP_HOST'&#93;;
$thisurl = $_SERVER&#91;'REQUEST_URI'&#93;;


1
2
3
4
5
jQuery&#40;document&#41;.ready&#40;function&#40;&#41; &#123;
var view_url = jQuery.cookie&#40;'view_url'&#41;;
alert &#40;view_url&#41;;
jQuery.cookie&#40;'view_url', &#34;&#60;?php echo &#34;http://&#34;.$thispath.$thisurl; ?&#62;&#34;);
&#125;&#41;



之后是jQuery.UI的一个应用：IPHONE用多了总是想去来回拖拽 = =，如果你用过wp-pagenavi这个插件就可以下载下面的那个UI例子来输出成下面的样子。这个JS想到哪写到哪的，= = 所以实现的可能有点幼稚~人生就是这样的~
 -= UI例子下载 =-  &#124;  -= cookie插件 =- 





]]></description>
		<wfw:commentRss>http://www.ll19.com/cookie-jqueryui.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
