﻿
<?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>网建动力</title>
	<atom:link href="http://www.xipingbar.com/b/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.xipingbar.com/b</link>
	<description>WEB前端开发群：17784629</description>
	<lastBuildDate>Fri, 27 Aug 2010 06:21:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash组件,Actionscript,AS,XmlConnector+DataSet+DataGrid数据绑定应用实例</title>
		<link>http://www.xipingbar.com/b/?p=330</link>
		<comments>http://www.xipingbar.com/b/?p=330#comments</comments>
		<pubDate>Fri, 27 Aug 2010 06:21:49 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[疑难问题]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[DataSet]]></category>
		<category><![CDATA[FLASH]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=330</guid>
		<description><![CDATA[今天提到的XML connector也是很强劲的一个……

这两天在经典和帝国看了些组件的教程，很好。Flash MX2004 增加了好多的Web 组件，为Web 开发和 Web Service 提供了方便的工具。今天提到的XML connector也是很强劲的一个~这个讨论是基于小令狐兄的一个教程《XmlConnector+DataSet+DataGrid数据绑定应用实例》。但是小令狐兄教程有2步没有说，对初学者感到很困难，我就顺便把整个教程说一下，愿更多的 Flasher加入到Web 研究中去。：）
首先到MX 2004中建立一个 普通的Fla文档：

设定影片尺寸：500*200：

从组件面板里把一个XML connector、一个Dataset、一个DataGrid组件拖到舞台 上，其中XML connector的设定要注意：（画红色的部分&#8211;XML的路径，和Receive……）

XML connector组件的设置：
到组件面板里，找到Schema里找到Result:XML，之后点右面的那个 向下箭头的按钮

之后会弹出一个Browse，找到你想用的XML文件

之后就可以在Schema里看到如图的XML结构了

示例XML文件(music.xml)如下：
&#60;?xml version="1.0" encoding="GB2312"?&#62;
&#60;audioFiles&#62;
&#60;AudioProps uri ="http://MywayLau.net/1.aspx"; 类型="EP碟" 出品="sony.hk"
标签 ="不需要，完美的可怕……" 艺术家="卢巧音"/&#62;
&#60;AudioProps uri ="http://MywayLau.net/2.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Miao" 艺术家="卢巧音"/&#62;
&#60;AudioProps uri ="http://MywayLau.net/3.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "贴近卢巧音" 艺术家="卢巧音"/&#62;
&#60;AudioProps uri ="http://MywayLau.net/4.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "色放" 艺术家="卢巧音"/&#62;
&#60;AudioProps uri ="http://MywayLau.net/5.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Muse" 艺术家="卢巧音"/&#62;
&#60;AudioProps [...]]]></description>
			<content:encoded><![CDATA[<p>今天提到的XML connector也是很强劲的一个……</p>
<div>
<p>这两天在经典和帝国看了些组件的教程，很好。Flash MX2004 增加了好多的Web 组件，为Web 开发和 Web Service 提供了方便的工具。今天提到的XML connector也是很强劲的一个~这个讨论是基于小令狐兄的一个教程《<a href="http://hi.baidu.com/bobbylin/blog/item/744be9cd5e01e7520eb34558.html" target="_blank">XmlConnector+DataSet+DataGrid数据绑定应用实例</a>》。但是小令狐兄教程有2步没有说，对初学者感到很困难，我就顺便把整个教程说一下，愿更多的 Flasher加入到Web 研究中去。：）<br />
首先到MX 2004中建立一个 普通的Fla文档：</p>
<p><img src="http://www.flashempire.com/school/img4/04010507.jpg" border="1" alt="" width="500" height="400" /></p>
<p>设定影片尺寸：500*200：</p>
<p><img src="http://www.flashempire.com/school/img4/04010508.jpg" border="1" alt="" width="500" height="400" /></p>
<p>从组件面板里把一个XML connector、一个Dataset、一个DataGrid组件拖到舞台 上，其中XML connector的设定要注意：（画红色的部分&#8211;XML的路径，和Receive……）</p>
<p><img src="http://www.flashempire.com/school/img4/04010509.jpg" border="1" alt="" width="500" height="400" /></p>
<p>XML connector组件的设置：<br />
到组件面板里，找到Schema里找到Result:XML，之后点右面的那个 向下箭头的按钮</p>
<p><img src="http://www.flashempire.com/school/img4/04010510.jpg" border="1" alt="" width="500" height="400" /></p>
<p>之后会弹出一个Browse，找到你想用的XML文件</p>
<p><img src="http://www.flashempire.com/school/img4/04010511.jpg" border="1" alt="" width="500" height="400" /></p>
<p>之后就可以在Schema里看到如图的XML结构了</p>
<p><img src="http://www.flashempire.com/school/img4/04010512.jpg" border="1" alt="" width="500" height="400" /></p>
<p>示例XML文件(music.xml)如下：</p>
<pre>&lt;?xml version="1.0" encoding="GB2312"?&gt;
&lt;audioFiles&gt;
&lt;AudioProps uri ="http://MywayLau.net/1.aspx"; 类型="EP碟" 出品="sony.hk"
标签 ="不需要，完美的可怕……" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/2.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Miao" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/3.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "贴近卢巧音" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/4.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "色放" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/5.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Muse" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/6.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Fantasy" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/7.aspx"; 类型="精选" 出品="sony.hk"
标签 = "喜欢恋爱" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/8.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "赏味人间" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/9.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "赏味人间 2nd-Version" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/10.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "Candy's Airline" 艺术家="卢巧音"/&gt;
&lt;AudioProps uri ="http://MywayLau.net/11.aspx"; 类型="专辑" 出品="sony.hk"
标签 = "花言·巧语" 艺术家="卢巧音"/&gt;
&lt;/audioFiles&gt;</pre>
<p>击舞台上的DataSet组件，回到Bindings标签~ 按“+”按钮，在弹出的对话框里 ，选DataProvider:Array：</p>
<p><img src="http://www.flashempire.com/school/img4/04010513.jpg" border="1" alt="" width="500" height="400" /></p>
<p>用样的方法再建一个DataProvider：</p>
<p><img src="http://www.flashempire.com/school/img4/04010514.jpg" border="1" alt="" width="500" height="400" /></p>
<p>在第一个DataProvider里的下面面板里找到Bound to ，按那个放大镜的按钮， 开始绑定，一个为XML connector ，另外一个就是DataGrid，下图为 XML connector的：<br />
找到AudioProps:Array，确定。</p>
<p><img src="http://www.flashempire.com/school/img4/04010515.jpg" border="1" alt="" width="500" height="400" /></p>
<p>在第二个DataSet的绑定中，仍然选AudioProps:Array。</p>
<p><img src="http://www.flashempire.com/school/img4/04010516.jpg" border="1" alt="" width="500" height="400" /></p>
<p>注意：在本例中，XML connector的实例名叫myconn，DataSet组件的实例名叫 myDataset<br />
，DataGrid组件的实例名为show_db，它的尺寸是500*100</p>
<p>之后就可以在第一Frame里写AS了：</p>
<p><img src="http://www.flashempire.com/school/img4/04010517.jpg" border="1" alt="" width="500" height="400" /></p>
<p>在AS里我们看到有一个状态提示框，叫msg，那现在做一个：</p>
<p><img src="http://www.flashempire.com/school/img4/04010518.jpg" border="1" alt="" width="500" height="400" /></p>
<p>呵呵，所有的工作就都完成了。按Ctrl+Enter调试一下 ？看效果……</p>
<p><img src="http://www.flashempire.com/school/img4/04010525.jpg" border="1" alt="" width="500" height="200" /></p>
<p>效果请参看：<a href="http://www.candyfan.com/xmlconnector/f8_xml%20connector.html" target="_blank"><span style="color: #800080;">http://www.candyfan.com/xmlconnector/f8_xml% 20connector.html</span></a></p>
<p>问题来了……</p>
<p>请问大家</p>
<p>1.XML 有5个attributes，所以效果就呈现5个等大的区域，如何具体设置每个区域的大小呢？ （设定初始值）……</p>
<p>2.我尝试给带uri加上getURL，可是dataGrid组件我并不熟悉，通过一个改良的代码：</p>
<pre>System.useCodepage = true;
this.conn.trigger();
url=new Array();
uri=new XML();
uri.ignoreWhite=true;
uri.load("music.xml");
uri.onLoad=function(success){
    if(success){
      msg.text="XML has been Loaded, Enjoy it ~";
      for(i=0;i&lt;uri.firstChild.childNodes.length;i++){
        url[i]=uri.firstChild.childNodes[i];
/*
未完成部分……
*/
      }
    }else{
      msg.text="XML Loaded error!
      Refresh Plz ~";
    }
};</pre>
<p>可以得到每个目录的URL值，（trace的时候好象有点问题……），但是我不知道 怎么给这个组件的相应部分加URL判定，以前看过一个Tree组件的，方法是：</p>
<pre>myTreeListener=new Object();
myTreeListener.change=function(Myway_Lau){
    var thedata=Myway_Lau.target.selectedItem.attributes.data;
    if(thedata.indexOf("http",0)==-1){
      myTextArea=thedata;
    }else{
      getURL(thedata,"_blank");
    }
}
myTree.addEventListener("change",myTreeListener)</pre>
<p>URL部分感谢 经典论坛 静寂林 兄的回复，方法已解决，AS如下：</p>
<pre>System.useCodepage = true;
this.myconn.trigger();//XMLconnectior的实例名为myconn
uri=new XML();
uri.ignoreWhite=true;
uri.load("music.xml");
uri.onLoad=function(success){
    if(success){
      msg.text="XML has been Loaded, Enjoy it ~";
}else{
      msg.text="XML Loaded error! Refresh Plz ~";
    }
};
listenerObject=new Object();
listenerObject.cellPress=function(eventObject) {   
    var temp=eventObject.target;
    var uri=temp.selectedItem.uri;
    getURL(uri);
}
show_db.addEventListener("cellPress",listenerObject);</pre>
<p>经过静寂林兄的指导，列的长度也可以改变了。方法如下：</p>
<pre>System.useCodepage = true;
this.myconn.trigger();//XMLconnectior的实例名为myconn
uri=new XML();
uri.ignoreWhite=true;
uri.load("music.xml");
uri.onLoad=function(success){
    if(success){
      msg.text="XML has been Loaded, Enjoy it ~";   
    }else{
      msg.text="XML Loaded error! Refresh Plz ~";
    }
};
listenerObject=new Object();
listenerObject.cellPress=function(eventObject) {   
    var temp=eventObject.target;
    var uri=temp.selectedItem.uri;
    getURL(uri);
}
show_db.addEventListener("cellPress",listenerObject);
this.onEnterFrame=function() {
    show_db.getColumnAt(0).width=50;
    show_db.getColumnAt(1).width=50;
    show_db.getColumnAt(2).width=150;
    show_db.getColumnAt(3).width=70;
    show_db.getColumnAt(4).width=180;
    if(show_db.getColumnAt(4)!=undefined) {
      delete this.onEnterFrame;
    }
}</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=330</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>结构/表现/行为完全分离的选项卡(jQ版和原生JS版)</title>
		<link>http://www.xipingbar.com/b/?p=328</link>
		<comments>http://www.xipingbar.com/b/?p=328#comments</comments>
		<pubDate>Thu, 26 Aug 2010 09:18:37 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[JS基础学习]]></category>
		<category><![CDATA[选项卡]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=328</guid>
		<description><![CDATA[//jQ版本
$(function(){
    var _tab=$(&#8216;ul.tabnav&#62;li&#8217;);//获取选项卡导航
    var _box=$(&#8216;.tabbox div&#8217;);//获取内容切换区
    var _hover=&#8217;hover&#8217;;//当前点击显示的样式
    var _index;//索引值
    _tab.eq(0).addClass(_hover);//第一个导航高亮显示
    _tab.click(function(){
        _index=_tab.index(this);//获取当前点击的索引值
        $(this).addClass(_hover).siblings().removeClass(_hover);//当前点击高亮显示
        _box.eq(_index).show().siblings().hide();//通过索引值让对应的选项内容区显示
    }).eq(0).click();
});
//原生JS版本
window.onload=function(){
    var tabnav=document.getElementById(&#8216;tabnav&#8217;);
    var list=tabnav.getElementsByTagName(&#8216;li&#8217;);
    var tabbox=document.getElementById(&#8216;tabbox&#8217;);
    var divs=tabbox.getElementsByTagName(&#8216;div&#8217;);
    var hover=&#8217;hover&#8217;;//当前点击显示的样式
    var indexValue=function(self,obj){//获取索引值的函数,通过它获取当前点击在导航中的索引位置
        for(var i=0;i&#60;obj.length;i++){
            if(obj[i]==self) return i;
        }
    };
    var index;
    list[0].className=hover;//第一个默认高亮,建议在页面中直接定义
    for(var k=1;k&#60;divs.length;k++){//我为了省事,用一个for循环定义默认显示第一个切换区块,其他隐藏.这个最好用CSS定义,能避免页面加载时它全部显示出来.
     [...]]]></description>
			<content:encoded><![CDATA[<p>//jQ版本<br />
$(function(){<br />
    var _tab=$(&#8216;ul.tabnav&gt;li&#8217;);//获取选项卡导航<br />
    var _box=$(&#8216;.tabbox div&#8217;);//获取内容切换区<br />
    var _hover=&#8217;hover&#8217;;//当前点击显示的样式<br />
    var _index;//索引值<br />
    _tab.eq(0).addClass(_hover);//第一个导航高亮显示<br />
    _tab.click(function(){<br />
        _index=_tab.index(this);//获取当前点击的索引值<br />
        $(this).addClass(_hover).siblings().removeClass(_hover);//当前点击高亮显示<br />
        _box.eq(_index).show().siblings().hide();//通过索引值让对应的选项内容区显示<br />
    }).eq(0).click();<br />
});<br />
//原生JS版本<br />
window.onload=function(){<br />
    var tabnav=document.getElementById(&#8216;tabnav&#8217;);<br />
    var list=tabnav.getElementsByTagName(&#8216;li&#8217;);<br />
    var tabbox=document.getElementById(&#8216;tabbox&#8217;);<br />
    var divs=tabbox.getElementsByTagName(&#8216;div&#8217;);<br />
    var hover=&#8217;hover&#8217;;//当前点击显示的样式<br />
    var indexValue=function(self,obj){//获取索引值的函数,通过它获取当前点击在导航中的索引位置<br />
        for(var i=0;i&lt;obj.length;i++){<br />
            if(obj[i]==self) return i;<br />
        }<br />
    };<br />
    var index;<br />
    list[0].className=hover;//第一个默认高亮,建议在页面中直接定义<br />
    for(var k=1;k&lt;divs.length;k++){//我为了省事,用一个for循环定义默认显示第一个切换区块,其他隐藏.这个最好用CSS定义,能避免页面加载时它全部显示出来.<br />
        divs[k].style.display=&#8217;none&#8217;;<br />
    }<br />
    for(var l=0;l&lt;list.length;l++){//点击事件<br />
        list[l].onclick=function(){<br />
            index=indexValue(this,list);//利用前面定义的indexValue函数取当前点击在选项导航中的索引值,<br />
            for(var m=0;m&lt;list.length;m++){<br />
                list[m].className= (m==index) ? hover : &#8221;;//高亮显示点击项并移除其他项高亮<br />
            }<br />
            for(var n=0;n&lt;divs.length;n++){<br />
                divs[n].style.display= (n==index) ? &#8216;block&#8217; : &#8216;none&#8217;;//显示点击对应的选项区,隐藏其他<br />
            }<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=328</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决IIS 6.0 大文件上传限制</title>
		<link>http://www.xipingbar.com/b/?p=324</link>
		<comments>http://www.xipingbar.com/b/?p=324#comments</comments>
		<pubDate>Thu, 26 Aug 2010 01:55:41 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[服务器相关]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=324</guid>
		<description><![CDATA[症状:
上传文件到 Windows 2003 server + IIS 6.0 服务器的时候遇到下列错误:
请求对象错误 &#8216;ASP 0104 : 80004005&#8242;
操作被禁止
/Upload.asp, line 40原因:
IIS6.0 禁止上传超过 200kB 的文件. 因此你需要修改 IIS 的默认设置.
技术背景
在 IIS 6.0 中, AspMaxRequestEntityAllowed 属性指定了一个 ASP 请求(Request)可以使用的最大字节数. 如果 Content-Length 头信息中包含的请求长度超过了 AspMaxRequestEntityAllowed 的值, IIS 将返回一个 403 错误信息.
这个属性值与 MaxRequestEntityAllowed 相似, 但是是针对 ASP 请求的. 假如你知道自己的 ASP 应用只需要处理很少的请求数据, 你可以在 World Wide Web Publishing Service (WWW 发布服务)层级设定全局的 MaxRequestEntityAllowed 属性为 1MB, [...]]]></description>
			<content:encoded><![CDATA[<p>症状:<br />
上传文件到 Windows 2003 server + IIS 6.0 服务器的时候遇到下列错误:<br />
请求对象错误 &#8216;ASP 0104 : 80004005&#8242;<br />
操作被禁止<br />
/Upload.asp, line 40原因:<br />
IIS6.0 禁止上传超过 200kB 的文件. 因此你需要修改 IIS 的默认设置.</p>
<p>技术背景<br />
在 IIS 6.0 中, AspMaxRequestEntityAllowed 属性指定了一个 ASP 请求(Request)可以使用的最大字节数. 如果 Content-Length 头信息中包含的请求长度超过了 AspMaxRequestEntityAllowed 的值, IIS 将返回一个 403 错误信息.<br />
这个属性值与 MaxRequestEntityAllowed 相似, 但是是针对 ASP 请求的. 假如你知道自己的 ASP 应用只需要处理很少的请求数据, 你可以在 World Wide Web Publishing Service (WWW 发布服务)层级设定全局的 MaxRequestEntityAllowed 属性为 1MB, 并单独设定 AspMaxRequestEntityAllowed 为一个较小的值.</p>
<p>解决方法<br />
打开位于 C:\Windows\System32\Inetsrv 中的 metabase.XML, 并修改 AspMaxRequestEntityAllowed 为你需要的值(例如 &#8220;1073741824&#8243;, 1GB).</p>
<p>注意: 在编辑文件前请停止 IIS 服务, 否则无法保存修改后的文件.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=324</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20个“标准的”配色方案</title>
		<link>http://www.xipingbar.com/b/?p=322</link>
		<comments>http://www.xipingbar.com/b/?p=322#comments</comments>
		<pubDate>Wed, 25 Aug 2010 07:53:32 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[乱七八糟]]></category>
		<category><![CDATA[颜色]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=322</guid>
		<description><![CDATA[
 &#60;html&#62;
&#60;head&#62;
	&#60;title&#62;Colors&#60;/title&#62;
	&#60;style type=&#34;text/css&#34;&#62;
	body{
	margin:20px;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size:12px;
	}
	.style1{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #96C2F1;
	background-color: #EFF7FF
	}
	.style1 h5{
	margin: 1px;
	background-color: #B2D3F5;
	height: 24px;
	}
	.style2{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #9BDF70;
	background-color: #F0FBEB
	}
		.style2 h5{
	margin: 1px;
	background-color: #C2ECA7;
	height: 24px;
	}
	.style3{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #BBE1F1;
	background-color: #EEFAFF
	}
	.style4{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #CCEFF5;
	background-color: #FAFCFD
	}
	.style5{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #FFCC00;
	background-color: #FFFFF7
	}
	.style6{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="height:180px;width:400px;font-size:12px" class="runcode_text" id="runcode_4TOfRd"> &lt;html&gt;
&lt;head&gt;
	&lt;title&gt;Colors&lt;/title&gt;
	&lt;style type=&quot;text/css&quot;&gt;
	body{
	margin:20px;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size:12px;
	}
	.style1{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #96C2F1;
	background-color: #EFF7FF
	}
	.style1 h5{
	margin: 1px;
	background-color: #B2D3F5;
	height: 24px;
	}
	.style2{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #9BDF70;
	background-color: #F0FBEB
	}
		.style2 h5{
	margin: 1px;
	background-color: #C2ECA7;
	height: 24px;
	}
	.style3{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #BBE1F1;
	background-color: #EEFAFF
	}
	.style4{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #CCEFF5;
	background-color: #FAFCFD
	}
	.style5{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #FFCC00;
	background-color: #FFFFF7
	}
	.style6{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #92B0DD;
	background-color: #FFFFFf
	}
	.style6 h5{
	margin: 1px;
	background-color: #E2EAF8;
	height: 24px;
	}
	.style7{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #A9C9E2;
	background-color: #E8F5FE
	}
	.style8{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #E3E197;
	background-color: #FFFFDD
	}
	.style9{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #ADCD3C;
	background-color: #F2FDDB
	}
	.style10{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #F8B3D0;
	background-color: #FFF5FA
	}
	.style11{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #D3D3D3;
	background-color: #F7F7F7
	}
	.style12{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #BFD1EB;
	background-color: #F3FAFF
	}
	.style13{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #FFDD99;
	background-color: #FFF9ED
	}
	.style14{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #CACAFF;
	background-color: #F7F7FF
	}
	.style15{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #A5B6C8;
	background-color: #EEF3F7
	}
	.style16{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #CEE3E9;
	background-color: #F1F7F9
	}
	.style17{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #CAE3FF;
	background-color: #F4F9FF
	}
	.style18{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #C9D9EE;
	background-color: #ECF8FF
	}
	.style19{
	width: 800px;
	height: 100px;
	margin: 0px auto;
	margin-bottom:20px;
	border:1px solid #5C9CC0;
	background-color: #F2FAFF
	}
	h5{color:#CCCCCC;margin-left:680px}
	a{color:#CCCCCC;text-decoration:none}
	a:hover{color:#666666;text-decoration:underline}
	&lt;/style&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;style1&quot;&gt;&lt;h5&gt;Title&lt;/h5&gt;&lt;/div&gt;
&lt;div class=&quot;style2&quot;&gt;&lt;h5&gt;Title&lt;/h5&gt;&lt;/div&gt;
&lt;div class=&quot;style6&quot;&gt;&lt;h5&gt;Title&lt;/h5&gt;&lt;/div&gt;
&lt;div class=&quot;style3&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style4&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style5&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style7&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style8&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style9&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style10&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style11&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style12&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style13&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style14&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style15&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style16&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style17&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style18&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;style19&quot;&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_4TOfRd');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_4TOfRd');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_4TOfRd','runcode_4TOfRd');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=322</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>设为主页加入收藏代码</title>
		<link>http://www.xipingbar.com/b/?p=319</link>
		<comments>http://www.xipingbar.com/b/?p=319#comments</comments>
		<pubDate>Tue, 24 Aug 2010 03:23:29 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[前端特效]]></category>
		<category><![CDATA[收藏]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=319</guid>
		<description><![CDATA[设为首页:  
 
&#60;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221; onClick=&#8221;this.style.behavior=&#8217;url(#default#homepage)&#8217;;this.setHomePage(&#8216;http://www.xipingbar.com&#8217;);&#8221;&#62;设为首页&#60;/a&#62;  
 
加入收藏  
 
&#60;span style=&#8221;CURSOR: hand&#8221; mce_style=&#8221;CURSOR: hand&#8221; onClick=&#8221;window.external.addFavorite(&#8216;http://www.xipingbar.com&#8217;,'西平吧&#8217;)&#8221; &#62;加入收藏&#60;/span&#62;  
 
图片  
 
设为首页  
 
&#60;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221; onClick=&#8221;this.style.behavior=&#8217;url(#default#homepage)&#8217;;this.setHomePage(&#8216;http://www.xipingbar.com&#8217;);&#8221;&#62;&#60;img border=&#8221;0&#8243; src=&#8221;Images/About_2.gif&#8221; mce_src=&#8221;Images/About_2.gif&#8221; width=&#8221;84&#8243; height=&#8221;19&#8243; /&#62;&#60;/a&#62;  
 
加入收藏  
 
&#60;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221;&#62;&#60;img border=&#8221;0&#8243; src=&#8221;images/A_2.jpg&#8221; mce_src=&#8221;images/A_2.jpg&#8221; width=&#8221;150&#8243; height=&#8221;39&#8243; id=&#8221;shoucang&#8221; onClick=&#8221;window.external.addFavorite(&#8216;http://www.xipingbar.com&#8217;,'西平吧&#8217;)&#8221; /&#62;&#60;/a&#62;
]]></description>
			<content:encoded><![CDATA[<p>设为首页:  <br />
 <br />
&lt;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221; onClick=&#8221;this.style.behavior=&#8217;url(#default#homepage)&#8217;;this.setHomePage(&#8216;http://www.xipingbar.com&#8217;);&#8221;&gt;设为首页&lt;/a&gt;  <br />
 <br />
加入收藏  <br />
 <br />
&lt;span style=&#8221;CURSOR: hand&#8221; mce_style=&#8221;CURSOR: hand&#8221; onClick=&#8221;window.external.addFavorite(&#8216;http://www.xipingbar.com&#8217;,'西平吧&#8217;)&#8221; &gt;加入收藏&lt;/span&gt;  <br />
 <br />
图片  <br />
 <br />
设为首页  <br />
 <br />
&lt;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221; onClick=&#8221;this.style.behavior=&#8217;url(#default#homepage)&#8217;;this.setHomePage(&#8216;http://www.xipingbar.com&#8217;);&#8221;&gt;&lt;img border=&#8221;0&#8243; src=&#8221;Images/About_2.gif&#8221; mce_src=&#8221;Images/About_2.gif&#8221; width=&#8221;84&#8243; height=&#8221;19&#8243; /&gt;&lt;/a&gt;  <br />
 <br />
加入收藏  <br />
 <br />
&lt;a href=&#8221;#&#8221; mce_href=&#8221;#&#8221;&gt;&lt;img border=&#8221;0&#8243; src=&#8221;images/A_2.jpg&#8221; mce_src=&#8221;images/A_2.jpg&#8221; width=&#8221;150&#8243; height=&#8221;39&#8243; id=&#8221;shoucang&#8221; onClick=&#8221;window.external.addFavorite(&#8216;http://www.xipingbar.com&#8217;,'西平吧&#8217;)&#8221; /&gt;&lt;/a&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=319</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MYSQL远程连接速度慢的解决方法</title>
		<link>http://www.xipingbar.com/b/?p=315</link>
		<comments>http://www.xipingbar.com/b/?p=315#comments</comments>
		<pubDate>Fri, 20 Aug 2010 01:15:09 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[服务器相关]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[外连]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=315</guid>
		<description><![CDATA[MYSQL远程连接速度慢的解决方法
在局域网内连接其他机器的MYSQL,发现速度慢的很,不知道什么原因,总有几秒的延迟.
后来在网上发现解决方法,my.ini里面添加
[mysqld]
skip-name-resolve
skip-grant-tables
这样速度就快了!
skip-name-resolve
选项就能禁用DNS解析，连接速度会快很多。不过，这样的话就不能在MySQL的授权表中使用主机名了而只能用ip格式。
若使用–skip-grant-tables系统将对任何用户的访问不做任何访问控制，但可以用 mysqladmin flush-privileges或mysqladmin reload来开启访问控制;默认情况是show databases语句对所有用户开放，
如果mysql服务器没有开远程帐户，就在my.ini里面加上skip-grant-tables
]]></description>
			<content:encoded><![CDATA[<p>MYSQL远程连接速度慢的解决方法<br />
在局域网内连接其他机器的MYSQL,发现速度慢的很,不知道什么原因,总有几秒的延迟.</p>
<p>后来在网上发现解决方法,my.ini里面添加</p>
<p>[mysqld]<br />
skip-name-resolve<br />
skip-grant-tables</p>
<p>这样速度就快了!</p>
<p>skip-name-resolve</p>
<p>选项就能禁用DNS解析，连接速度会快很多。不过，这样的话就不能在MySQL的授权表中使用主机名了而只能用ip格式。</p>
<p>若使用–skip-grant-tables系统将对任何用户的访问不做任何访问控制，但可以用 mysqladmin flush-privileges或mysqladmin reload来开启访问控制;默认情况是show databases语句对所有用户开放，</p>
<p>如果mysql服务器没有开远程帐户，就在my.ini里面加上skip-grant-tables</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=315</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>循环设置onclick时，获取当前的序号</title>
		<link>http://www.xipingbar.com/b/?p=313</link>
		<comments>http://www.xipingbar.com/b/?p=313#comments</comments>
		<pubDate>Wed, 18 Aug 2010 01:08:39 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[JS基础学习]]></category>
		<category><![CDATA[循环]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=313</guid>
		<description><![CDATA[
 &#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;无标题文档&#60;/title&#62;
&#60;style&#62;
li{ display:block; background-color:#CCC; margin-top:2px; cursor:pointer;}
&#60;/style&#62;
&#60;script&#62;
window.onload = function(){
	var lis = document.getElementById(&#34;ul&#34;).getElementsByTagName(&#34;li&#34;);
	for(var i = 0,j=lis.length;i&#60;j;i++){
		lis[i].onclick = (function(n){
			return function(){
				alert(&#34;点击的是第&#34;+ n +&#34;个&#34;);
			}
		})(i)
	};
}
&#60;/script&#62;
&#60;/head&#62;
&#60;body&#62;
	&#60;ul id=&#34;ul&#34;&#62;
		&#60;li&#62;0&#60;/li&#62;
		&#60;li&#62;1&#60;/li&#62;
		&#60;li&#62;2&#60;/li&#62;
		&#60;li&#62;3&#60;/li&#62;
		&#60;li&#62;4&#60;/li&#62;
		&#60;li&#62;5&#60;/li&#62;
	&#60;/ul&#62;
&#60;/body&#62;
&#60;/html&#62;
   提示：你可以先修改部分代码再运行。

]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="height:180px;width:400px;font-size:12px" class="runcode_text" id="runcode__SsX8y"> &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;无标题文档&lt;/title&gt;
&lt;style&gt;
li{ display:block; background-color:#CCC; margin-top:2px; cursor:pointer;}
&lt;/style&gt;
&lt;script&gt;
window.onload = function(){
	var lis = document.getElementById(&quot;ul&quot;).getElementsByTagName(&quot;li&quot;);
	for(var i = 0,j=lis.length;i&lt;j;i++){
		lis[i].onclick = (function(n){
			return function(){
				alert(&quot;点击的是第&quot;+ n +&quot;个&quot;);
			}
		})(i)
	};
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;ul id=&quot;ul&quot;&gt;
		&lt;li&gt;0&lt;/li&gt;
		&lt;li&gt;1&lt;/li&gt;
		&lt;li&gt;2&lt;/li&gt;
		&lt;li&gt;3&lt;/li&gt;
		&lt;li&gt;4&lt;/li&gt;
		&lt;li&gt;5&lt;/li&gt;
	&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode__SsX8y');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode__SsX8y');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode__SsX8y','runcode__SsX8y');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=313</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>发一新浪招聘的图片滚动控制JS效果</title>
		<link>http://www.xipingbar.com/b/?p=311</link>
		<comments>http://www.xipingbar.com/b/?p=311#comments</comments>
		<pubDate>Tue, 17 Aug 2010 06:58:48 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[前端特效]]></category>
		<category><![CDATA[控制]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=311</guid>
		<description><![CDATA[
 &#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=gb2312&#34; /&#62;
&#60;title&#62;超级经典一套鼠标控制左右滚动图片带自动翻滚&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;div class=&#34;rollBox&#34;&#62;
     &#60;div class=&#34;LeftBotton&#34; onmousedown=&#34;ISL_GoUp()&#34; onmouseup=&#34;ISL_StopUp()&#34; onmouseout=&#34;ISL_StopUp()&#34;&#62;&#60;/div&#62;
     &#60;div class=&#34;Cont&#34; id=&#34;ISL_Cont&#34;&#62;
      &#60;div class=&#34;ScrCont&#34;&#62;
       &#60;div id=&#34;List1&#34;&#62;
        &#60;!-- 图片列表 [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="height:180px;width:400px;font-size:12px" class="runcode_text" id="runcode_nw1Tfi"> &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=gb2312&quot; /&gt;
&lt;title&gt;超级经典一套鼠标控制左右滚动图片带自动翻滚&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;rollBox&quot;&gt;
     &lt;div class=&quot;LeftBotton&quot; onmousedown=&quot;ISL_GoUp()&quot; onmouseup=&quot;ISL_StopUp()&quot; onmouseout=&quot;ISL_StopUp()&quot;&gt;&lt;/div&gt;
     &lt;div class=&quot;Cont&quot; id=&quot;ISL_Cont&quot;&gt;
      &lt;div class=&quot;ScrCont&quot;&gt;
       &lt;div id=&quot;List1&quot;&gt;
        &lt;!-- 图片列表 begin --&gt;
         &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/15.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i0.sinaimg.cn/edu/deco/2007/0928/aiying.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;周宪环&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/15.html&quot; target=&quot;_blank&quot;&gt;周宪环&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
 &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/16.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i1.sinaimg.cn/edu/deco/2007/0928/zhenwei.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;周桢炜&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/16.html&quot; target=&quot;_blank&quot;&gt;周桢炜&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
         &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/14.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i2.sinaimg.cn/edu/deco/2007/0928/zhangying.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;张颖&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/14.html&quot; target=&quot;_blank&quot;&gt;张颖&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
         &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/17.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i3.sinaimg.cn/edu/deco/2007/0928/wangnaichao.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;王乃超&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/17.html&quot; target=&quot;_blank&quot;&gt;王乃超&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
         &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/19.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i1.sinaimg.cn/edu/deco/2007/0928/xiewenxiu.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;谢雯琇&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/19.html&quot; target=&quot;_blank&quot;&gt;谢雯琇&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
 &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/18.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i1.sinaimg.cn/edu/deco/2007/0928/lvge.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;吕铬&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0928/18.html&quot; target=&quot;_blank&quot;&gt;吕铬&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
         &lt;div class=&quot;pic&quot;&gt;
          &lt;a href=&quot;http://career.sina.com.cn/3/2007/0927/12.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i2.sinaimg.cn/edu/deco/2007/0928/zhengru.jpg&quot; width=&quot;109&quot; height=&quot;87&quot; alt=&quot;贾正如&quot; /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;a href=&quot;http://career.sina.com.cn/3/2007/0927/12.html&quot; target=&quot;_blank&quot;&gt;贾正如&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
        &lt;!-- 图片列表 end --&gt;
       &lt;/div&gt;
       &lt;div id=&quot;List2&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class=&quot;RightBotton&quot; onmousedown=&quot;ISL_GoDown()&quot; onmouseup=&quot;ISL_StopDown()&quot; onmouseout=&quot;ISL_StopDown()&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
   &lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.rollBox{width:704px;overflow:hidden;padding:12px 0 5px 6px;}
.rollBox .LeftBotton{height:52px;width:19px;background:url(http://i3.sinaimg.cn/edu/deco/2007/0924/career/job_mj_069.gif) no-repeat 11px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;}
.rollBox .RightBotton{height:52px;width:20px;background:url(http://i3.sinaimg.cn/edu/deco/2007/0924/career/job_mj_069.gif) no-repeat -8px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;}
.rollBox .Cont{width:663px;overflow:hidden;float:left;}
.rollBox .ScrCont{width:10000000px;}
.rollBox .Cont .pic{width:132px;float:left;text-align:center;}
.rollBox .Cont .pic img{padding:4px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto;}
.rollBox .Cont .pic p{line-height:26px;color:#505050;}
.rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;}
.rollBox .Cont a:hover{color:#f00;text-decoration:underline;}
.rollBox #List1,.rollBox #List2{float:left;}
--&gt;
&lt;/style&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;!--//--&gt;&lt;![CDATA[//&gt;&lt;!--
//图片滚动列表 mengjia 070816
var Speed = 10; //速度(毫秒)
var Space = 5; //每次移动(px)
var PageWidth = 132; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj(&quot;List2&quot;).innerHTML = GetObj(&quot;List1&quot;).innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj(&quot;ISL_Cont&quot;).onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj(&quot;ISL_Cont&quot;).onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById(&quot;'+objName+'&quot;)')}else{return eval('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
 clearInterval(AutoPlayObj);
 AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
 if(MoveLock) return;
 clearInterval(AutoPlayObj);
 MoveLock = true;
 MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
 clearInterval(MoveTimeObj);
 if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
  Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
  CompScr();
 }else{
  MoveLock = false;
 }
 AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
 if(GetObj('ISL_Cont').scrollLeft &lt;= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
 GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
 clearInterval(MoveTimeObj);
 if(MoveLock) return;
 clearInterval(AutoPlayObj);
 MoveLock = true;
 ISL_ScrDown();
 MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
 clearInterval(MoveTimeObj);
 if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
  Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
  CompScr();
 }else{
  MoveLock = false;
 }
 AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
 if(GetObj('ISL_Cont').scrollLeft &gt;= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
 GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
 var num;
 if(Comp == 0){MoveLock = false;return;}
 if(Comp &lt; 0){ //上翻
  if(Comp &lt; -Space){
   Comp += Space;
   num = Space;
  }else{
   num = -Comp;
   Comp = 0;
  }
  GetObj('ISL_Cont').scrollLeft -= num;
  setTimeout('CompScr()',Speed);
 }else{ //下翻
  if(Comp &gt; Space){
   Comp -= Space;
   num = Space;
  }else{
   num = Comp;
   Comp = 0;
  }
  GetObj('ISL_Cont').scrollLeft += num;
  setTimeout('CompScr()',Speed);
 }
}
//--&gt;&lt;!]]&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_nw1Tfi');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_nw1Tfi');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_nw1Tfi','runcode_nw1Tfi');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=311</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>也写个几行的新闻滚动效果</title>
		<link>http://www.xipingbar.com/b/?p=310</link>
		<comments>http://www.xipingbar.com/b/?p=310#comments</comments>
		<pubDate>Fri, 13 Aug 2010 02:10:19 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[前端特效]]></category>
		<category><![CDATA[向上]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=310</guid>
		<description><![CDATA[
 &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34;
&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#62;
&#60;html&#62;
&#60;head&#62;
&#60;title&#62; code.js.cn &#60;/title&#62;
&#60;style&#62;
a{display:block;font-size:15px;line-height:18px;text-decoration:none;color:#333;font-family:Arial;font-size:12px;}
.shell{
	background:url(http://bbs.blueidea.com/images/common/xml.gif) no-repeat 4px 5px;
	border:1px solid #aaa;
	width:400px;
	padding:3px 2px 2px 20px;
}
#div1{
	height:18px;
	overflow:hidden;
}
&#60;/style&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;div class=&#34;shell&#34;&#62;
	&#60;div id=&#34;div1&#34;&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;请教高手帮我看下这段代码 FLASH显示不了&#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;请教在UTF-8编辑下的符号显示问题 &#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;jquery做的一个滑动效果,不知如何增加延迟,现在太灵敏了&#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;技术研究-QQ09版按钮渐显渐隐的由来 &#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;javascript读取Json数据并分页显示，支持键盘和滚轮翻页 &#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;腾讯网奇怪的PNG文件，拜师以求解惑&#60;/a&#62;
	  &#60;a href=&#34;javascript:&#34;&#62;更新lhgdialog-ver2.0.1弹出窗口组件 2009-7-18 &#60;/a&#62;
	&#60;/div&#62;
&#60;div&#62;
&#60;/body&#62;
&#60;script&#62;
var box=document.getElementById(&#34;div1&#34;),can=true;
box.innerHTML+=box.innerHTML;
box.onmouseover=function(){can=false};
box.onmouseout=function(){can=true};
new function (){
	var stop=box.scrollTop%18==0&#38;&#38;!can;
	if(!stop)box.scrollTop==parseInt(box.scrollHeight/2)?box.scrollTop=0:box.scrollTop++;
	setTimeout(arguments.callee,box.scrollTop%18?10:1500);
};
&#60;/script&#62;
&#60;/html&#62;
   提示：你可以先修改部分代码再运行。

]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="height:180px;width:400px;font-size:12px" class="runcode_text" id="runcode_7g11yP"> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt; code.js.cn &lt;/title&gt;
&lt;style&gt;
a{display:block;font-size:15px;line-height:18px;text-decoration:none;color:#333;font-family:Arial;font-size:12px;}
.shell{
	background:url(http://bbs.blueidea.com/images/common/xml.gif) no-repeat 4px 5px;
	border:1px solid #aaa;
	width:400px;
	padding:3px 2px 2px 20px;
}
#div1{
	height:18px;
	overflow:hidden;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;shell&quot;&gt;
	&lt;div id=&quot;div1&quot;&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;请教高手帮我看下这段代码 FLASH显示不了&lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;请教在UTF-8编辑下的符号显示问题 &lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;jquery做的一个滑动效果,不知如何增加延迟,现在太灵敏了&lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;技术研究-QQ09版按钮渐显渐隐的由来 &lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;javascript读取Json数据并分页显示，支持键盘和滚轮翻页 &lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;腾讯网奇怪的PNG文件，拜师以求解惑&lt;/a&gt;
	  &lt;a href=&quot;javascript:&quot;&gt;更新lhgdialog-ver2.0.1弹出窗口组件 2009-7-18 &lt;/a&gt;
	&lt;/div&gt;
&lt;div&gt;
&lt;/body&gt;
&lt;script&gt;
var box=document.getElementById(&quot;div1&quot;),can=true;
box.innerHTML+=box.innerHTML;
box.onmouseover=function(){can=false};
box.onmouseout=function(){can=true};
new function (){
	var stop=box.scrollTop%18==0&amp;&amp;!can;
	if(!stop)box.scrollTop==parseInt(box.scrollHeight/2)?box.scrollTop=0:box.scrollTop++;
	setTimeout(arguments.callee,box.scrollTop%18?10:1500);
};
&lt;/script&gt;
&lt;/html&gt;</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_7g11yP');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_7g11yP');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_7g11yP','runcode_7g11yP');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=310</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>按钮控制文字上下滚动</title>
		<link>http://www.xipingbar.com/b/?p=308</link>
		<comments>http://www.xipingbar.com/b/?p=308#comments</comments>
		<pubDate>Thu, 12 Aug 2010 06:17:32 +0000</pubDate>
		<dc:creator>yflintao</dc:creator>
				<category><![CDATA[前端特效]]></category>
		<category><![CDATA[上下]]></category>
		<category><![CDATA[控制]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://www.xipingbar.com/b/?p=308</guid>
		<description><![CDATA[
 &#60;html&#62;
&#60;head&#62;
&#60;title&#62;Untitled Document&#60;/title&#62;
&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=iso-8859-1&#34;&#62;
&#60;style type=&#34;text/css&#34;&#62;
#divUpControl{position:absolute; width:320; left:230; top:100; z-index:1; text-align: right}
#divDownControl{position:absolute; width:320; left:230; top:360; z-index:1; text-align: right}
#divContainer{position:absolute; width:320; height:240; overflow:hidden; top:120; left:230; clip:rect(0,320,240,0); visibility:hidden}
#divContent{position:absolute; top:0; left:0}
&#60;/style&#62;
&#60;script language=&#34;JavaScript&#34;&#62;// begin absolutely positioned scrollable area object scripts
// Extension developed by David G. Miles
// Original Scrollable Area code developed by Thomas Brattli
function verifyCompatibleBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf(&#34;MSIE 5&#34;)&#62;-1 &#38;&#38; this.dom)?1:0;
this.ie4=(document.all &#38;&#38; [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="height:180px;width:400px;font-size:12px" class="runcode_text" id="runcode_pdyRhi"> &lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
#divUpControl{position:absolute; width:320; left:230; top:100; z-index:1; text-align: right}
#divDownControl{position:absolute; width:320; left:230; top:360; z-index:1; text-align: right}
#divContainer{position:absolute; width:320; height:240; overflow:hidden; top:120; left:230; clip:rect(0,320,240,0); visibility:hidden}
#divContent{position:absolute; top:0; left:0}
&lt;/style&gt;
&lt;script language=&quot;JavaScript&quot;&gt;// begin absolutely positioned scrollable area object scripts
// Extension developed by David G. Miles
// Original Scrollable Area code developed by Thomas Brattli
function verifyCompatibleBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf(&quot;MSIE 5&quot;)&gt;-1 &amp;&amp; this.dom)?1:0;
this.ie4=(document.all &amp;&amp; !this.dom)?1:0;
this.ns5=(this.dom &amp;&amp; parseInt(this.ver) &gt;= 5) ?1:0;
this.ns4=(document.layers &amp;&amp; !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
bw=new verifyCompatibleBrowser()
var speed=50
var loop, timer
function ConstructObject(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
this.up=MoveAreaUp;this.down=MoveAreaDown;
this.MoveArea=MoveArea; this.x; this.y;
this.obj = obj + &quot;Object&quot;
eval(this.obj + &quot;=this&quot;)
return this
}
function MoveArea(x,y){
this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y
}
function MoveAreaDown(move){
if(this.y&gt;-this.scrollHeight+objContainer.clipHeight){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+&quot;.down(&quot;+move+&quot;)&quot;,speed)
}
}
function MoveAreaUp(move){
if(this.y&lt;0){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+&quot;.up(&quot;+move+&quot;)&quot;,speed)
}
}
function PerformScroll(speed){
if(initialised){
loop=true;
if(speed&gt;0) objScroller.down(speed)
else objScroller.up(speed)
}
}
function CeaseScroll(){
loop=false
if(timer) clearTimeout(timer)
}
var initialised;
function InitialiseScrollableArea(){
objContainer=new ConstructObject('divContainer')
objScroller=new ConstructObject('divContent','divContainer')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
initialised=true;
}
// end absolutely positioned scrollable area object scripts
&lt;/script&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#000000&quot; text=&quot;#CCCCCC&quot; link=&quot;#00CCFF&quot; vlink=&quot;#00CCFF&quot; alink=&quot;#00CCFF&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; onLoad=&quot;InitialiseScrollableArea()&quot;&gt;
&lt;div id=&quot;divUpControl&quot;&gt; &lt;a href=&quot;javascript:;&quot; onMouseOver=&quot;PerformScroll(-7)&quot; onMouseOut=&quot;CeaseScroll()&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;[scroll
up]&lt;/font&gt;&lt;/a&gt; &lt;/div&gt;
&lt;div id=&quot;divDownControl&quot;&gt; &lt;a href=&quot;javascript:;&quot; onMouseOver=&quot;PerformScroll(7)&quot; onMouseOut=&quot;CeaseScroll()&quot;&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;&gt;[scroll
down]&lt;/font&gt;&lt;/a&gt; &lt;/div&gt;
&lt;div id=&quot;divContainer&quot; style=&quot;visibility: visible&quot;&gt;
&lt;div id=&quot;divContent&quot;&gt; &lt;b&gt;Scroll Area Content Start&lt;/b&gt;
&lt;p&gt; &lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;This template
is free as is, as long as you leave the copyright and link to my site on
it. If you want the menu and banner &lt;a href=&quot;mailto:rkaic@yifan.net&quot;&gt;customized&lt;/a&gt;,
I will do it for $30. I can also do the content insertion as well as customization
and uploading for $350 for up to 8 pages. This template uses DHTML scrollable
layers for the content, so you need to be familiar with DHTML. If you like
this template, visit my site for more templates. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;Et harumd dereud
facilis est er expedit distinct. Nam liber a tempor cum soluta nobis eligend
optio comque nihil quod a impedit anim id quod maxim placeat facer possim
omnis es voluptas assumenda est, omnis dolor repellend. Temporem autem quinsud
et aur office debit aut tum rerum necesit atib saepe eveniet ut er repudiand
sint et molestia non este recusand.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;Lorem ipsum
dolor sit amet, consectetur adipscing elit, sed diam nonnumy eiusmod tempor
incidunt ut labore et dolore magna aliquam erat volupat.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;Et harumd dereud
facilis est er expedit distinct. Nam liber a tempor cum soluta nobis eligend
optio comque nihil quod a impedit anim id quod maxim placeat facer possim
omnis es voluptas assumenda est, omnis dolor repellend. Temporem autem quinsud
et aur office debit aut tum rerum necesit atib saepe eveniet ut er repudiand
sint et molestia non este recusand.&lt;/font&gt;&lt;/p&gt;
&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;&lt;b&gt;Scroll Area
Content End&lt;/b&gt; &lt;/font&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- end absolutely positioned scrollable area object --&gt;
&lt;!-- begin absolutely positioned scrollable area object--&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_pdyRhi');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_pdyRhi');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_pdyRhi','runcode_pdyRhi');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xipingbar.com/b/?feed=rss2&amp;p=308</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
