<?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>polaris14551 &#124; 摇光 &#187; Javascript</title>
	<atom:link href="http://14551.org/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://14551.org</link>
	<description>一路向北，一個我從未觸及的花開之地. 亦或是哀鴻遍野…..未知的美丽</description>
	<lastBuildDate>Thu, 09 Sep 2010 11:48:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>按时间显示提示语</title>
		<link>http://14551.org/2009/10/according-to-the-time-javascript.html</link>
		<comments>http://14551.org/2009/10/according-to-the-time-javascript.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 13:18:37 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[收藏分享]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://14551.org/2009/10/according-to-the-time-javascript.html</guid>
		<description><![CDATA[
&#60;script Language=&#34;Javascript&#34;&#62;
　　var text=&#34;&#34;;　　 day = new Date&#40; &#41;;　　time = day.getHours&#40; &#41;;
　　if &#40;&#40; time&#62;=0&#41; &#38;&#38; &#40;time &#60; 7 &#41;&#41;
　　　　text=&#34;夜猫子，要注意身体哦!&#34;
　　if &#40;&#40; time &#62;= 7 &#41; &#38;&#38; &#40;time &#60; 12&#41;&#41;
　　　　text=&#34;早上好啊，今天心情不错吧!&#34;
　　if &#40;&#40; time &#62;= 12&#41; &#38;&#38; &#40;time &#60; 14&#41;&#41;
　　　　text=&#34;午休时间，要保持睡眠哦!&#34;
　　if &#40;&#40; time &#62;=14&#41; &#38;&#38; &#40;time &#60; 18&#41;&#41;
　　　　text=&#34;祝您下午工作愉快!&#34; 
　　if &#40;&#40;time &#62;= 18&#41; &#38;&#38; &#40;time &#60;= 22&#41;&#41;
　　　　text=&#34;您又来了，可别忘了多回帖哦!&#34;
　　if &#40;&#40;time &#62;= 22&#41; &#38;&#38; &#40;time [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script Language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Javascript&quot;</span><span style="color: #339933;">&gt;</span>
　　<span style="color: #003366; font-weight: bold;">var</span> text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>　　 day <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>　　time <span style="color: #339933;">=</span> day.<span style="color: #660066;">getHours</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> time<span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">7</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;夜猫子，要注意身体哦!&quot;</span>
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> time <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">7</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;早上好啊，今天心情不错吧!&quot;</span>
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> time <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">14</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;午休时间，要保持睡眠哦!&quot;</span>
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> time <span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">14</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">18</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;祝您下午工作愉快!&quot;</span> 
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">18</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;=</span> <span style="color: #CC0000;">22</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;您又来了，可别忘了多回帖哦!&quot;</span>
　　<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">22</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>time <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">24</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
　　　　text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;朋友，您应该休息了!&quot;</span>
　　document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>text<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>


	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2009/07/zencart-product-type.html" title="备忘：如何在Zencart中添加Product Type (2009-07-26)">备忘：如何在Zencart中添加Product Type</a></li>
	<li><a href="http://14551.org/2009/07/how-to-add-more-custom-pages-into-zen-cart.html" title="备忘：如何在zencart中添加Define Pages (2009-07-25)">备忘：如何在zencart中添加Define Pages</a></li>
	<li><a href="http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html" title="在Google地图上标记地点 (2009-10-15)">在Google地图上标记地点</a></li>
	<li><a href="http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html" title="dbanotes.net：Web前端优化最佳实践之内容篇 (2008-09-23)">dbanotes.net：Web前端优化最佳实践之内容篇</a></li>
	<li><a href="http://14551.org/2009/12/content-management-system.html" title="CMS：Content Management System (2009-12-11)">CMS：Content Management System</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2009/10/according-to-the-time-javascript.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在Google地图上标记地点</title>
		<link>http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html</link>
		<comments>http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html#comments</comments>
		<pubDate>Thu, 15 Oct 2009 13:04:22 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[收藏分享]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[地图]]></category>

		<guid isPermaLink="false">http://14551.org/?p=2022</guid>
		<description><![CDATA[完整教程请参考：http://stiern.com/tutorials/adding-custom-google-maps-to-your-website
有几个疑问：
1、作者在第一段提到的Google Maps  API仅仅用于获取经纬度，可以不必这么复杂。
2、在Customizing the  Markers段中，代码中的companyLogo应该替换为companyImage才对。这大概是作者不小心导致的。
下载作者是提供的sample files。

1、获取地址的详细经纬度：只需打开Google地图，查找地点，在地图右上角链接中即可获取经纬度。

function initialize&#40;&#41; &#123;
var latlng = new google.maps.LatLng&#40;57.0442, 9.9116&#41;; //括号中即为经纬度信息，要修改
var settings = &#123;
       zoom: 15, //缩放级别
       center: latlng,//将以上定义的经纬度居中放置
       mapTypeControl: true,//允许选择地图类型：地图、卫星、混合、地形4种类型。
	mapTypeControlOptions: &#123;style: google.maps.MapTypeControlStyle.DROPDOWN_MENU&#125;,//菜单类型：下拉、水平
	navigationControl: true,//缩放菜单控制
	navigationControlOptions: &#123;style: google.maps.NavigationControlStyle.SMALL&#125;,
	mapTypeId: google.maps.MapTypeId.ROADMAP&#125;;//默认地图类型为地图
      [...]]]></description>
			<content:encoded><![CDATA[<p>完整教程请参考：<a title="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website" href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website">http://stiern.com/tutorials/adding-custom-google-maps-to-your-website</a><br />
有几个疑问：<br />
1、作者在第一段提到的<a href="http://code.google.com/intl/en-EN/apis/maps/signup.html">Google Maps  API</a>仅仅用于获取经纬度，可以不必这么复杂。<br />
2、在Customizing the  Markers段中，代码中的companyLogo应该替换为companyImage才对。这大概是作者不小心导致的。<br />
下载作者是提供的<a href="http://14551.org/wp-content/uploads/2009/10/googlemaps.zip">sample files</a>。<br />
<span id="more-2022"></span><br />
1、获取地址的详细经纬度：只需打开Google地图，查找地点，在地图右上角链接中即可获取经纬度。</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> latlng <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//括号中即为经纬度信息，要修改</span>
<span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
       zoom<span style="color: #339933;">:</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//缩放级别</span>
       center<span style="color: #339933;">:</span> latlng<span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//将以上定义的经纬度居中放置</span>
       mapTypeControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//允许选择地图类型：地图、卫星、混合、地形4种类型。</span>
	mapTypeControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeControlStyle</span>.<span style="color: #660066;">DROPDOWN_MENU</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//菜单类型：下拉、水平</span>
	navigationControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//缩放菜单控制</span>
	navigationControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">NavigationControlStyle</span>.<span style="color: #660066;">SMALL</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	mapTypeId<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeId</span>.<span style="color: #660066;">ROADMAP</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//默认地图类型为地图</span>
        <span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//定义companyPos的经纬度</span>
      <span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
      position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
      map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
      title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Some title&quot;</span> 
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>以上即为最简单的标记地图原型，<a href="http://14551.org/14551/t/logs/html/maps/maps1.html">示例</a>。</p>
<p>进阶设置，即在地图上增加相应的图标（如企业标识，Logo等）及Description&#8230;<br />
1、添加图标，在companyMarker继续添加元素。</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyImage <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo.png'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//图标位置</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//像素大小。</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//此图标在地图上的锚定点相对于图标图像左上角的像素坐标。</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> companyShadow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo_shadow.png'</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//定义company的经纬度位置</span>
<span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
	map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
	icon<span style="color: #339933;">:</span> companyImage<span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//选择图标</span>
	shadow<span style="color: #339933;">:</span> companyShadow<span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//图标的阴影图像网址</span>
	title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Høgenhaug&quot;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//标记提示</span>
	zIndex<span style="color: #339933;">:</span> <span style="color: #CC0000;">3</span><span style="color: #006600; font-style: italic;">//同CSS</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>2、添加Description</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> contentString <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;content&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;siteNotice&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;h1 id=&quot;firstHeading&quot; class=&quot;firstHeading&quot;&gt;Høgenhaug&lt;/h1&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;bodyContent&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> infowindow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">InfoWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	content<span style="color: #339933;">:</span> contentString
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>完全地图原型，<a href="http://14551.org/14551/t/logs/html/maps/index.html">示例</a>。</p>
<p>实践才是王道。链接：<a href="http://code.google.com/intl/zh-CN/apis/maps/">Google 地图 API文档</a></p>

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2010/06/google-maps-2.html" title="我的谷歌地图 (2010-06-18)">我的谷歌地图</a></li>
	<li><a href="http://14551.org/2009/06/google-maps.html" title="同城博客导航@Google Maps (2009-06-23)">同城博客导航@Google Maps</a></li>
	<li><a href="http://14551.org/2009/07/weinai-google.html" title="通稿则一定要保存。 (2009-07-07)">通稿则一定要保存。</a></li>
	<li><a href="http://14551.org/2008/09/google-chrome.html" title="追一次潮 google chrome~~ (2008-09-03)">追一次潮 google chrome~~</a></li>
	<li><a href="http://14551.org/2008/09/gtalk-robot.html" title="转：Gtalk机器人帐号大全 (2008-09-17)">转：Gtalk机器人帐号大全</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dbanotes.net：Web前端优化最佳实践之内容篇</title>
		<link>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html</link>
		<comments>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html#comments</comments>
		<pubDate>Tue, 23 Sep 2008 16:07:34 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[生活记事]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.14551.org/?p=418</guid>
		<description><![CDATA[ 作者: Fenng
 网址: http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html
Yahoo! 的 Exceptional Performance team 在 Web 前端方面作出了卓越的贡献。广为人知的优化规则也由 13 条到 14 条，再到 20 条，乃至现在的 34 条&#8211;真是与时俱进啊。最新的 34 条也针对不同的角度做了分类。

面向内容的优化规则目前有 10 条。
1. 尽量减少 HTTP 请求 (Make Fewer HTTP Requests)
作为第一条，可能也是最重要的一条。根据 Yahoo! 研究团队的数据分析，有很大一部分用户访问会因为这一条而取得最大受益。有几种常见的方法能切实减少HTTP请求：

1) 合并文件，比如把多个CSS文件合成一个；
2) CSS Sprites 利用 CSS background 相关元素进行背景图绝对定位；参见：CSS Sprites: Image Slicing&#8217;s Kiss of Death
3) 图像地图
4) 内联图象 使用 data: URL scheme 在实际的页面嵌入图像数据.

2. 减少 DNS [...]]]></description>
			<content:encoded><![CDATA[<p><span class="byline"> 作者: <strong><a href="http://www.dbanotes.net/">Fenng</a></strong><br />
</span> 网址: <a class="permalink" href="http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html">http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html</a></p>
<p>Yahoo! 的 Exceptional Performance team 在 Web 前端方面作出了卓越的贡献。广为人知的<a href="http://developer.yahoo.com/performance/rules.html">优化规则</a>也由 13 条到 14 条，再到 20 条，乃至现在的 <a href="http://developer.yahoo.com/performance/">34 条</a>&#8211;真是与时俱进啊。最新的 34 条也针对不同的角度做了分类。</p>
<p><span id="more-418"></span></p>
<p>面向内容的优化规则目前有 10 条。</p>
<h4>1. 尽量减少 <acronym title="HyperText Transfer Protocol">HTTP</acronym> 请求 (Make Fewer HTTP Requests)</h4>
<p>作为第一条，可能也是最重要的一条。根据 Yahoo! 研究团队的数据分析，有很大一部分用户访问会因为这一条而取得最大受益。有几种常见的方法能切实减少HTTP请求：</p>
<ul>
<li>1) <strong>合并文件</strong>，比如把多个CSS文件合成一个；</li>
<li>2) <strong>CSS Sprites</strong> 利用 CSS background 相关元素进行背景图<strong>绝对</strong>定位；参见：<a href="http://alistapart.com/articles/sprites">CSS Sprites: Image Slicing&#8217;s Kiss of Death</a></li>
<li>3) <strong>图像地图</strong></li>
<li>4) <strong>内联图象</strong> 使用 <a href="http://tools.ietf.org/html/rfc2397">data: URL scheme</a> 在实际的页面嵌入图像数据.</li>
</ul>
<h4>2. 减少 DNS  查找 (Reduce DNS Lookups)</h4>
<p>必须明确的一点，DNS 查找的开销是很大的。另外，我倒是觉得这是 Yahoo! 所有站点的通病，Yahoo！主站点可能还不够明显，一些分站点，存在明显的类似问题。对于国内站点来说，如果过多的使用了站外的 Widget ，也很容易引起过多的 DNS 查找问题。</p>
<h4>3. 避免重定向 (Avoid Redirects)</h4>
<p>不是绝对的避免，尽量减少。另外，应该注意一些不必要的重定向。比如对 Web 站点子目录的后面添加个 / (Slash) ，就能有效避免一次重定向。http://www.dbanotes.net/arch 与 http://www.dbanotes.net/arch<strong>/</strong> 二者之间是有差异的。如果是 Apache 服务器，通过配置 Alias 或mod_rewrite 或是 DirectorySlash 能够消除这个问题。</p>
<h4>4. 使得 Ajax 可缓存 (Make Ajax Cacheable)</h4>
<p>响应时间对 Ajax 来说至关重要，否则用户体验绝对好不到哪里去。提高响应时间的有效手段就是 Cache 。其它的一些优化规则对这一条也是有效的。</p>
<h4>5. 延迟载入组件 (Post-load Components)</h4>
<h4>6. 预载入组件 (Preload Components)</h4>
<p>上面两条严格说来，都是属于<strong>异步</strong>这个思想灵活运用的事儿。</p>
<h4>7. 减少 DOM 元素数量 (Reduce the Number of DOM Elements)</h4>
<h4>8. 切分组件到多个域 (Split Components Across Domains)</h4>
<p>主要的目的是提高页面组件并行下载能力。但不要跨太多域名，否则就和第二条有些冲突了。</p>
<h4>9. 最小化 iframe 的数量 (Minimize the Number of iframes)</h4>
<p>熟悉SEO 的朋友知道 iframe 是SEO 的大忌。针对前端优化来说 iframe 有其好处，也有其弊端，一分为二看问题吧。</p>
<h4>10. 杜绝 http 404 错误 (No 404s)</h4>
<p>对页面链接的充分测试加上对 Web 服务器 error 日志的不断跟踪能有效减少 404 错误，亦能提升用户体验。值得一提的是，CSS 与 Java Script 引起的 404 错误因为定位稍稍&#8221;难&#8221;一点而往往容易被忽略。</p>
<p>这是内容篇的 10 条。应该说具体引导性的内容还不够详细。逐渐会根据自己的理解补充上来。</p>

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2009/10/according-to-the-time-javascript.html" title="按时间显示提示语 (2009-10-23)">按时间显示提示语</a></li>
	<li><a href="http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html" title="在Google地图上标记地点 (2009-10-15)">在Google地图上标记地点</a></li>
	<li><a href="http://14551.org/2009/07/iis-301-redirect.html" title="IIS6 实现301重定向 (2009-07-17)">IIS6 实现301重定向</a></li>
	<li><a href="http://14551.org/2008/09/47-javascript-plugins.html" title="47 Javascript plugins (2008-09-05)">47 Javascript plugins</a></li>
	<li><a href="http://14551.org/2008/09/css-websites.html" title="20个CSS和网页设计相关领域的站点 (2008-09-16)">20个CSS和网页设计相关领域的站点</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>47 Javascript plugins</title>
		<link>http://14551.org/2008/09/47-javascript-plugins.html</link>
		<comments>http://14551.org/2008/09/47-javascript-plugins.html#comments</comments>
		<pubDate>Fri, 05 Sep 2008 18:03:28 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[收藏分享]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.14551.org/2008-09-05/47-javascript-plugins/</guid>
		<description><![CDATA[Javascript in Modern Web DesignImage Zoom and Popup

Lightbox
You&#8217;re probably very familiar with Lightbox &#8212; a light Javascript used to display overlay images on the current page. The original Lightbox
was released in 2005. Since then, t...
]]></description>
			<content:encoded><![CDATA[<h1><a href="http://www.webdesignerwall.com/general/javascript-in-modern-web-design/" target="_blank">Javascript in Modern Web Design</a></h1>
<h3>Image Zoom and Popup</h3>
<h4><a href="http://www.huddletogether.com/projects/lightbox2/" target="_top">Lightbox</a></h4>
<p>You’re probably very familiar with Lightbox — a light <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">Javascript</a> used to display overlay images on the current page. The <a href="http://www.huddletogether.com/projects/lightbox/" target="_top">original Lightbox</a><br />
was released in 2005. Since then, there are many scripts released with<br />
similar features using different approaches and <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">Javascript</a> libraries.</p>
<h4><a href="http://leandrovieira.com/projects/jquery/lightbox/" target="_top">jQuery lightBox Plugin</a></h4>
<p>This is exactly the same as Lightbox JS, but written on top of jQuery library.</p>
<h4><a href="http://jquery.com/demo/thickbox/" target="_top">Thickbox</a></h4>
<p>Thickbox is a jQuery plugin that is very similar to Lightbox, but<br />
comes with more features. It allows you to display: single image,<br />
multiple images, inline content, iframed content, or content served<br />
through AJAX in a hybrid modal.</p>
<p>Note: Web Designer Wall uses Thickbox to display the gallery images and tutorial demos.</p>
<p><span id="more-116"></span></p>
<h4><a href="http://vikjavev.no/highslide/" target="_top">Highslide JS</a></h4>
<p>Highslide JS serves the same purposes as Thickbox, but it has the zoom effect and allows you to drag the overlay window.</p>
<h4><a href="http://fancy.klade.lv/" target="_top">FancyBox</a></h4>
<p>FancyBox is a jQuery plugin that is designed to replace the overused<br />
Lightbox. It has similar features, but better transition effects (the<br />
design is Mac-like).</p>
<h4><a href="http://www.mind-projects.it/blog/jqzoom_v10" target="_top">jQZoom</a></h4>
<p>jQZoom allows you to show a magnified image of the thumbnail. This<br />
technique is commonly used in eCommerce websites (check out the <a href="http://www.gap.com/browse/product.do?cid=11540&amp;pid=569988" target="_top">Gap site</a> for a sample).</p>
<h3>Gallery and Slideshow</h3>
<h4><a href="http://www.electricprism.com/aeron/slideshow/" target="_top">Slideshow 2! for Mootools</a></h4>
<p>Slideshow 2! is a <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a> class for Mootools 1.2 to stream and animate the presentation of images on your website.</p>
<h4><a href="http://smoothgallery.jondesign.net/showcase/timed-gallery/" target="_top">SmoothGallery</a></h4>
<p>Using mootools v1.11, this <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a> gallery and slideshow system<br />
allows you to have simple and smooth (cross-fading…) image galleries,<br />
slideshows, showcases and other cool stuff on your website.</p>
<h4><a href="http://devkick.com/lab/galleria/" target="_top">jQuery Galleria</a></h4>
<p>Galleria is a <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a> image gallery written in jQuery. It loads<br />
the images one by one from an unordered list and displays thumbnails<br />
when each image is loaded. It will create thumbnails for you if you<br />
choose so, scaled or unscaled, centered and cropped inside a fixed<br />
thumbnail box defined by CSS.</p>
<h4><a href="http://www.efectorelativo.net/laboratory/noobSlide/" target="_top">Noobslide</a></h4>
<p>NoobSlide is  a MooTools class that lets you  create timed slideshows and sliding panels. Visit the <a href="http://www.efectorelativo.net/laboratory/noobSlide/" target="_top">website</a> to view the demos.</p>
<h4><a href="http://jqueryfordesigners.com/slider-gallery/" target="_top">Product Slider</a> (<a href="http://jqueryfordesigners.com/demo/slider-gallery.html" target="_top">demo</a>)</h4>
<p>This shows a demonstration of a slider widget from the jQuery UI library used to create the product slider as seen on the <a href="http://www.apple.com/mac/" target="_top">Apple &#8211; Mac website</a>.</p>
<h3>Carousel</h3>
<h4><a href="http://sorgalla.com/jcarousel/" target="_top">jCarousel</a></h4>
<p>jCarousel is a jQuery plugin for controlling a list of items in<br />
horizontal or vertical order. The items, which can be static HTML<br />
content or loaded with (or without) AJAX, can be scrolled back and<br />
forth (with or without animation).</p>
<h4><a href="http://billwscott.com/carousel/" target="_top">YUI Carousel Component</a></h4>
<p>The carousel component manages a list of content (HTML LI elements<br />
within a UL) that can be displayed horizontally or vertically. The<br />
content can be scrolled back and forth with or without animation. The<br />
content can reference static HTML content or the list items can be<br />
created dynamically on-the-fly (with or without Ajax).</p>
<h4><a href="http://www.dynamicdrive.com/dynamicindex14/carousel.htm" target="_top">DynamicDrive &#8211; Carousel Slideshow</a></h4>
<p>Carousel Slideshow is a fabulous DHTML script for the showcasing of<br />
images on your site. It displays images in a 3D, carousel fashion.</p>
<h4><a href="http://zendold.lojcomm.com.br/icarousel/" target="_top">iCarousel &#8211; MooTools</a></h4>
<p>iCarousel is an open source (free) <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a> tool for creating<br />
carousel like widgets. You can use iCarousel as news ticker/scroller or<br />
image gallery slider.</p>
<h3>Panel Slider</h3>
<h4><a href="http://www.ndoherty.com/demos/coda-slider/1.1.1/" target="_top">Coda Slider Plugin</a></h4>
<p>Coda Slider is a jQuery plugin that imitates the panel sliding effects as seen on the <a href="http://www.panic.com/coda/" target="_top">Coda</a> website.</p>
<h4><a href="http://jqueryfordesigners.com/coda-slider-effect/" target="_top">jQuery Coda Slide Tutorial</a> (<a href="http://jqueryfordesigners.com/demo/coda-slider.html" target="_top">demo</a>)</h4>
<p>This is a tutorial from <a href="http://jqueryfordesigners.com/coda-slider-effect/" target="_top">jQuery For Designers</a> to show you how to create the Coda panel slider.</p>
<h4><a href="http://creativepony.com/journal/scripts/sliding-tabs/" target="_top">Sliding Tabs</a> (<a href="http://creativepony.com/demos/sliding-tabs/" target="_top">demo</a>)</h4>
<p>Sliding Tabs is a mootools 1.11 plugin which adds a pretty neat<br />
effect. It’s a clone of something seen on Panic Software’s Coda site,<br />
which in turn was very similar to a widget used in the iTunes Music<br />
Store.</p>
<h3>Tabs</h3>
<h4><a href="http://www.stilbuero.de/jquery/tabs_3/" target="_top">jQuery UI Tabs</a></h4>
<p>jQuery Tabs is a powerful and flexible jQuery plugin that lets you create customizable tab navigation (highly recommended).</p>
<h4><a href="http://jqueryfordesigners.com/jquery-tabs/" target="_top">jQuery Tabs Tutorial</a> (<a href="http://jqueryfordesigners.com/demo/tabs.html" target="_top">demo</a>)</h4>
<p>Another awesome tutorial from <a href="http://jqueryfordesigners.com/demo/tabs.html" target="_top">jQueryForDesigners.com</a> to show you how to create a basic tab navigation with jQuery.</p>
<h4><a href="http://www.silverscripting.com/mootabs/" target="_top">MooTabs</a></h4>
<p>MooTabs is a tiny(3kb) class for MooTools. As the name suggests, its<br />
main purpose is to help out with the creation of simple tab navigation.</p>
<h4><a href="http://nettuts.com/javascript-ajax/create-a-tabbed-interface-using-jquery/">Sliding Tabs Tutorial</a> (<a href="http://nettuts.s3.amazonaws.com/042_jQueryUITabs/demo/index.html" target="_top">demo</a>)</h4>
<p>A tutorial from <a href="http://nettuts.com/javascript-ajax/create-a-tabbed-interface-using-jquery/">Nettuts.com</a> to show you how to create a sliding tab with jQuery.</p>
<h3>Scroll to Anchor</h3>
<h4><a href="http://plugins.jquery.com/project/scrollto" target="_top">jQuery ScrollTo</a> (<a href="http://demos.flesler.com/jquery/scrollTo/" target="_top">demo</a>)</h4>
<p>A very flexible jQuery plugin that lets you create scrolling<br />
animation to any position of a web page with customizable erasing and<br />
speed options.</p>
<h4><a href="http://davidwalsh.name/smoothscroll-mootools-12" target="_top">SmoothScroll</a> (<a href="http://davidwalsh.name/dw-content/moo1.2-smoothscroll.php" target="_top">demo</a>)</h4>
<p>A simple MooTools script that creates smooth scrolling to anchors on a web page.</p>
<h4><a href="http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12" target="_top">Animated Scrolling with jQuery</a></h4>
<p><a href="http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12" target="_top">Learning jQuery</a> shows you how to create an animated &#8220;scroll to anchor&#8221; with just a few lines of code.</p>
<h3>Tooltips</h3>
<h4><a href="http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip" target="_top">jTips</a> (<a href="http://www.codylindley.com/blogstuff/js/jtip/" target="_top">demo</a>)</h4>
<p>A customizable jQuery plugin that displays tooltip popup  — with either static html text or Ajax content.</p>
<h4><a href="http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/" target="_top">jQuery Tooltip Plugin</a> (<a href="http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/" target="_top">demo</a>)</h4>
<p>Another nice Tooltip plugin.</p>
<h4><a href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" target="_top">Tooltip and Image Preview</a> (<a href="http://cssglobe.com/lab/tooltip/02/" target="_top">demo</a>)</h4>
<p>A very simple jQuery script that displays tooltip and image preview (I use it on <a href="http://bestwebgallery.com/" target="_top">Best Web Gallery</a>).</p>
<h3>Accordion</h3>
<h4><a href="http://bassistance.de/jquery-plugins/jquery-plugin-accordion/" target="_top">jQuery Accordion</a> (<a href="http://jquery.bassistance.de/accordion/demo/" target="_top">demo</a>)</h4>
<p>This plugin creates an accordion menu. It works with nested lists, definition lists, or just nested divs.</p>
<h4><a href="http://jqueryfordesigners.com/slide-out-and-drawer-effect/" target="_top">Apple.com Sidebar Accordion</a> (<a href="http://jqueryfordesigners.com/demo/plugin-slide-demo.html" target="_top">demo</a>)</h4>
<p><a href="http://jqueryfordesigners.com/slide-out-and-drawer-effect/" target="_top">jQueryForDesigner.com</a> shows you how to create the accordion slider as seen on the <a href="http://www.apple.com/downloads/" target="_top">Apple website</a>.</p>
<h4><a href="http://demos.mootools.net/Accordion" target="_top">MooTools Accordion</a></h4>
<p>The Accordion gives you a fancy way to show only the content you really need.</p>
<h4><a href="http://www.phatfusion.net/imagemenu/" target="_top">MooTools Image Menu</a></h4>
<p>Image Menu is a MooTools plugin that creates the horizontal accordion image menu.</p>
<h3>Flash and Image Text Replacement</h3>
<h4><a href="http://novemberborn.net/sifr3" target="_top">sIFR 3</a> (<a href="http://dev.novemberborn.net/sifr3/beta2/demo/" target="_top">demo</a>)</h4>
<p>sIFR is meant to replace short passages of plain browser text with<br />
text rendered in your typeface of choice, regardless of whether or not<br />
your users have that font installed on their systems. It accomplishes<br />
this by using a combination of <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a>, CSS, and Flash.</p>
<h4><a href="http://jquery.thewikies.com/sifr/" target="_top">jQuery sIFR</a> (<a href="http://jquery.thewikies.com/sifr/#examples" target="_top">demo</a>)</h4>
<p>A jQuery plugin that does the sIFR for you.</p>
<h4><a href="http://facelift.mawhorter.net/examples/" target="_top">FLIR</a> (<a href="http://facelift.mawhorter.net/preview/" target="_top">demo</a>)</h4>
<p>Facelift Image Replacement is an image replacement script that<br />
dynamically generates image representations of text on your web page in<br />
fonts that otherwise might not be visible to your visitors. The<br />
generated image will be automatically inserted into your web page via<br />
<a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">Javascript</a> and visible to all modern browsers.</p>
<h3>CSS Stylesheet Switcher</h3>
<h4><a href="http://www.alistapart.com/stories/alternate/" target="_top">A List Apart &#8211; Alternative Style</a></h4>
<p>The original stylesheet switcher by Paul Sowden. Believe it or not,<br />
this trick was invented in 2001 (not a modern trick after all).</p>
<h4><a href="http://www.kelvinluck.com/article/switch-stylesheets-with-jquery" target="_top">Switch Stylesheets with jQuery</a> (<a href="http://www.kelvinluck.com/assets/jquery/styleswitch/" target="_top">demo</a>)</h4>
<p>Stylesheet switcher with jQuery.</p>
<h4><a href="http://www.mensching.info/program/mootools-styleswitcher-en.html" target="_top">MooTools Styleswitcher </a> (<a href="http://www.mensching.info/program/demo-styleswitcher1/styleswitcher-demo-en.html" target="_top">demo</a>)</h4>
<p>CSS stylesheet switcher with MooTools.</p>
<h3>Form Styling</h3>
<h4><a href="http://lipidity.com/fancy-form/" target="_top">FancyForm &#8211; MooTools</a> (<a href="http://lipidity.com/fancy-form/demo/" target="_top">demo</a>)</h4>
<p>A MooTools plugin that replaces the browser default checkboxes and radio buttons with custom styles.</p>
<h4><a href="http://www.no-margin-for-errors.com/projects/prettyCheckboxes/" target="_top">PrettyCheckboxes &#8211; jQuery</a></h4>
<p>Same as FancyForm, but using jQuery library.</p>
<h4><a href="http://www.brainfault.com/2008/02/10/new-release-of-jquery-selectbox-replacement/" target="_top">jQuery Selectbox Plugin</a> (<a href="http://www.brainfault.com/demo/selectbox/0.5/" target="_top">demo</a>)</h4>
<p>A simple plugin that allows you to replace the form select list with custom styles.</p>
<h4><a href="http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/" target="_top">Custom Checkboxes, Radio Buttons, Select Lists</a></h4>
<p>Give your form a complete makeover with this <a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">Javascript</a> and CSS.</p>
<h4><a href="http://mucur.name/posts/jquery-example" target="_top">jQuery Form Input Example Plugin</a> (<a href="http://mucur.name/system/jquery_example/" target="_top">demo</a>)</h4>
<p>A jQuery plugin that gives  user hints on what to enter in the input fields.</p>
<h4><a href="http://www.frequency-decoder.com/2008/08/01/unobtrusive-slider-control-v2" target="_top">Unobtrusive Slider Control V2</a> (<a href="http://www.frequency-decoder.com/demo/slider-v2/colourPicker/" target="_top">demo</a>)</h4>
<p>This script lets you create custom slider controls associated with input fields.</p>
<p><em>More Form styling links at <a href="http://www.noupe.com/css/form-elements-40-cssjs-styling-and-functionality-techniques.html" target="_top">Noupe.com/css/form-elements…</a></em></p>
<h3>Form Validation</h3>
<h4><a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_top">jQuery Validate</a> (<a href="http://jquery.bassistance.de/validate/demo/" target="_top">demo</a>)</h4>
<p>A very plugin that allows you to build client-side validation and Ajax form.</p>
<h4><a href="http://www.phatfusion.net/validate/" target="_top">MooTools Validate</a></h4>
<p>A MooTools form validation plugin (similar to jQuery Validate).</p>
<h4><a href="http://www.jsvalidate.com/" target="_top">JSValidate</a> (<a href="http://www.jsvalidate.com/demo/" target="_top">demo</a>)</h4>
<p>JSValidate is a form validator that utilizes aspects of prototype<br />
and scriptaculous to bring you a simple to execute, non-intrusive<br />
<a href="http://14551.org/tag/javascript" class="st_tag internal_tag" rel="tag" title="Posts tagged with Javascript">javascript</a> form validator. With minimal setup, your forms can be<br />
processing clean data in no time at all.</p>

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2009/10/according-to-the-time-javascript.html" title="按时间显示提示语 (2009-10-23)">按时间显示提示语</a></li>
	<li><a href="http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html" title="在Google地图上标记地点 (2009-10-15)">在Google地图上标记地点</a></li>
	<li><a href="http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html" title="dbanotes.net：Web前端优化最佳实践之内容篇 (2008-09-23)">dbanotes.net：Web前端优化最佳实践之内容篇</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2008/09/47-javascript-plugins.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
