<?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>JQuery &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Sun, 07 Apr 2013 09:07:04 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Jquery跨浏览器文本复制插件Zero Clipboard的使用方法</title>
		<link>https://www.mudbest.com/jquery%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e6%96%87%e6%9c%ac%e5%a4%8d%e5%88%b6%e6%8f%92%e4%bb%b6zero-clipboard%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Sun, 07 Apr 2013 08:50:28 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[Zero Clipboard]]></category>
		<category><![CDATA[兼容浏览器]]></category>
		<category><![CDATA[文本复制]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1842</guid>

					<description><![CDATA[当开发者需要对某局部文本进行点击复制效果时，在IE下实现比较简单。但要想做到跨浏览器比较困难了。Zero Cl...]]></description>
										<content:encoded><![CDATA[<p>当开发者需要对某局部文本进行点击复制效果时，在IE下实现比较简单。但要想做到跨浏览器比较困难了。Zero Clipboard 它利用 Flash 进行复制，所以只要浏览器装有 Flash 就可以运行，而且比IE的document.execCommand(&#8220;Copy&#8221;) 更加灵活。</p>
<p>Zero Clipboard 的实现原理<br />
Zero Clipboard 利用 Flash 进行复制，之前有 Clipboard Copy 解决方案，其利用的是一个隐藏的 Flash。但最新的 Flash Player 10 只允许在 Flash 上进行操作才能启动剪贴板。所以 Zero Clipboard 对此进行了改进，用了一个透明的 Flash ，让其漂浮在按钮之上，这样其实点击的不是按钮而是 Flash ，也就可以使用 Flash 的复制功能了。 <span id="more-1842"></span></p>
<p>Zero Clipboard 特点介绍：<br />
兼容支持Flash 10<br />
避免使用第三方浏览器插件（的Adobe Flash浏览器中的安全冲突）<br />
无形的覆盖，无干扰，页面设计<br />
支持CSS“悬停”和“活跃”状态<br />
保留目标元素的“点击”，&#8221;mouseenter&#8221;和&#8221;mouseleave&#8221;的事件<br />
供应回调函数“复制前”和“复制”<br />
极轻的重量！ （7KB精缩）</p>
<p>首先下载 Zero Clipboard ，并解压缩。其中需要两个文件：ZeroClipboard.js 和 ZeroClipboard.swf ，将这两个文件放入到你的项目中。<br />
点击下载：<a href="http://www.mudbest.com/jquery%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e6%96%87%e6%9c%ac%e5%a4%8d%e5%88%b6%e6%8f%92%e4%bb%b6zero-clipboard%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95/jquery-zclip-1-1-1/" rel="attachment wp-att-1844">jquery.zclip.1.1.1</a></p>
<p>用法：</p>
<p>1.) 首先引入核心文件</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.zclip.js&quot;&gt;&lt;/script&gt;
</pre>
<p>2.) 在页面代码里写入功能模块，定义copy复制按钮元素属性信息</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script language=&quot;javascript&quot;&gt;
$(document).ready(function(){

	$('a#copy-description').zclip({
		path:'js/ZeroClipboard.swf',
		copy:$('p#description').text()
	});

	// The link with ID &quot;copy-description&quot; will copy
	// the text of the paragraph with ID &quot;description&quot;


	$('a#copy-dynamic').zclip({
		path:'js/ZeroClipboard.swf',
		copy:function(){return $('input#dynamic').val();}
	});

	// The link with ID &quot;copy-dynamic&quot; will copy the current value
	// of a dynamically changing input with the ID &quot;dynamic&quot;

});
&lt;/script&gt;
</pre>
<p>例一：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;#&quot; id=&quot;copy-description&quot;&gt;点击复制效果预览&lt;/a&gt;
&lt;p id=&quot;description&quot;&gt;文本源……&lt;/p&gt;
</pre>
<p>例二：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;#&quot; id=&quot;copy-dynamic&quot;&gt;点击复制效果预览:&lt;/a&gt;&lt;input style=&quot;width:300px; margin-left:15px;&quot; type=&quot;text&quot; id=&quot;dynamic&quot; value=&quot;Insert any text here.&quot; onfocus=&quot;if(this.value=='Insert any text here.'){this.value=''}&quot; onblur=&quot;if(this.value==''){this.value='Insert any text here.'}&quot; /&gt;
</pre>
<p>3.) 供应定制的回调函数。</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script language=&quot;javascript&quot;&gt;
$(document).ready(function(){

    $(&quot;a#copy-callbacks&quot;).zclip({
        path:'js/ZeroClipboard.swf',
        copy:$('#callback-paragraph').text(),
        beforeCopy:function(){
            $('#callback-paragraph').css('background','yellow');
            $(this).css('color','orange');
        },
        afterCopy:function(){
            $('#callback-paragraph').css('background','green');
            $(this).css('color','purple');
            $(this).next('.check').show();
        }
    });

});
&lt;/script&gt;
</pre>
<p>3.) 默认参数。<br />
<a href="http://www.mudbest.com/wp-content/uploads/2013/04/111.jpg"><img fetchpriority="high" decoding="async" src="http://www.mudbest.com/wp-content/uploads/2013/04/111-540x370.jpg" alt="111" width="540" height="370" class="alignnone size-thumbnail wp-image-1850" /></a></p>
<p>扩展介绍：<br />
1.) 测试兼容IE6，IE7，IE8，FF 3.6，Chrome浏览器8，Safari 5的，歌剧11<br />
2.) 适当的CSS特效：</p>
<pre class="brush: css; title: ; notranslate">
/* zClip is a flash overlay, so it must provide */
/* the target element with &quot;hover&quot; and &quot;active&quot; classes */
/* to simulate native :hover and :active states. */
/* Be sure to write your CSS as follows for best results: */

