<?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>前端之路 &#187; 滚动</title>
	<atom:link href="http://www.simcn.com/tag/%e6%bb%9a%e5%8a%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simcn.com</link>
	<description>网站开发, 前端开发, 高性能前端开发</description>
	<lastBuildDate>Thu, 03 Nov 2011 02:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>今天写的一个练习的js类模式</title>
		<link>http://www.simcn.com/oo-javascript</link>
		<comments>http://www.simcn.com/oo-javascript#comments</comments>
		<pubDate>Wed, 10 Jun 2009 11:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2009/06/%e4%bb%8a%e5%a4%a9%e5%86%99%e7%9a%84%e4%b8%80%e4%b8%aa%e7%bb%83%e4%b9%a0%e7%9a%84js%e7%b1%bb%e6%a8%a1%e5%bc%8f/</guid>
		<description><![CDATA[suspendcode="" document.write(suspendcode); var hp = { lastScrollY : 0, byID : function(_id){ return document.getElementById(_id);}, init : function(id){ var st = document.documentElement.scrollTop &#124;&#124; document.body.scrollTop; percent=.1*(st-this.lastScrollY); if(percent>0){ percent=Math.ceil(percent); }else{ percent=Math.floor(percent); } this.byID(id).style.top=parseInt(this.byID(id).style.top)+percent+"px"; this.lastScrollY=this.lastScrollY+percent; return id; }, generate : function(){ }, start : function(id){ window.setInterval("hp.init(’"+id+"’)",1); } }; #hp.start(’lovexin1′);]]></description>
			<content:encoded><![CDATA[<pre name="code" class="brush:javascript">
suspendcode="<DIV id=lovexin1 style=’Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;’><img src=’images/close.gif’ onClick=’javascript:window.hide()’ width=’100′ height=’14′ border=’0′ vspace=’3′ alt=’关闭对联广告’><a href=’http://www.58ka.com.cn/’ target=’_blank’><img src=’images/ad_100×300.jpg’ width=’100′ height=’300′ border=’0′></a></DIV>"
document.write(suspendcode);

var hp = {

lastScrollY : 0, 

byID : function(_id){ return document.getElementById(_id);},

init : function(id){
var st = document.documentElement.scrollTop || document.body.scrollTop;
percent=.1*(st-this.lastScrollY);
if(percent>0){
percent=Math.ceil(percent);
}else{
percent=Math.floor(percent);
}

this.byID(id).style.top=parseInt(this.byID(id).style.top)+percent+"px";
this.lastScrollY=this.lastScrollY+percent;
return id;
},

generate : function(){

},

start : function(id){
window.setInterval("hp.init(’"+id+"’)",1);
} 

}; 

#hp.start(’lovexin1′); 
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/oo-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

