<p>许多QQ空间的新手不会搜集代码,看着别人做的QQ空间超酷,自己却不知怎么入手。学习从模仿开始,我们可以先把别人的空间代码复制一份,弄个和他一样的QQ空间来研究研究。 </p><p> 第一步:首先我找一位朋友的QQ空间(在复制前最好先征得对方的同意),呵呵~卡通的透明背景Flash、飘移的文字……估计大多数人都喜欢这种布局吧(如图1)。</p><p>
[分享]把别人漂亮的QQ空间克隆一份
</p><p> 图1</p><p> 第二步:找到要复制的QQ空间后,记下对方的QQ号码,接着在IE浏览器中输入“http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin=对方的QQ号码&type=0”,此时会打开一个XML文件,在QQ空间中所有自定义的模块和设置都在这个XML文件里了,以下是部分代码: </p><p><?xml version="1.0" encoding="gb2312" ?> <br/>- <data><br/> <style>7</style> <br/> <scenari_no>496</scenari_no> <br/> <icoke>-1</icoke> <br/>- <items><br/>- <item><br/> <type>1</type> <br/> <itemno>1333</itemno> <br/> <posx>0</posx> <br/> <posy>0</posy> <br/> <width>0</width> <br/> <height>0</height> <br/> <zindex>0</zindex> <br/> </item><br/>- <item><br/> <type>6</type> <br/> <itemno>703</itemno> <br/> <posx>706</posx> <br/> <posy>280</posy> <br/> <width>210</width> <br/> <height>120</height> <br/> <zindex>0</zindex> <br/> </item><br/>- <item><br/> <type>7</type> <br/> <itemno>3942</itemno> <br/> <posx>0</posx> <br/> <posy>0</posy> <br/> <width>1</width> <br/> <height>73</height> <br/> <zindex>0</zindex> <br/> </item><br/> </items></p><p> 第三步:新建一个文本文件,接着将XML文件的“<itemno></itemno>”中的数字以如下形式进行整理:</p><p> 1333|703|3942|3942……</p><p> 第四步:在IE浏览器中输入“http://q-zone.qq.com/fcg-bin/cgi_diy_window.fcg?uin=对方的QQ号码&type=11&wndid=在文本文件中整理的数字”,呵呵~打开后你看到了什么?是不是有些像自定义的代码呢?下面是部分代码:</p><p><?xml version="1.0" encoding="gb2312" ?> <br/>- <data><br/>- <window><br/> <id>219107532</id> <br/> <title>滚动条</title> <br/>- <item><br/> <id>18134</id> <br/> <style>0</style> <br/> <img>http://</img> <br/> <title /> <br/> <url>http://</url> <br/> <content><img src="javascript:document.getElementById</p><p> ('initd').style.overflow='hidden';"></content> <br/> </item><br/> </window><br/>- <window><br/> <id>220026097</id> <br/> <title>flash2</title> <br/>- <item><br/> <id>17966</id> <br/> <style>0</style> <br/> <img>http://</img> <br/> <title /> <br/> <url>http://</url> <br/> <content><img src="javascript:document.getElementById ('Mlogo').innerHTML+='<div </p><p> style=\'position:absolute;top:0;left:0;\'><EMBED </p><p> src=\'http://imgfree.21cn.com/free/flash/9.swf\' quality=high wmode=\'transparent\' </p><p> WIDTH=\'925\' HEIGHT=\'655\' TYPE=\'application/x-shockwave-flash\'></div>';"></content> <br/> </item><br/> </window><br/>- <window><br/> <id>216267259</id> <br/> <title>鼠标</title> <br/>- <item><br/> <id>17780</id> <br/> <style>0</style> <br/> <img>http://</img> <br/> <title /> <br/> <url>http://</url> <br/> <content><img src="javascript:document.body.style.cursor='url</p><p> (\'http://qqjia.com/learn/q-zone/ani6/1.ani\')'"></content> <br/> </item><br/> </window></p><p> 对,就是它!在打开页面中黑色显示的文字就是该QQ空间自定义的模块代码了。</p><p> 第五步:你现在要做的就是将页面中黑色的自定义代码一一添加到你的QQ空间里即可。<br/></p><br/> |
|