<?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>网站前端,web前端,前端脚本,前端优化&#124;时代前端 &#187; 不规则</title>
	<atom:link href="http://www.52shidai.com/tag/%e4%b8%8d%e8%a7%84%e5%88%99/feed" rel="self" type="application/rss+xml" />
	<link>http://www.52shidai.com</link>
	<description>网站前端研究中心</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:36:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>不规则的Tab标签切换-JavaScript</title>
		<link>http://www.52shidai.com/javascript/577.html</link>
		<comments>http://www.52shidai.com/javascript/577.html#comments</comments>
		<pubDate>Thu, 22 Jul 2010 06:15:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tab标签]]></category>
		<category><![CDATA[不规则]]></category>

		<guid isPermaLink="false">http://www.52shidai.com/?p=577</guid>
		<description><![CDATA[如上图样式的JavaScript+CSS实现的不规则Tab标签切换效果，非常实用，调用简单。 javascript代码： &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;JavaScript实现的不规则的Tab标签切换 - 时代前端 52shidai.com&#60;/title&#62; &#60;meta name=&#34;Copyright&#34; content=&#34;JavaScript分享网 http://www.52shidai.com/&#34; /&#62; &#60;meta name=&#34;description&#34; content=&#34;JavaScript实现的不规则的Tab标签切换,JavaScript分享网&#34; /&#62; &#60;meta content=&#34;JavaScript,分享,JavaScript代码,Ajax&#34; name=&#34;keywords&#34; /&#62; &#60;style type=&#34;text/css&#34;&#62; &#60;!-- body,td{font-size: 12px;} .tab{margin-top:100px} #TabTab03Con1{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;} #TabTab03Con2{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;} [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.sharejs.com/code/table/tab2/demo.jpg" title="JavaScript实现的不规则的Tab标签切换" class="alignnone" width="364" height="147" /></p>
<p>
如上图样式的JavaScript+CSS实现的<span class='wp_keywordlink_affiliate'><a href="http://www.52shidai.com/tag/%e4%b8%8d%e8%a7%84%e5%88%99" title="查看 不规则 中的全部文章" target="_blank">不规则</a></span><span class='wp_keywordlink_affiliate'><a href="http://www.52shidai.com/tag/tab%e6%a0%87%e7%ad%be" title="查看 Tab标签 中的全部文章" target="_blank">Tab标签</a></span>切换效果，非常实用，调用简单。
</p>
<p>javascript代码：</p>
<div class="runcode">
<p><textarea name="runcode" style="height:300px;width:620px;font-size:12px" class="runcode_text" id="runcode_F9Nr2e">
&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;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;JavaScript实现的不规则的Tab标签切换 - 时代前端 52shidai.com&lt;/title&gt;
&lt;meta name=&quot;Copyright&quot; content=&quot;JavaScript分享网 http://www.52shidai.com/&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;JavaScript实现的不规则的Tab标签切换,JavaScript分享网&quot; /&gt;
&lt;meta content=&quot;JavaScript,分享,JavaScript代码,Ajax&quot; name=&quot;keywords&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
body,td{font-size: 12px;}
.tab{margin-top:100px}
#TabTab03Con1{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}
#TabTab03Con2{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}
#TabTab03Con3{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}
.xixi1{width:346px;height:27px;line-height:27px;background-image:url(http://www.sharejs.com/code/table/tab2/images/01.jpg);cursor:pointer;}
.xixi2{width:346px;height:27px;line-height:27px;background-image:url(http://www.sharejs.com/code/table/tab2/images/02.jpg);cursor:pointer;}
.xixi3{width:346px;height:27px;line-height:27px;background-image:url(http://www.sharejs.com/code/table/tab2/images/03.jpg);cursor:pointer;}
.tab1{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;}
.tab2{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;color:#FFFFFF;}
.tab3{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;color:#FFFFFF;}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body style=&quot;text-align:center&quot;&gt;
&lt;script type=text/javascript&gt;
	function setTab03Syn ( i )
	{
		selectTab03Syn(i);
	}
	function selectTab03Syn ( i )
	{
		switch(i){
			case 1:
			document.getElementById(&quot;TabTab03Con1&quot;).style.display=&quot;block&quot;;
			document.getElementById(&quot;TabTab03Con2&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;TabTab03Con3&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;font1&quot;).style.color=&quot;#000000&quot;;
			document.getElementById(&quot;font2&quot;).style.color=&quot;#ffffff&quot;;
			document.getElementById(&quot;font3&quot;).style.color=&quot;#ffffff&quot;;
			break;
			case 2:
			document.getElementById(&quot;TabTab03Con1&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;TabTab03Con2&quot;).style.display=&quot;block&quot;;
			document.getElementById(&quot;TabTab03Con3&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;font1&quot;).style.color=&quot;#ffffff&quot;;
			document.getElementById(&quot;font2&quot;).style.color=&quot;#000000&quot;;
			document.getElementById(&quot;font3&quot;).style.color=&quot;#ffffff&quot;;
			break;
			case 3:
			document.getElementById(&quot;TabTab03Con1&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;TabTab03Con2&quot;).style.display=&quot;none&quot;;
			document.getElementById(&quot;TabTab03Con3&quot;).style.display=&quot;block&quot;;
			document.getElementById(&quot;font1&quot;).style.color=&quot;#ffffff&quot;;
			document.getElementById(&quot;font2&quot;).style.color=&quot;#ffffff&quot;;
			document.getElementById(&quot;font3&quot;).style.color=&quot;#000000&quot;;
			break;
		}
	}
&lt;/script&gt;
&lt;div class=&quot;tab&quot;&gt;
	&lt;div id=&quot;bg&quot; class=&quot;xixi1&quot;&gt;
		&lt;div id=&quot;font1&quot; class=&quot;tab1&quot; onMouseOver=&quot;setTab03Syn(1);document.getElementById('bg').className='xixi1'&quot;&gt;查询广告企业&lt;/div&gt;
		&lt;div id=&quot;font2&quot; class=&quot;tab2&quot; onMouseOver=&quot;setTab03Syn(2);document.getElementById('bg').className='xixi2'&quot;&gt;查询媒体刊例&lt;/div&gt;
		&lt;div id=&quot;font3&quot; class=&quot;tab3&quot; onMouseOver=&quot;setTab03Syn(3);document.getElementById('bg').className='xixi3'&quot;&gt;查询供求商情&lt;/div&gt;
	&lt;/div&gt;
    &lt;div id=TabTab03Con1&gt;52shidai.com JavaScript分享网&lt;/div&gt;
	&lt;div id=TabTab03Con2 style=&quot;display:none&quot;&gt;52shidai.com（&lt;a href=&quot;http://www.52shidai.com/&quot; target=&quot;_blank&quot;&gt;JavaScript分享网&lt;/a&gt;）&lt;/div&gt;
    &lt;div id=TabTab03Con3 style=&quot;display:none&quot;&gt;52shidai.com&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;br&gt;&lt;br&gt;
获取更多JavaScript代码，请登录JavaScript分享网 &lt;a href=&quot;http://www.52shidai.com&quot;&gt;http://www.52shidai.com&lt;/a&gt;
&lt;br&gt;
转载请注明出处，本代码仅供学习交流，不可用于任何商业用途！
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_F9Nr2e');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_F9Nr2e');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_F9Nr2e','runcode_F9Nr2e');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<h2  class="related_post_title">随机日志推荐</h2><ul class="related_post"></ul>]]></content:encoded>
			<wfw:commentRss>http://www.52shidai.com/javascript/577.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