/*大概意思就是说 ZeroClip是flash叠加……就是说flash叠加在了text文本上，其实显示文字可以根据css来定义*/
a:hover, a.hover {...}
a:active, a.active {...}
</pre>
<p>3.) ZeroClip的 显示/隐藏/移除</p>
<pre class="brush: jscript; title: ; notranslate">
$('a.copy').zclip('show'); // 启用zClip所选元素

$('a.copy').zclip('hide'); // 隐藏zClip所选元素

$('a.copy').zclip('remove'); // 删除的zClip所选元素
</pre>
<p>在线演示：<br />
1、<a href="http://help.mudbest.com/jquery/jquery_ZeroClipboard/demo1.html" target="_blank">http://help.mudbest.com/jquery/jquery_ZeroClipboard/demo1.html</a><br />
2、<a href="http://help.mudbest.com/jquery/jquery_ZeroClipboard/demo2.html" target="_blank">http://help.mudbest.com/jquery/jquery_ZeroClipboard/demo2.html</a></p>
<p>至此，该插件使用方法已经介绍结束，对于使用者的开发者来说，剩下的扩展方面就要根据需求而定了。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jquery倒计时插件Countdown timer jQuery Plugin</title>
		<link>https://www.mudbest.com/jquery%e5%80%92%e8%ae%a1%e6%97%b6%e6%8f%92%e4%bb%b6countdown-timer/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Wed, 09 Jan 2013 15:03:58 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[倒计时]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1747</guid>

					<description><![CDATA[一个项目里用到了团购倒计时，本来想用递减的方式手写一个，但是想到兼容性问题，还是用封装好的Jquery插件吧。...]]></description>
										<content:encoded><![CDATA[<p>一个项目里用到了团购倒计时，本来想用递减的方式手写一个，但是想到兼容性问题，还是用封装好的Jquery插件吧。<br />
今天在这里推荐的是“Countdown timer jQuery Plugin”，它是一个轻量级且灵活的倒计时插件，直接用实例说明吧。</p>
<p>首先包含主体的文件：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;script/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;script/jquery.jcountdown1.3.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p><span id="more-1747"></span></p>
<p>然后在模板页面加上以下JQUERY代码</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
 
    $(&quot;#time&quot;).countdown({date:&quot;july 1, 2011&quot;}); //Just date
    $(&quot;#time&quot;).countdown({date:&quot;july 1, 2011 18:00:00&quot;}); //Date and Time (in 24 hour format)
 
    //More options
    $(&quot;#time&quot;).countdown({
        date: &quot;july 1, 2011 19:24&quot;,
        onChange: function( event, timer ){
 
            /*
            Tips:
 
            event.target is DOM Element
            this is DOM element
            $(this) is jQuery Element
            timer is interval for countdown
 
            If a countdown should end early you could do:
 
            clearInterval( timer );
            $(this).trigger('complete');
            */
 
        },
        onComplete: function( event ){
 
            $(this).html(&quot;Completed&quot;);
        },
        minus: false //defaults to false anyway
        leadingZero: true
    });
});
&lt;/script&gt;
</pre>
<p>在模板里增加一个ID。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;p id=&quot;time&quot;&gt;&lt;/p&gt;
</pre>
<p>例子CSS，可忽略。</p>
<pre class="brush: css; title: ; notranslate">
p#time{
    color:#c21017;
    text-align: center;
}
p#time span{
    display:inline;
    color:#222222;
    font-size:0.8em;
}
</pre>
<p>配置里大概修改说明如下：</p>
<pre class="brush: plain; title: ; notranslate">
date: 'June 11, 2010', //Date to countdown to
 
updatetime: 1000, //Time to update timer (milliseconds)
 
//Replaces the following flags with date values
%{d} = day
%{h} = hour
%{m} = minutes
%{s} = seconds
 
//jquery.jcountdown1.3.js 主要修改在这里
htmlTemplate: &quot;%{d} &lt;span class=&quot;small&quot;&gt;days&lt;/span&gt; %{h} &lt;span class=&quot;small&quot;&gt;hours&lt;/span&gt; %{m} &lt;span class=&quot;small&quot;&gt;mins&lt;/span&gt; %{s} &lt;span class=&quot;small&quot;&gt;sec&lt;/span&gt;&quot;
 
//If countdown timer should go into minus values instead of 00:00:00:00 when countdown time has passed
minus: false
 
//Gets called each time the countdown timer updates
//Can access element with countdown timer on it, as well as the timer interval itself
onChange: function( event, timer ){}
 
//Gets called when countdown completes
onComplete: function( event ){} //Can access element with countdown timer on it
 
//Whether time should have a leading zero e.g 02 days 01 hours 09 seconds
leadingZero: falsecountdown1.3
</pre>
<p>JS时间处理部分代码一并带出：</p>
<pre class="brush: jscript; title: ; notranslate">
var date = new Date();

