<?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.askgame.com.cn/index.php/game/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askgame.com.cn</link>
	<description>一切对我而言都是游戏! Everything is Game!</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:58:50 +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>映山红密码生成器</title>
		<link>http://www.askgame.com.cn/index.php/game/369</link>
		<comments>http://www.askgame.com.cn/index.php/game/369#comments</comments>
		<pubDate>Thu, 02 Feb 2012 04:16:08 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[作品]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=369</guid>
		<description><![CDATA[我这个博客想来闲置很久了，一直以来都是因为WP版本的问题还是什么问题就没有更新下去，当然，其实这是为自己的懒在找借口，年前更新一下WP，还是不行，年后干脆重新删除重新上传，直到早两天才把数据还原过来，作为新的一年的第一篇博客，我把去年年底做的一个小玩意-映山红密码生成器 给大家分享一下。 映山红密码生成器是我的第一个也可能是最后一个FLEX作品，下载地址请进入：http://www.cjxtv.com/app/pwdcreator/ ，映山红密码生成器是我们看到去年年底的密码泄露事件而做的一个小工具，工具很简单根据你输入的密码和识别码生成一个指定位数的密码，然后可以在软件里面进行管理。 总结一下这次的经验吧： 1. flex因为需要安装AIR，而AIR普及程度还是不高，不符合单位要求，这个技术在我们这要灭绝了。 2.AS3没有自带的函数，这是个麻烦事，不过网上的大神们已经给大家写好了算法，各位请百度一下 3.UI真的很重要 &#160;]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/369/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用CSS实现浮动窗口,如浮动QQ客服等效果</title>
		<link>http://www.askgame.com.cn/index.php/game/359</link>
		<comments>http://www.askgame.com.cn/index.php/game/359#comments</comments>
		<pubDate>Wed, 07 Jul 2010 07:20:04 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[我的代码世界]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=359</guid>
		<description><![CDATA[今天接到一个单子,客户要求在屏幕当中网站导航的部分在页面滚动的时候导航部分位置不变,即不随滚动条滚动而滚动,遇到这种情况,相信很多的朋友首先想到的是利用JS来制作,但是,实际上还有更简单的方法,仅仅利用CSS就能实现类似效果.效果如图所示 1.默认情况 2.发生滚动后截图 ,注意左侧位置 要实现这个效果,首先介绍一个CSS属性:position,position可以设定元素的定位方式,其中relative和absolute是常用的两个属性值,而今天效果所用到的是另外一个值:fixed,fixed能够让元素固定在页面中的固定位置,假定我们要固定的元素ID为sgagame,我们首先进行如下设定: #sgagame {position:fixed;top:8px;} 利用top和left等进行定位,需要注意的是,使用left等的时候,是相对浏览器窗口来说的.设定好之后,测试下,是不是很完美了?当然,前提是你没使用那个万恶的IE6,IE6及以下版本的IE是根本不支持position:fixed属性的,我们需要针对IE6制作特别的版本的CSS,首先用一个div将body里面的内容全部包含,如 网页内容 body {_overflow:hidden;_width:100%;_height:100%;} .askgame {_width:100%;_height:100%;_overflow-y:scroll;_overflow-x:auto;} 到此就基本完成了,其中_width是CSS的HACK,详情请在本站(askgame.com.cn)查找,转载请注明来源]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/359/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEDECMS中对发布人的修改</title>
		<link>http://www.askgame.com.cn/index.php/game/352</link>
		<comments>http://www.askgame.com.cn/index.php/game/352#comments</comments>
		<pubDate>Thu, 17 Jun 2010 15:52:06 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[dede]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=352</guid>
		<description><![CDATA[需求:因为我们的网站(oemay女人妆)中的新闻基本都是采集的,但是因为采集的都是发布人都是同一人,而我们为了能更好的统计编辑工作业绩,希望在采编进行审核和二次编辑并发布的时候,将发布人替换成为采编的信息.简单的说,就是希望实现谁审核,发布人就是谁的效果 关键点: 1.在DEDE的数据库中的文档主表为dede_archives,其中mid字段为发布人字段,类型为mediumint(8) 2.DEDE的文章列表中审核,生成,推荐等操作的相关文件dede/archives_do.php 3.类userlogin中的getUserID方法可以获取当前编辑的ID号 修改方法存档: 找到dede/archives_do.php的225行,在下方找到 $maintable = ( trim($row['maintable'])=='' ? '#@__archives' : trim($row['maintable']) ); if($dsql->ExecuteNoneQuery("Update `#@__arctiny` set arcrank='0' where id='$aid' ")) { $dsql->ExecuteNoneQuery("Update `#@__taglist` set arcrank='0' where aid='$aid' "); } if($row['issystem']==-1) { $dsql->ExecuteNoneQuery("Update `".trim($row['addtable'])."` set arcrank='0' where aid='$aid' "); } else { $dsql->ExecuteNoneQuery("Update `$maintable` set arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' where id='$aid' "); } $pageurl = [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/352/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QQ概念</title>
		<link>http://www.askgame.com.cn/index.php/game/336</link>
		<comments>http://www.askgame.com.cn/index.php/game/336#comments</comments>
		<pubDate>Fri, 07 May 2010 02:20:14 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[我的代码世界]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=336</guid>
		<description><![CDATA[5月到现在,把一些该做的事情做了,这几天闲了下来,等老鬼那边的工序好了以后继续做下一步,今天早上就看月光 可能 还有一些其他的关于前端的一些博客,无意中看到了腾讯官方的一些技术博客,居然看到了腾讯QQ概念版,看起来很是酷. 拖拽,多点触摸,还有很COOL的好友管理,爽不是一点点,看看视频吧 不过看这个固然过瘾,还是不如看他们设计的那些过程过瘾,那些草稿,还有纸质模型 从来没有去过这样的大公司看过,很是羡慕他们的气氛&#8230;.]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/336/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEDECMS中增加自定义属性的方法</title>
		<link>http://www.askgame.com.cn/index.php/game/333</link>
		<comments>http://www.askgame.com.cn/index.php/game/333#comments</comments>
		<pubDate>Thu, 06 May 2010 03:51:03 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=333</guid>
		<description><![CDATA[今天老鬼跟我说我们的新站可能需要一些新的属性,而在DEDECMS中提示(DEDE最新版本6.5) 注意事项：这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型 老鬼感觉不爽,让我改一下,印象中DEDE这个属性是数据库中有枚举的,查看数据库结构搞定~方法如下 1.修改表:dede_arcatt 增加一条记录 如: INSERT INTO `dede_arcatt` VALUES (9, &#8216;x&#8217;, &#8216;oemay&#8216;),(10, &#8216;y&#8217;, &#8216;游戏世家&#8216;); 2.修改表:dede_archives 修改表结构 ALTER TABLE `dede56`.`dede_archives` MODIFY COLUMN `flag` SET(&#8216;c&#8217;,'h&#8217;,'p&#8217;,'f&#8217;,'s&#8217;,'j&#8217;,'a&#8217;,'b&#8217;,'x&#8217;,'y&#8217;); Ok完工]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/333/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dede中设置水印无效的解决办法</title>
		<link>http://www.askgame.com.cn/index.php/game/327</link>
		<comments>http://www.askgame.com.cn/index.php/game/327#comments</comments>
		<pubDate>Thu, 29 Apr 2010 14:03:23 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[我的代码世界]]></category>
		<category><![CDATA[dede]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=327</guid>
		<description><![CDATA[虽然很喜欢用DEDE，但是DEDE还是有很多地方确实没有注意，设置水印无效是一个老问题了，刚刚发布的5.6里面还是没有解决，我们还是来看看解决的办法吧 方法一：选左侧的“系统”&#8212;-图片水印设置&#8212;-在右侧的“DedeCms系统配置参数 &#8211; 图片水印设置”的“添加水印的图片大小控制（设置为0为不限）：”中设置“宽：0”，“高：0”，再点“确定”，这种方法的弊端是只是让水印消失，实际上关闭水印还是可以的； 方法二：找到水印图片位置/data/mark/mark.png，上传新的水印图片将原图片替换。]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/327/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>防止图片过大的方法</title>
		<link>http://www.askgame.com.cn/index.php/game/325</link>
		<comments>http://www.askgame.com.cn/index.php/game/325#comments</comments>
		<pubDate>Mon, 15 Mar 2010 12:53:37 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[我的代码世界]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=325</guid>
		<description><![CDATA[在制作网页的时候，经常会遇到图片过大，而导致整个网页变形的情况，特别是在一些CMS中的新闻页，上传图片的大小是没有办法去控制的，但是我们可以用JS的办法来控制指定元素内的图片大小。 演示地址见：江西威敏作品页http://www.jxweimin.com/work/201003/shanghaijiakehuoyundaili_36.html var maxwidth=600; function set_img_size(obj, width) { if (!obj) return ; if (!width) { width = obj.clientWidth * 0.9; if (width < 400) return; /*设置图片的限定宽度*/ } img_items = obj.getElementsByTagName("img") if (img_items) { for (i=0; i width) { img_items[i].style.width = width + "px"; if (s_height == img_items[i].height) { img_items[i].style.height = ((width / s_width) * img_items[i].height) [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/325/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEDECMS栏目内容无法插入的解决办法</title>
		<link>http://www.askgame.com.cn/index.php/game/322</link>
		<comments>http://www.askgame.com.cn/index.php/game/322#comments</comments>
		<pubDate>Sun, 07 Mar 2010 08:58:18 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=322</guid>
		<description><![CDATA[在给江西威敏套CMS的时候，使用DEDECMS的栏目内容，发瑞在IE下添加不了内容，IE状态栏就出现了一个错误，如下。 行：33 Char:11707 错误：由于出现错误800a025e 而导致此项操作无法完成。 代码：0 URL：http://www.jxweimin.com/include/FCKeditor/editor/fckeditor.html?InstanceName=content&#038;Toolbar=Default&#8230;.. 看链接的英文估计是那个内容输入编辑页面，由于是新建的，所以是空值，没有进行界限检测吗?所以出错。。于是栏目内容便写不入数据库。或者说没能赋值给生成HTML文档的处理文件。。 GOOGLE了一下，得到如下解决方案,目前有两种方法： 1.设置一个默认值给fceditor.value, 例如 2.或者在editor/js/fckeditorcode_ie.js文件中添加以下代码： =========================================================================== 解决方法如下： =========================================================================== 在include/FCKeditor/editor/js/fckeditorcode_ie.js文件中添加以下代码： ..IEquals(&#8216;body&#8217;)){if (FCK.EditorDocument.body.childNodes.length==1&#038;&#038;FCK.EditorDocument.body.firstChild==D){ /* INSERT HERE 在这插入哦。。 * Bug #1764: Don&#8217;t move the selection if the * current selection isn&#8217;t in the editor * document. * Fixes FCKeditor stealing focus when empty */ if ( FCKSelection._GetSelectionDocument( FCK.EditorDocument.selection ) != FCK.EditorDocument [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/322/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中base64_encode()加密和DEDEEIMS的更改数据表前缀</title>
		<link>http://www.askgame.com.cn/index.php/game/315</link>
		<comments>http://www.askgame.com.cn/index.php/game/315#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:59:38 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[dede]]></category>
		<category><![CDATA[eims]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=315</guid>
		<description><![CDATA[今天在使用DEDE做的EIMS的时候，出现了一个小问题，当我更改其数据表前缀后，添加新闻报错，找不到dede_archives表，我以为是程序的问题，找了半天，在程序中始终无法找到问题所在，就快要疯了的时候，总算在数据库当中找到了原因，在dede_channeltype中有个maintable的字段，这个字段默认为dede_archives，如果你更改了数据表前缀，当然就找不到dede_archives这个表了，于是程序出错。 找到原因，马上开始弄，本以为在安装时的sql语句文件中能方便的进行修改，但未想到dede对sql语句使用MIME base64 进行了编码，一下无语，只好把SQL语句加在了程序当中。搞定。 心得如下： 1.php中的base64_decode()和base64_encode()方法可以对数据进行MIME base64的编码，Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一，可用于在HTTP环境下传递较长的标识信息，例如电子邮件的主体。decode为解码，encode为编码。 示例： //来源于PHP手册 $str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw=='; echo base64_decode($str); //This is an encoded string 2.DEDE EIMS中当用户更改了数据表前缀后，在添加新闻动态等出现找不到表的错误提示时的修改方法。 打开install下面的index.php在约228行左右找到： $cquery = "Update `{$dbprefix}sysconfig` set value='{$dfstyle}' where varname='cfg_df_style';"; mysql_query($cquery,$conn); 在其后面添加如下代码： //更新自定义模型中的主表数据 --by 癫狂蚊子 2010年1月30日 $cquery = "Update `{$dbprefix}channeltype` set maintable='{$dbprefix}archives' where maintable='dede_archives';"; mysql_query($cquery,$conn); //更新自定义模型中的主表默认的主表名 --by 癫狂蚊子 2010年1月30日 $cquery = "alter table `{$dbprefix}channeltype` alter [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/315/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP中时区问题的解决&#8211;使用北京时间</title>
		<link>http://www.askgame.com.cn/index.php/game/313</link>
		<comments>http://www.askgame.com.cn/index.php/game/313#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:13:18 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[时区]]></category>
		<category><![CDATA[时间]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=313</guid>
		<description><![CDATA[在PHP中时间默认情况下使用的是格林威治时间，做设计PHP程序的时候，可能会发现时间和本地时间相差8个小时，问题的原因就是时区的设定！解决办法可以有： 1.修改PHP的配置文件： 打开PHP.INI，找到date.timezone,前面有;号就去掉，后面加上PRC(中华人民共和国的缩写)，重启服务即可。 date.timezone = PRC 2.在程序中设定时区 php中有一个date_default_timezone_set方法，可以在需要时间的地方前加上一句date_default_timezone_set(Asia/Taipei); 这个值大家可以参考一下PHP文档，让我很郁闷的是，有shanghai,chongqing等 我好像在手册当中没有发现beijing。。。]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/313/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

