<?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.gonten.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gonten.com</link>
	<description>分享互联网，分享快乐！www.Gonten.com</description>
	<lastBuildDate>Fri, 13 Jan 2012 04:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>滚天搜索又被仿了个天翻地覆</title>
		<link>http://www.gonten.com/fangtiantiansousuo/</link>
		<comments>http://www.gonten.com/fangtiantiansousuo/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 05:11:07 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网络杂记]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[搜索]]></category>
		<category><![CDATA[程序]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1634</guid>
		<description><![CDATA[      我的滚天搜索 http://Gonten.com 以前用的是自己写的115小偷搜索程序，很多人使用，也有很多人仿。最近我换成了框Google的搜索，搜索结果全部来自Google，在首页也搞了点个性功能，比如手写输入功能等。       最近发现又被人仿下来拿去卖，仿我到没意见，也说明我的程序有价值。郁闷的是连我的统计代码也放在了他们的程序里，再出售，一传十，十传百，我的统计代码数据已经非常乱了，我又得重新换统计代码了，不是第一次了，够郁闷的。       不过我也该高兴高兴，有这么多人欣赏我的东西，呵呵。很多人都是拿我的程序修改加工，看来我是“一直被模仿，一直被超越！”。      滚天搜索 (http://gonten.com），没有被过滤的搜索引擎哦！]]></description>
		<wfw:commentRss>http://www.gonten.com/fangtiantiansousuo/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>PHP获取文件后缀名的函数</title>
		<link>http://www.gonten.com/php-filetype/</link>
		<comments>http://www.gonten.com/php-filetype/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 17:04:21 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1267</guid>
		<description><![CDATA[      似乎PHP没有自带获取文件后缀名的函数，翻书也没找到，网上搜索也没有，就自己写了个函数，很轻松就可以获取了。见网上很多朋友在找，就发出来分享分享，如果你发现有更好的方法，一定要在下面留言告诉我呀！       函数如下： function gontenfile($filestr){     $gonten= explode(&#8216;.&#8217;,$filestr);  //用点号分隔文件名到数组     $gonten = array_reverse($gonten);  //把上面数组倒序     return $gonten[0]; //返回倒序数组的第一个值 }       用 $filename =  gontenfile(&#8216;文件名&#8217;);   这样的方式就可以获取文件的后缀了。]]></description>
		<wfw:commentRss>http://www.gonten.com/php-filetype/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>页面载入时输入框自动取得焦点的JavaScript代码</title>
		<link>http://www.gonten.com/javascript-input-focus/</link>
		<comments>http://www.gonten.com/javascript-input-focus/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 15:12:06 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1211</guid>
		<description><![CDATA[       打开hao123主页，光标马上就会停在百度的搜索框里，打开百度也是这样，访客可以直接输入关键字来搜索，而不用将光标指在输入框并点击才激活，这样也就方便了网民。        这是怎么实现的呢？其实也就是一段JavaScript代码而已，看下面的代码： 把body标签改成： &#60;body onLoad=&#8221;document.Gonten_form.Gonten_input.focus()&#8221;&#62; 其中Gonten_form 为表单名，Gonten_input为输入框名称 需要聚焦的输入框： &#60;form method=&#8221;get&#8221; name=&#8221;Gonten_form&#8221; action=&#8221;"&#62;&#60;input type=&#8221;text&#8221; name=&#8221;Gonten_input&#8221; size=&#8221;20&#8243; /&#62;&#60;input type=&#8221;submit&#8221; value=&#8221;搜索&#8221; /&#62;&#60;/form&#62;]]></description>
		<wfw:commentRss>http://www.gonten.com/javascript-input-focus/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>网页防iframe插入与破解</title>
		<link>http://www.gonten.com/iframe-charu-pojie/</link>
		<comments>http://www.gonten.com/iframe-charu-pojie/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 05:22:35 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1179</guid>
		<description><![CDATA[       很多网站为了留住访客，使用iframe框住其它的网站，比如一些网址分享收藏网站，还有一些集成搜索引擎都是这样的。如果你不想被这些网站用Iframe插入，你可以在你的网页里加入： &#60;script&#62; if(top.location != self.location){ top.location = self.location; } &#60;/script&#62;        这段代码，这时一般的iframe插入将无法使用，你的网页会跳出来。        当然，有防必有破，你可以在iframe前加上以下代码： &#60;script&#62;var location=&#8221;";var navigate=&#8221;";&#60;/script&#62;        这样就算别人插入了防iframe代码，照样可以把它框起来。但是问题又出来了，加入代码&#60;script&#62;var location=&#8221;";var navigate=&#8221;";&#60;/script&#62;后，在火狐、Google Chrome等浏览器下似乎就成了死循环，无法打开。怎么办？解决方法也有，如果是PHP程序可以使用我以前推荐的PHP判断浏览器类型的代码，如果判断是非IE浏览器就放弃破解，这样至少可以打开被iframe的网页。]]></description>
		<wfw:commentRss>http://www.gonten.com/iframe-charu-pojie/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>用CSS轻松给网页图片加上仿相框效果</title>
		<link>http://www.gonten.com/tupiandaoying/</link>
		<comments>http://www.gonten.com/tupiandaoying/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 15:03:57 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网络杂记]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1174</guid>
		<description><![CDATA[      这两天有两个朋友问我滚天视频搜索的图片列表的倒影效果是怎么做的，是不是用背景图片？当然不是，其实是很简单的CSS效果。搜索了一下，发现不少朋友喜欢这样的风格，但是又不会CSS，如果你现在想学CSS，可以看看我推荐的几个CSS学习网站。       说回来，实现网页图片加上仿相框效果的代码是： #content img{padding:2px; border:1px #C8C8C8 outset;}       在相应的部分的CSS里加上以上代码即可，虽然代码很简单，但是很实用，初学者可以测试测试。       最近折腾的视频搜索：http://gonten.com/v.htm]]></description>
		<wfw:commentRss>http://www.gonten.com/tupiandaoying/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>php完美判断字符串是否为IP的函数</title>
		<link>http://www.gonten.com/php-ip-check/</link>
		<comments>http://www.gonten.com/php-ip-check/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 14:23:55 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=1155</guid>
		<description><![CDATA[       在一些查询网站和搜索引擎，常常用到判断某字符串是否为标准的IP地址，比如在百度里搜索某IP地址，会显示该IP的信息，而不符合标准的IP地址是不显示IP信息的。这时就要判断该字符串是否为标准的IP了，最常用的方法是用正则表达式判断。        在网上搜了一些判断IP地址的正则，都是过于简单的，有的只是判断IP字段不大于255，其实还有很多需要判断的，比如只能是数字，且不能为负数，还有用“.”分割只有4段等等。        最后我整理了一个自我感觉完美的函数，代码如下： function is_ip($gonten){         $ip = explode(&#8220;.&#8221;,$gonten);         for($i=0;$i&#60;count($ip);$i++)        {               if($ip[$i]&#62;255){                return (0);                }         }         return ereg(&#8220;^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$&#8221;,$gonten); }        $gonten为要查询的字符串，用is_ip($gonten)就可以判断了，返回FALSE和TRUE。]]></description>
		<wfw:commentRss>http://www.gonten.com/php-ip-check/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>最常用最全的广告代码收集</title>
		<link>http://www.gonten.com/adscode/</link>
		<comments>http://www.gonten.com/adscode/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 08:39:52 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[广告]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=837</guid>
		<description><![CDATA[       做网站，广告少不了，就算是不盈利的网站，也会有类似的公益广告。广告种类很多，有文字广告、图片广告、flash广告、JS特效广告等，文字广告和图片广告设计比较简单，但是比较酷的Flash广告和JS特效广告就稍微难一点了。不过你不用但是，很多站长网站都提供了代码素材，我们只要取下来修修改改就可以制作出我们想要的广告了。        广告代码太多了，有漂浮、直弹、退弹、对联等广告，我就不一一列出了，有兴趣的朋友去下列网站看看，都有演示和下载的，一切免费哦。 1、http://ad.jz123.cn/    ，广告多，很实用。 2、http://edu.cnzz.cn/adcode/  ，特别多flash的广告。 3、http://tool.admin5.com/daima/ ，站长网提供的一些常用广告代码。 4、http://www.mb5u.com/guanggaodaima/  ，flash广告多，缩略图显示列表]]></description>
		<wfw:commentRss>http://www.gonten.com/adscode/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>QQ天气预报完美小偷JS源码</title>
		<link>http://www.gonten.com/qq-weather-js/</link>
		<comments>http://www.gonten.com/qq-weather-js/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 10:09:43 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=786</guid>
		<description><![CDATA[       今天在某地方门户网站上看到一个天气预报，显示“桂林 20℃～26℃ 多云转小雨 2009年9月19日 星期六 八月初一”，很干净，没有链接到某个网站。我的第一念头就是据为己有，哈哈，轻轻松松就拿了下来。        网上有很多天气预报小偷代码，但是有些不稳定，或者是显示很复杂，还带有链接。现在我要分享我刚扒来的QQ天气预报小偷代码了，稳定性是很好的，调用QQ官方数据，使用JS文件调用的。 使用方法（调用天气）,如：桂林 20℃～26℃ 多云转小雨 &#60;script src=&#8221;http://www.gonten.com/e/js/Gonten_weather.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62;  MiniSite.Weather.print(&#8220;Wealth&#8221;); &#60;/script&#62; 使用方法(调用天气加时间)：如：桂林 20℃～26℃ 多云转小雨 2009年9月19日 星期六 八月初一 &#60;script src=&#8221;http://www.gonten.com/e/js/Gonten_weather.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;http://www.gonten.com/e/js/Gonten_time.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62;  MiniSite.Weather.print(&#8220;Wealth&#8221;); &#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62;document.write(clock());&#60;/script&#62;           建议把JS文件下载到自己的空间上使用。]]></description>
		<wfw:commentRss>http://www.gonten.com/qq-weather-js/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>让有flash的页面也可以通过W3C验证</title>
		<link>http://www.gonten.com/flash-w3c/</link>
		<comments>http://www.gonten.com/flash-w3c/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:33:45 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=592</guid>
		<description><![CDATA[       以前在网页中插入flash后，网页就不能通过w3c验证了，有人说是embed标签的原因，确实好像使用embed标签的网页都不能通过w3c，看了w3c是不承认embed标签了。使用Dreamweaver插入flash后，会自动生成很多代码，而且还会生出一个AC_RunActiveContent.js文件，我以为DW生成的文件应该会通过w3c，结果也不行。        今天我发现某个含有flash的页面竟然也可以通过w3c验证，原来使用object标签可以通过。 具体插入flash代码为： &#60;object  type=&#8221;application/x-shockwave-flash&#8221;  data=&#8221;flash.swf&#8221;  width=&#8221;400&#8243; height=&#8221;400&#8243;&#62;  &#60;param name=&#8221;movie&#8221;  value=&#8221;flash.swf&#8221; /&#62;  &#60;/object&#62;]]></description>
		<wfw:commentRss>http://www.gonten.com/flash-w3c/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>巧用CSS中的display:none隐藏统计代码</title>
		<link>http://www.gonten.com/css-display-none/</link>
		<comments>http://www.gonten.com/css-display-none/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 06:07:18 +0000</pubDate>
		<dc:creator>Gonten</dc:creator>
				<category><![CDATA[网站设计]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[站长]]></category>

		<guid isPermaLink="false">http://www.gonten.com/?p=481</guid>
		<description><![CDATA[      对于站长，CSS中的display:none应该很熟悉吧，通过display:none可以隐藏标签中的信息，如&#60;div style=&#8221;display:none&#8221;&#62;这里是要隐藏的代码&#60;/div&#62;，这样就可以隐藏信息了。       那什么时候需要隐藏信息呢，很常用的是把统计代码隐藏，隐藏统计代码可以避免外观影响，同样也可以正常统计信息，Gonten发现很多朋友还是让统计代码显示出来的，如显示CNZZ统计图标、51啦统计图标，其实统计代码完全不用显示出来的。      display:none还可以做什么，它可以做很多事，这就要自己去探索了。]]></description>
		<wfw:commentRss>http://www.gonten.com/css-display-none/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