//时间格式替换修改
var str = '2008-10-09 21:35:28';//PHP中对应的UNIX时间戳为1223559328
var new_str = str.replace(/:/g,'-');
new_str = new_str.replace(/ /g,'-');
var arr = new_str.split(&quot;-&quot;);
var datum = new Date(Date.UTC(arr&#x5B;0],arr&#x5B;1]-1,arr&#x5B;2],arr&#x5B;3]-8,arr&#x5B;4],arr&#x5B;5]));

//转换为英文时间格式
var dt = new Date();
var m=new Array(&quot;&quot;,&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Spt&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;);
var w=new Array(&quot;Monday&quot;,&quot;Tuseday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;,&quot;Sunday&quot;);
var d=new Array(&quot;st&quot;,&quot;nd&quot;,&quot;rd&quot;,&quot;th&quot;);
mn=date.getMonth();
wn=date.getDay();
dn=date.getDate();

var dns;
if(((dn%10)&lt;1) ||((dn%10)&gt;3)){
	dns=d&#x5B;3];
}else{
	dns=d&#x5B;(dn%10)-1];
	if((dn==11)||(dn==12)){
	dns=d&#x5B;3];
	}
}
document.write(&quot;&lt;hr&gt;&quot;+m&#x5B;mn]+&quot; &quot;+dn+dns+&quot; &quot; +w&#x5B;wn-1]+&quot; &quot;+dt.getFullYear()+&quot;&lt;hr&gt;&quot;);
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jquery的idTabs使用</title>
		<link>https://www.mudbest.com/jquery%e7%9a%84idtabs%e4%bd%bf%e7%94%a8/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 11:19:47 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[idTabs]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[选项卡]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1725</guid>

					<description><![CDATA[idTabs是基于JQUERY编写封装的一个插件，主要用于选项卡的实现。今天正碰到一个需求，这时候开始用到它了...]]></description>
										<content:encoded><![CDATA[<p>idTabs是基于JQUERY编写封装的一个插件，主要用于选项卡的实现。今天正碰到一个需求，这时候开始用到它了。</p>
<p>首先需要在HTML页面加载JQEURY和idTabs的库。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://img3.tieyou.com/js/jquery.idTabs.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>如果你细心的话，打开jquery.idTabs.min.js后你会发现在<span id="more-1725"></span>里面已经加载了JQUERY的latest类库了，这说明，这个插件是基于JQUERY的latest库编写的，如果使用就要引用<br />
jquery-latest.min.js这个类库了，不过idTabs已经帮你引用进来了。</p>
<p>idTabs使用基本介绍如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul class=&quot;idTabs&quot;&gt; 
  &lt;li&gt;&lt;a href=&quot;#jquery&quot;&gt;jQuery&lt;/a&gt;&lt;/li&gt; 
  &lt;li&gt;&lt;a href=&quot;#official&quot;&gt;Tabs 3&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;div id=&quot;jquery&quot;&gt;If you haven't checked out ...&lt;/div&gt; 
&lt;div id=&quot;official&quot;&gt;idTabs is only a simple ...&lt;/div&gt;
</pre>
<p>通常的使用方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;usual1&quot; class=&quot;usual&quot;&gt; 
  &lt;ul&gt; 
    &lt;li&gt;&lt;a class=&quot;selected&quot; href=&quot;#tab1&quot;&gt;Tab 1&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#tab2&quot;&gt;Tab 2&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#tab3&quot;&gt;Tab 3&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; 
  &lt;div id=&quot;tab1&quot;&gt;This is tab 1.&lt;/div&gt; 
  &lt;div id=&quot;tab2&quot;&gt;More content in tab 2.&lt;/div&gt; 
  &lt;div id=&quot;tab3&quot;&gt;Tab 3 is always last!&lt;/div&gt; 
&lt;/div&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  $(&quot;#usual1 ul&quot;).idTabs(); 
&lt;/script&gt;
</pre>
<p>选择默认选项卡的示例如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;usual2&quot; class=&quot;usual&quot;&gt; 
  &lt;ul&gt; 
    &lt;li&gt;&lt;a href=&quot;#tabs1&quot;&gt;Tab 1&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a class=&quot;selected&quot; href=&quot;#tabs2&quot;&gt;Tab 2&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#tabs3&quot;&gt;Tab 3&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; 
  &lt;div id=&quot;tabs1&quot;&gt;This is tab 1.&lt;/div&gt; 
  &lt;div id=&quot;tabs2&quot;&gt;More content in tab 2.&lt;/div&gt; 
  &lt;div id=&quot;tabs3&quot;&gt;Tab 3 is always last!&lt;/div&gt; 
&lt;/div&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  $(&quot;#usual2 ul&quot;).idTabs(&quot;tabs2&quot;); 
&lt;/script&gt;
</pre>
<p>更自由的使用方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul id=&quot;freedom&quot; class=&quot;idTabs&quot;&gt; 
  &lt;li&gt;Freedom&lt;/li&gt; 
  &lt;li&gt;&lt;a class=&quot;selected&quot; href=&quot;#one&quot;&gt;First&lt;/a&gt;&lt;/li&gt; 
  &lt;li&gt;&lt;a href=&quot;#two&quot;&gt;Second&lt;/a&gt;&lt;/li&gt; 
  &lt;li&gt;&lt;a href=&quot;#three&quot;&gt;Third&lt;/a&gt;&lt;/li&gt; 
  &lt;li&gt;&lt;a href=&quot;#four&quot;&gt;Fourth&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
 
&lt;div class=&quot;tabContainer&quot;&gt; 
  &lt;h3&gt;Tab Container&lt;/h3&gt; 
  &lt;p id=&quot;one&quot;&gt;This is my first tab.&lt;/p&gt; 
  &lt;p id=&quot;two&quot;&gt;This is my second tab.&lt;/p&gt; 
&lt;/div&gt; 
 
&lt;img id=&quot;three&quot; src=&quot;jquery_logo.gif&quot; alt=&quot;Even images can be a tab&quot;&gt; 
 
&lt;span id=&quot;four&quot;&gt;Message four over here!&lt;/span&gt;
</pre>
<p>打破传统的列表的方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;imagebox idTabs&quot;&gt; 
  &lt;a class=&quot;selected&quot; href=&quot;#img1&quot;&gt;1&lt;/a&gt; 
  &lt;a href=&quot;#img2&quot;&gt;2&lt;/a&gt; 
  &lt;a href=&quot;#img3&quot;&gt;3&lt;/a&gt; 
  &lt;a href=&quot;#img4&quot;&gt;4&lt;/a&gt; 
  &lt;img id=&quot;img1&quot; src=&quot;http://www.sunsean.com/images/symbol/_brace.png&quot;&gt; 
  &lt;img id=&quot;img2&quot; src=&quot;http://www.sunsean.com/images/symbol/_lambda.png&quot;&gt; 
  &lt;img id=&quot;img3&quot; src=&quot;http://www.sunsean.com/images/symbol/_beta.png&quot;&gt; 
  &lt;img id=&quot;img4&quot; src=&quot;http://www.sunsean.com/images/symbol/_paren.png&quot;&gt; 
&lt;/div&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  $(&quot;.imagebox&quot;).idTabs(&quot;!mouseover&quot;); 
&lt;/script&gt;
</pre>
<p>带参数和URL的changing方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;adv1&quot; class=&quot;usual&quot;&gt; 
  &lt;ul&gt; 
    &lt;li&gt;&lt;a href=&quot;#t1&quot;&gt;Tab 1&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a class=&quot;selected&quot; href=&quot;#t2&quot;&gt;Tab 2&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#t3&quot;&gt;Tab 3&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; 
  &lt;div id=&quot;t1&quot;&gt;This is tab 1.&lt;/div&gt; 
  &lt;div id=&quot;t2&quot;&gt;More content in tab 2.&lt;/div&gt; 
  &lt;div id=&quot;t3&quot;&gt;Tab 3 is always last!&lt;/div&gt; 
&lt;/div&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  var settings = { start:1, change:false }; 
  $(&quot;#adv1 ul&quot;).idTabs(settings,true); 
&lt;/script&gt;
</pre>
<p>带渐隐效果的方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;adv2&quot;&gt; 
  &lt;ul&gt; 
    &lt;li&gt;&lt;a class=&quot;selected&quot; href=&quot;#ani1&quot;&gt;1&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#ani2&quot;&gt;2&lt;/a&gt;&lt;/li&gt; 
    &lt;li class=&quot;split&quot;&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#ani3&quot;&gt;3&lt;/a&gt;&lt;/li&gt; 
    &lt;li&gt;&lt;a href=&quot;#ani4&quot;&gt;4&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; 
  &lt;span&gt; 
    &lt;p style=&quot;display: block; opacity: 0.266035;&quot; id=&quot;ani1&quot;&gt;Click on the tabs to see a nice fade.&lt;/p&gt; 
    &lt;p id=&quot;ani2&quot;&gt;You're not impressed?&lt;/p&gt; 
    &lt;p id=&quot;ani3&quot;&gt;But it's so cool... in a nerdy way.&lt;/p&gt; 
    &lt;p id=&quot;ani4&quot;&gt;Download idTabs and have your cake. You can eat it too.&lt;/p&gt; 
  &lt;/span&gt; 
&lt;/div&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  $(&quot;#adv2&quot;).idTabs(function(id,list,set){ 
    $(&quot;a&quot;,set).removeClass(&quot;selected&quot;) 
    .filter(&quot;&#x5B;href='&quot;+id+&quot;']&quot;,set).addClass(&quot;selected&quot;); 
    for(i in list) 
      $(list&#x5B;i]).hide(); 
    $(id).fadeIn(); 
    return false; 
  }); 
&lt;/script&gt;
</pre>
<p>自定义功能的方法如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;span id=&quot;adv3&quot;&gt; 
  &lt;a class=&quot;selected&quot; href=&quot;#cake&quot;&gt;Cake&lt;/a&gt; vs &lt;a href=&quot;#pie&quot;&gt;Pie&lt;/a&gt; 
  &lt;p id=&quot;cake&quot;&gt;Cake is great&lt;/p&gt; 
  &lt;p id=&quot;pie&quot;&gt;So is pie&lt;/p&gt; 
  &lt;div id=&quot;message&quot;&gt;It's so delicous and moist!&lt;/div&gt; 
&lt;/span&gt; 
 
&lt;script type=&quot;text/javascript&quot;&gt; 
  $(&quot;#adv3&quot;).idTabs(function(id){ 
    switch(id){ 
      case &quot;#cake&quot;: $(&quot;#message&quot;).html(&quot;It's so delicous and moist!&quot;); break; 
      case &quot;#pie&quot;:  $(&quot;#message&quot;).html(&quot;Just the way mom makes it.&quot;); break; 
    } return true; 
  }); 
&lt;/script&gt;
</pre>
<p>以上idTabs官方的使用方法都已列出。</p>
<p>以下是今天需求所编写的：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;idTableAjax&quot;&gt;
&lt;div class=&quot;NavBox&quot;&gt;
	&lt;ul class=&quot;idTabs&quot;&gt;
    	&lt;li&gt;&lt;a href=&quot;#shanghai&quot; class=&quot;selected&quot;&gt;上海&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#beijing&quot;&gt;北京&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#tianjing&quot;&gt;天津&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#guangzhou&quot;&gt;广州&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#shenzhen&quot;&gt;深圳&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#nanjing&quot;&gt;南京&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#suzhou&quot;&gt;苏州&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#hangzhou&quot;&gt;杭州&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#wuxi&quot;&gt;无锡&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#wuhan&quot;&gt;武汉&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#changsha&quot;&gt;长沙&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#qingdao&quot;&gt;青岛&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#jinan&quot;&gt;济南&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#chongqing&quot;&gt;重庆&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#chengdu&quot;&gt;成都&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#xian&quot;&gt;西安&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#xiamen&quot;&gt;厦门&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#hainan&quot;&gt;海南&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#dalian&quot;&gt;大连&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#zhengzhou&quot;&gt;郑州&lt;/a&gt;&lt;/li&gt;
    	&lt;li&gt;&lt;a href=&quot;#shenan&quot;&gt;沈阳&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;wrap&quot;&gt;

    &lt;div id=&quot;shanghai&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;beijing&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;tianjing&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;guangzhou&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;shenzhen&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;nanjing&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;suzhou&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;hangzhou&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;wuxi&quot;&gt;&lt;/div&gt;
    
 	&lt;div id=&quot;wuhan&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;changsha&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;qingdao&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;jinan&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;chongqing&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;chengdu&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;xian&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;xiamen&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;hainan&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;dalian&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;zhengzhou&quot;&gt;&lt;/div&gt;
    
    &lt;div id=&quot;shenan&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
/**
* str 城市名
* type 类型
*/
function tableAjax(str,htmlId,message,type){
	var params = {};
	params&#x5B;'cityname'] = str;
	if(str == ''){
		return ;
	}
	
	$.ajax({
		url:&quot;http://www.tieyou.com/index.php?param=/ajax/complexHotelSpecial&quot;,//AJAX地址
		type:'get',//提交方式
		dataType:'html', //返回数据格式
		data:params,//参数以及值
		timeout:1000, //超时时间
		beforeSend:function(){
			$('#'+htmlId).html(message);
			//表单提交的过程，加载中....	
		},

		success:function(data){
			$('#'+htmlId).html(data);
			//$('#beijing').html(data);
		},
		error:function(data) {
			//错误事件处理
		},
		complete:function(data) {
			//最后相应事件处理
		}		
		});
}

//根据点击的事件自动加载对应的AJAX
  $(&quot;#idTableAjax&quot;).idTabs(function(id,list,set){ 
	if(id != ''){
		//正则匹配id
		var reg = new RegExp(/^#(.*?)$/gi);
		//获取id
		if(reg.test(id))
		{
			//获取html值
			var str = this.innerHTML;
			//获取过滤后的ID参数
			var htmlId = RegExp.$1;
			//设定message状态文本
		
			//判断是否存在这个ID
			if(htmlId != '' &amp;&amp; str != ''){
				//alert(htmlId);
				tableAjax(str,htmlId);
			}
		} 	
	}
 
    $(&quot;a&quot;,set).removeClass(&quot;selected&quot;) 
    .filter(&quot;&#x5B;href='&quot;+id+&quot;']&quot;,set).addClass(&quot;selected&quot;); 
	
    for(i in list){
		//由于正则替换后，原来的选项卡数组里会产生&quot;#&quot;这样的字符串，过滤掉这些字符串
		if(list&#x5B;i] != &quot;#&quot;){
			//console.log(list);
			$(list&#x5B;i]).hide();
		}
	}
    $(id).fadeIn(); 
    return false; 
  }); 
&lt;/script&gt;
</pre>
<p>到此结束。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>jquery解决AJAX跨域问题</title>
		<link>https://www.mudbest.com/jquery%e8%a7%a3%e5%86%b3ajax%e8%b7%a8%e5%9f%9f%e9%97%ae%e9%a2%98/</link>
					<comments>https://www.mudbest.com/jquery%e8%a7%a3%e5%86%b3ajax%e8%b7%a8%e5%9f%9f%e9%97%ae%e9%a2%98/#comments</comments>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Fri, 23 Nov 2012 08:04:55 +0000</pubDate>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[跨域]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1706</guid>

					<description><![CDATA[以PHP服务端为例。 页面ajax.php &#60;?php //首先定义一个全局变量用于AJAX跨域返回值获...]]></description>
										<content:encoded><![CDATA[<p>以PHP服务端为例。</p>
<p>页面ajax.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
//首先定义一个全局变量用于AJAX跨域返回值获取
$strJsonCallBack = $_REQUEST&#x5B;&quot;jsoncallback&quot;];
//定义一个测试数组
array&#x5B;'data'] = array('测试','再测试');
//再将数组进行JSON格式化，并在最前面加上刚刚定义的AJAX跨域返回值的标示
echo $strJsonCallBack.&quot;(&quot;.json_encode(array&#x5B;'data']).&quot;)&quot;;
exit;
?&gt;
</pre>
<p><span id="more-1706"></span><br />
页面index.html</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!--引入Jquery--&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
//访问JSON服务端返回值
var url = 'http://www.mudbest.com/ajax.php'; 
//&amp;jsoncallback用于跨域获取的标示
$.getJSON(url+'&amp;jsoncallback=?', {},function(data){
        //获取返回的JSON字符串
        data = data.data;
  }
);
&lt;/script&gt;
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mudbest.com/jquery%e8%a7%a3%e5%86%b3ajax%e8%b7%a8%e5%9f%9f%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>JQuery的Alert插件</title>
		<link>https://www.mudbest.com/jquery%e7%9a%84alert%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Tue, 13 Mar 2012 09:38:04 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[jquery-alert]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=924</guid>

					<description><![CDATA[使用它可以用来替换JScript中的alert,confirm,prompt &#60;!-- Dependen...]]></description>
										<content:encoded><![CDATA[<p>使用它可以用来替换JScript中的alert,confirm,prompt</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;!-- Dependencies --&gt;
&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.ui.draggable.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;!-- Core files --&gt;
&lt;script src=&quot;jquery.alerts.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;jquery.alerts.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
</pre>
<p>注意其中jquery.ui.draggable.js是用来实现拖拉的，如不需要这个功能不就不用引用。在目前最近的Jquery1.42下应用引用：<span id="more-924"></span></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script src=&quot;Scripts/jquery-1.4.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;Scripts/jquery-ui-1.8.5.custom.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;Scripts/jquery.alerts.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;   
&lt;link href=&quot;Content/Style/jquery.alerts.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
</pre>
<p>主要方法有</p>
<p>jAlert(message, [title, callback]) 创建一个alert<br />
jConfirm(message, [title, callback]) 创建一个确认allert,支持callback<br />
jPrompt(message, [value, title, callback]) 创建一个提示框让用户输入值，支持callback如果你有提供</p>
<p>今天所用到的CODE：</p>
<p>JS部分</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;title&gt;test&lt;/title&gt;
&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.ui.draggable.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.alerts.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;jquery.alerts.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
     $(document).ready(function () {
        
		 $(&quot;#btnAlert&quot;).click(function ()
           { jAlert('Pushed the alert button', 'Alert Dialog'); });
        
		
		 $(&quot;#btnPrompt&quot;).click(function () {
            jPrompt('Type some value:', '', 'Prompt Dialog', function (typedValue) {
                  if (typedValue) {
                      jAlert('You typed the following ' + typedValue);
                   }
             });
			 
         });
		 
	$(&quot;#confirm_button&quot;).click( function() {
		jConfirm('上传完成，是否继续上传', '操作提示', function(r) {
			if (r==false){
				jAlert('请完善文档相关资料', '操作提示',function(s) {
					if (s==true){
					top.location = &quot;/Member-Users-Mydoc-T-C.html&quot;;
					}
				})
			}
		});
	});
});   
	  
&lt;/script&gt;
&lt;/head&gt;
</pre>
<p>HTML部分：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;body&gt;
&lt;div&gt;
&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
&lt;input type=&quot;button&quot; value=&quot;Alert Me&quot; id=&quot;btnAlert&quot; /&gt;
&lt;input type=&quot;button&quot; value=&quot;Prompt Me&quot; id=&quot;btnPrompt&quot; /&gt;
&lt;input type=&quot;button&quot; value=&quot;Pss&quot; id=&quot;confirm_button&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>有3个范例，其中一个alert效果图如下：</p>
<p><a href="http://www.mudbest.com/924.action/alert3" rel="attachment wp-att-925"><img decoding="async" src="http://www.mudbest.com/wp-content/uploads/2012/03/alert3.jpg" target="__blank" alt="" title="alert3" width="337" height="129" class="alignnone size-full wp-image-925" /></a></p>
<p>实例demo:<br />
http://help.mudbest.com/jquery/jquery-alert/index_demo1.html<br />
http://help.mudbest.com/jquery/jquery-alert/index_demo2.html</p>
<p>插件完整包：<br />
<a href='http://www.mudbest.com/924.action/jquery-alert' rel='attachment wp-att-932' target="__blank">jquery-alert</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jquery表单验证插件–Validform</title>
		<link>https://www.mudbest.com/jquery%e8%a1%a8%e5%8d%95%e9%aa%8c%e8%af%81%e6%8f%92%e4%bb%b6%e2%80%93validform/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Fri, 12 Aug 2011 10:15:24 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[表单验证]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=743</guid>

					<description><![CDATA[$(&#34;.demoform&#34;).Validform(); 插件的核心思想就是把所有的验证条件...]]></description>
										<content:encoded><![CDATA[<pre class="brush: jscript; title: ; notranslate">
$(&quot;.demoform&quot;).Validform();
</pre>
<p><a href="http://www.mudbest.com/743.action/webformvalidater_demo" rel="attachment wp-att-745"><img decoding="async" src="http://www.mudbest.com/wp-content/uploads/2011/08/webformvalidater_demo-469x430.png" alt="" title="webformvalidater_demo" width="469" height="430" class="alignnone size-medium wp-image-745" srcset="https://www.mudbest.com/wp-content/uploads/2011/08/webformvalidater_demo-469x430.png 469w, https://www.mudbest.com/wp-content/uploads/2011/08/webformvalidater_demo.png 520w" sizes="(max-width: 469px) 100vw, 469px" /></a></p>
<p>插件的核心思想就是把所有的验证条件及验证提示信息绑定到每个表单元素，让验证代码在执行时只是核对表单下各元素的值是否跟绑定的验证条件相符，这样你可以随便添加或者去掉任一表单元素而不必修改验证代码，从而使仅用一行代码去搞定整站的表单验证的梦想成为现实！</p>
<p>功能介绍：<br />
1、支持一个页面多表单的检测。例如你给页面上的各form绑定同样的class名称“demoform”，只需在页面上写上一句 $(“.demoform”).Validform()，各表单便会独立检测；<br />
2、两种信息提示效果，一个是元素右侧出现提示信息，一个是弹出信息框。另外还附加了$.Showmsg()、$.Hidemsg()全局弹出/关闭信息框方法以便整站有一个统一的信息提示效果；<br />
3、指定表单下任一元素在单击时触发表单提交事件；<br />
4、支持ajax提交表单数据，也支持ajax实时反馈验证结果（如常见的用户注册表单下的用户名检测）；<br />
5、支持开启网速慢时的二次提交防御（有时连续的点击提交表单按钮会产生多次的表单提交结果）；<br />
6、可检测多个文本框内容是否一致（例如常见的两次密码输入确认）；<br />
7、囊括11种常见的格式验证形式。<br />
<span id="more-743"></span><br />
使用方法：</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;.demoform&quot;).Validform({//指定具体参数，实现更多功能;
	btnSubmit:&quot;.btn_sub&quot;,
	tiptype:2,
	postonce:true,
	ajaxurl:&quot;ajax_post.php&quot;,
        callback:function(data){            
            //这里执行回调操作;
        }
});
</pre>
<p>参数说明： 【所有参数均为可选项】<br />
○ 必须是表单对象执行Validform方法，示例中“.demoform”就是绑定在form元素上的class名称；<br />
○ btnSubmit：指定表单下的哪一个按钮触发表单提交事件，如果表单下有submit按钮可以省略。示例中“.btn_sub”是该表单下要绑定点击提交表单事件的按钮，程序会在btnSubmit所在表单下查找该对象;<br />
○ tiptype：指定提示效果，可选值 1 | 2, 默认为1。 1=>弹出提示框,2=>表单元素右侧提示；<br />
○ postonce：指定是否开启网速慢时的二次提交防御，true开启，不指定则默认关闭；<br />
○ ajaxurl：指定处理ajax表单数据的后台文件，注意处理完数据输出相应反馈信息，这个页面输出的内容就是表单提交后前台页面所看到的反馈信息。<br />
○ callback：在使用ajax提交表单数据时，数据提交后的回调函数。返回数据data是json格式，{“info”:”demo info”,”status”:”y”}，info: 输出提示信息，status: 返回提交数据的状态,是否提交成功，如可以用”y”表示提交成功，”n”表示提交失败，在ajax_post.php文件返回数据里自定字符，主要用在callback函数里根据该值执行相应的回调操作。你也可以在ajax_post.php文件返回更多信息在这里获取，进行相应操作；</p>
<p><strong>怎样给表单元素绑定验证类型？</strong></p>
<p>示例代码：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!--ajax实时验证用户名--&gt;
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;name&quot; datatype=&quot;s5-16&quot; ajaxurl=&quot;valid.php&quot; nullmsg=&quot;请输入用户名！&quot; errormsg=&quot;昵称至少5个字符,最多16个字符！&quot; /&gt;
 
&lt;!--密码--&gt;
&lt;input type=&quot;password&quot; value=&quot;&quot; name=&quot;userpassword&quot; datatype=&quot;*6-15&quot; errormsg=&quot;密码范围在6~15位之间,不能使用空格！&quot; /&gt;
&lt;!--确认密码--&gt;
&lt;input type=&quot;password&quot; value=&quot;&quot; name=&quot;userpassword2&quot; datatype=&quot;*&quot; recheck=&quot;userpassword&quot; errormsg=&quot;您两次输入的账号密码不一致！&quot; /&gt;
 
&lt;!--默认提示文字--&gt;
&lt;textarea tip=&quot;请在这里输入您的意见。&quot; errormsg=&quot;很感谢您花费宝贵时间给我们提供反馈，请填写有效内容！&quot;  datatype=&quot;s&quot; altercss=&quot;gray&quot; class=&quot;gray&quot; name=&quot;msg&quot; value=&quot;&quot;&gt;请在这里输入您的意见。&lt;/textarea&gt;
 
&lt;!--单选按钮--&gt;
&lt;input type=&quot;radio&quot; value=&quot;1&quot; name=&quot;gender&quot; id=&quot;male&quot; datatype=&quot;radio&quot; errormsg=&quot;请选择性别！&quot; /&gt;&lt;label for=&quot;male&quot;&gt;男&lt;/label&gt;
&lt;input type=&quot;radio&quot; value=&quot;2&quot; name=&quot;gender&quot; id=&quot;female&quot; /&gt;&lt;label for=&quot;female&quot;&gt;女&lt;/label&gt;
 
&lt;!--复选框--&gt;
&lt;input name=&quot;shoppingsite2&quot; id=&quot;shoppingsite21&quot; type=&quot;checkbox&quot;  value=&quot;1&quot; datatype=&quot;checkbox&quot; errormsg=&quot;请选择您常去的购物网站！&quot; /&gt;&lt;label for=&quot;shoppingsite21&quot;&gt;淘宝网&lt;/label&gt;
&lt;input name=&quot;shoppingsite2&quot; id=&quot;shoppingsite22&quot; type=&quot;checkbox&quot;  value=&quot;2&quot; /&gt;&lt;label for=&quot;shoppingsite22&quot;&gt;当当网&lt;/label&gt;
 
&lt;!--下拉框--&gt;
&lt;select name=&quot;province&quot; id=&quot;province&quot; datatype=&quot;select&quot; errormsg=&quot;请选择省份！&quot; &gt;&lt;option value=&quot;&quot;&gt;--请选择省份--&lt;/option&gt;&lt;option value=&quot;1&quot;&gt;江西省&lt;/option&gt;&lt;/select&gt;
</pre>
<p><strong>说明：</strong></p>
<p>凡要验证格式的元素均需添加datatype属性，datatype可选值目前有11类，用来指定不同的验证格式【如果还不能满足您的验证需求，可以自行在regcheck方法中添加】。</p>
<p><strong>datatype</strong>：* | *6-16 | n | s | s6-18 | p | m | e | radio | checkbox | select<br />
*：检测是否有输入，可以输入任何字符，不留空即可通过验证；<br />
*6-16：检测是否为6到16位任意字符；<br />
n：数字类型；<br />
s：字符串类型；<br />
s6-18：6到18位字符串；<br />
p：验证是否为邮政编码；<br />
m：手机号码格式；<br />
e：email格式；<br />
radio：如果要验证的元素为单选框，datatype设置为radio；<br />
checkbox：如果要验证的元素为复选框，datatype设置为checkbox；<br />
select：如果要验证的元素为下拉框，datatype设置为select。</p>
<p><em>注意：radio，checkbox，select的value值为空时不能通过检测，要非空值才能通过。radio和checkbox元素只需给该组的第一个元素绑定datatype属性即可，请参看上面的示例代码。</em></p>
<p><strong>其他的附加属性：</strong></p>
<p>nullmsg：是指定没有填入内容时出现的提示信息，不指定默认是“请填入信息！”，另外当datatype为radio、checkbox或select时，因为这三种类型只要为空值就表示出错，提示errormsg所指定信息，所以这三类不需要绑定该属性；<br />
errormsg：是指定验证格式不符时出现的提示信息，不指定默认是“请输入正确信息！”；<br />
recheck：是用来指定两个表单元素值一致性检测的另外一个对象，赋给它另外一个对象的name属性值即可；<br />
tip：是指定表单元素的提示信息;指定后该元素会有focus时提示信息消去，没有输入内容blur时出现提示信息的效果，请参看demo页的“备注”效果；<br />
altercss：是指定有tip属性的元素默认提示文字显示时的样式，当该元素focus时程序会把这个样式去掉，blur时如果值为空或者跟提示文字一样则再加上该样式；<br />
ajaxurl：指定ajax实时验证的后台文件路径，给需要后台数据库验证信息的对象绑定该属性。注意该文件输出的内容就是前台显示的验证出错的反馈信息，<em>如果验证通过请输出小写字母”y”。</em></p>
<p>演示地址：<a href='http://help.mudbest.com/jquery/20110812/2/' target='_black'>Validform-beta3.0演示</a><br />
下载地址：<a href='http://www.mudbest.com/743.action/validform-beta3-0' rel='attachment wp-att-747'>Validform-beta3.0下载</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jquery水平滚动条插件</title>
		<link>https://www.mudbest.com/jquery%e6%b0%b4%e5%b9%b3%e6%bb%9a%e5%8a%a8%e6%9d%a1%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Fri, 12 Aug 2011 09:24:23 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[水平滚动条]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=731</guid>

					<description><![CDATA[可以实现滑动、鼠标拖动、滑轮滚动等多种效果！最少仅需传入一个参数： $(&#34;.container&#038;qu...]]></description>
										<content:encoded><![CDATA[<p>可以实现滑动、鼠标拖动、滑轮滚动等多种效果！最少仅需传入一个参数：</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;.container&quot;).hScrollPane({
	mover:&quot;.press&quot;
});
</pre>
<p>功能介绍：<br />
1、支持滚动内容时的滑动效果；<br />
2、支持鼠标拖动效果及滑轮滚动效果；<br />
3、拖动滚动条时可选择变换样式，实现高仿真滚动条效果；<br />
4、可限定滚动条的最小宽度，默认滚动条宽度适应滚动内容的长短；<br />
5、支持是否显示左右箭头。<br />
<span id="more-731"></span><br />
使用方法:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;.container&quot;).hScrollPane({
	mover:&quot;.press&quot;, //必需项;
	moverW:function(){return $(&quot;.press&quot;).width();}(),
	handleMinWidth:300, 
	showArrow:true, 
	dragable:false, 
	handleCssAlter:&quot;draghandlealter&quot;,
	easing:true,
	mousewheel:{bind:true,moveLength:500} 
});
</pre>
<p>参数说明：<br />
○ “.container”是需要添加滚动条的对象，该对象要包含一个被移动的对象。滚动条会append到该对象后面。如下面的html结构：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;container&quot;&gt;
	&lt;div class=&quot;press&quot;&gt;
             &lt;p&gt;致力于提供专业的各类网站开发服务；极富视觉享受的平面及动画设计制作服务；高效益的网站重构服务。我们是一群追求技术创造价值的青年，有着丰富的行业经验。&lt;/p&gt;
        &lt;/div&gt;
        &lt;!--滚动条会append到这里--&gt;
&lt;/div&gt;
</pre>
<p>“.container”的position需要设置为relative或absolute；“.press”是被移动的对象，他的position属性需设置为absolute，因为脚本需要通过改变它的left值来实现内容滚动效果。给“.container”绑定脚本后，页面上所有的“.container”对象都能实现滚动条效果；<br />
○ mover：必需项。指定container对象下的哪个元素需要滚动位置；<br />
○ moverW：可选项。传入水平滚动对象的长度值，不传入的话默认直接获取mover的宽度值。对于滚动对象为li列表，而li又设置了margin-right值，要让滚动条滚动到最后时不出现多于的空白，可以指定该值，具体示例请参看demo页中的最后一个示例；<br />
○ handleMinWidth：可选项。指定滚动条的最小宽度,要固定滚动条的宽度请在css中设定滚动条的width值（如width:28px!important;），不传入则不设定最小宽度，默认滚动条宽度是根据滚动内容的长短计算；<br />
○ showArrow：可选项。指定是否显示左右箭头，默认不显示 ；<br />
○ dragable：可选项。指定是否要支持拖动效果，默认拖动内容对象有滚动效果；<br />
○ handleCssAlter：可选项。传入拖动鼠标时要给滚动条添加的class名，不传入该参数则滚动条不会有变化效果；<br />
○ easing：可选项。滚动内容时是否需要滑动效果,默认有滑动效果；<br />
○ mousewheel：可选项。mousewheel: bind->’true’,绑定mousewheel事件; ->’false’,不绑定mousewheel事件；moveLength是指定鼠标滚动一次移动的距离,默认值：{bind:true,moveLength:300}，例如想改变每次滑轮滑动内容移动的距离，该参数可以这样写：mousewheel:{moveLength:600}，注意该值也是点击drag bar时内容的移动距离；</p>
<p>演示地址：<a href='http://help.mudbest.com/jquery/20110812/1/' target='_black'>Jquery水平滚动演示</a><br />
下载地址：<a href='http://www.mudbest.com/731.action/hscrollpane' rel='attachment wp-att-734'>Jquery水平滚动下载</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
