|
QQ空间在不断的更新,使用QQ空间最新代码可以让我们的主页空间跟上潮流,本站在努力收集最新的QQ空间代码供大家参考。
1.背景皮肤 <img src=" javascript :document.getElementById('Mlogo').style.background='url (顶部一条图片的地址)';document.getElementById('all').style.background= 'url(背景图片的地址)';">
如果你不想改顶部图片条的话只要这样就够了: <img src=" javascript :document.getElementById('all').style.background= 'url(背景图片的地址)';">
2.清空顶部一条背景图片的方法: <img src=" javascript :Mlogo.style.background='';" style="display:none ;"><p>gainover</p>
3.去掉主题部分的滚动条的方法: <img src=" javascript :document.getElementById('initd').style.overflow ='hidden';"><p>gainover</p>
4.清除导航条, <img src="/ javascript :bt_6.style.display='none";bt_7.style.display=' none';bt_8.style.display='none';" style="display:none;"><p>gainover</p>
5.导航透明 <img src="/ javascript :bt_1.style.background="url()';bt_2.style .background='url()';bt_3.style. background='url()';bt_4.style.background='url()';bt_5.style.background= 'url()';bt_6.style.background='url()';bt_7.style.background='url()'; bt_8.style.background='url()';"></img><font color=red>gainover</font>
6.导航放在顶部的代码是:
<img src=" javascript :var s=document.createElement('script');s.src=' http://wonzone.go2.icpcn.com/qzone/public/mtv_top.js ';document.body. appendChild(s);" style=display:none></img>
如果想放低部的代码是:
<img src=" javascript :var s=document.createElement('script');s.src=' http://wonzone.go2.icpcn.com/qzone/public/mtv_bottom.js ';document.body .appendChild(s);" style=display:none></img>
7.自定义导航 <img src=" javascript :bt_1.style.background='url(图片地址) ';bt_2.style.background='url(图片地址)';bt_3.style.background='url (图片地址)';bt_4.style.background='url(图片地址)';bt_5.style. background='url(图片地址)';bt_6.style.background='url(图片地址 )';bt_7.style.background='url(图片地址)';bt_8.style.background= 'url(图片地址)';"></img>
<img src=" javascript :bt_1.innerText='流星主页';bt_2.innerText= '流星日志';bt_3.innerText='流星音乐';bt_4.innerText='流星留言'; bt_5.innerText='流星相册';bt_6.innerText='流星小屋';bt_7. innerText='流星档案';bt_8.innerText='流星互动';">
8.FLASH导航代码:
导航1. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/ 53094/upload/200510219465.swf" pluginspage="http://www.macromedia.com /shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type=" application/x-shockwave-flash" width="650" height="600" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu="true"></embed></td> </tr></table><p>mina.yaoer</p>
导航2. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/ 53094/upload/200510189456.swf" pluginspage="http://www.macromedia.com /shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type= "application/x-shockwave-flash" width="930" height="660" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu ="true"></embed></td> </tr></table><p>mina.yaoer</p>
导航3. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/ 53094/upload/200510206210.swf" pluginspage="http://www.macromedia.com /shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type=" application/x-shockwave-flash" width="680" height="450" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu="true"></embed></td> </tr></table><p>mina.yaoer</p>
代码里面的width=" " height=" " 是根据自己的需要设置的.! 我设置的是全屏的,就如我的示范空间一样,! 如果大家要全屏放置此导航.! 就要特别注意: 首先当然是需要先用一个代码 模块位置任意放的代码: <img src=" javascript : document.getElementById('initd').style.left='0' ;document.getElementById('initd').style.top='0';document.getElementById ('initd').style.width='925';document.getElementById('initd'). style.height='655';"></img> *皮肤全屏FLASH代码 <img src=" javascript :document.getElementById('Mlogo').innerHTML+=' <div style=\'position:absolute;top:0;left:0;\'><EMBED src=\'输入地址\' quality=high wmode=\'transparent\' WIDTH=\'925\' HEIGHT=\'655\' TYPE=\' application/x-shockwave-flash\'></div>';">
9.主页上的MTV播放器
<embed id="MediaPlayer963" src="MTV的地址" width="305" height="250" type= "video/x-msvideo" autostart="true" loop="false" align="left"> 家庭影院 来个简单点 设置好了的 <div id="layer25" style="padding:0px; LEFT: 2px; OVERFLOW: hidden; WIDTH: 634px; POSITION: absolute; TOP: 0px; HEIGHT: 530px; zindex: 90" resiziable="true"> <img oncontextmenu="return false" title="欢迎你的到来,如果只单独看见这张图片或者一个小 的MV,请刷新空间,这个是带专门皮肤的播放器" height="529" src="http://biz.cnhoo. com/wz/test/qq324181_GIF.jpg" width="707" align="middle" border="0"></div> <div id="layer23" style="left: 229px; overflow: hidden; width: 262px; position: absolute; top: 128px; height: 210px; zindex: 200; padding: 0px" resiziable="true"> <embed id="MediaPlayer963" src="http://mtv2.mooe.com/hr/bqb_carols.wmv" width="303" height="300" type="video/x-msvideo" autostart="true" loop= "false" align="left"></div>
| QQ空间背景代码 |
| |
| QQ空间的背景代码是一个ID为”ALL“的大TABLE表格的背景图片,仍然使用onload,onclick这类与img标签或超级连接配合就能自动/手动更改QZONE背景。看下QZONE源文件能发现靠上面一条BANNER图片条TD ID为MLOGO,配合图片ONLOAD与style.background属性可以更改: |
<img src="http://bbs.w3sea.net/_mytemp/qqzone/SMLOGO.gif" onload="document.getElementById('Mlogo').style.background='url(顶部一条图片的地址)';document.getElementById('all').style.background='url(背景图片的地址)';" style="display:none;">
不更改QQ空间顶部背景的代码:
<img src="http://bbs.w3sea.net/_mytemp/qqzone/SMLOGO.gif" onload="document.getElementById('all').style.background='url(背景图片的地址)';" style="display:none;">
点一下图片换一个背景的代码:
<a href="#" onclick="document.getElementById('Mlogo').style.background='url (http://www.oiblog.com/uploadfile/2005817132955865.JPG)'; document.getElementById ('all').style.background='url(http://www.oiblog.com /uploadfile/2005817133014672.JPG)';">火影忍者</a> 替换网页和名字就OK
| QQ空间flash代码 |
| |
代码里面的width=" " height=" " 是根据自己的需要设置的! 我设置的是全屏的,就如我的示范空间一样! |
导航1. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/53094 /upload/200510219465.swf"pluginspage="http://www.macromedia.com/shockwave/ download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="650" height="600" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu="true"></embed></td> </tr></table><p>mina.yaoer</p>
导航2. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/53094 /upload/200510189456.swf"pluginspage="http://www.macromedia.com/ shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="930" height="660" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu="true"></embed></td> </tr></table><p>mina.yaoer</p>
导航3. </textarea></table></tr><td><embed src="http://www.52blog.net/user1/53094/upload /200510206210.swf"pluginspage="http://www.macromedia.com/shockwave/download/ index.cgi?P1_Prod Version=ShockwaveFlash" type="application/x-shockwave-flash" width="680" height="450" play="true" loop="true" quality="high" scale="showall" wmode="transparent" menu="true"></embed></td> </tr></table><p>mina.yaoer</p>
| QQ空间播放器代码 |
| |
播放音乐主要需要以下几个步骤实现: 1.在QQ空间添加播放器(付费与免费均有); 2.到音乐搜索网站寻找可以播放的音乐; 3.在QQ空间的音乐盒中收藏找到的音乐,并且添加到播放器. |
说明:请先查看演示,再选择自己喜欢的播放器,每种播放器均可放在空间的任意地方,代码中的"top"是指“距离QQ空间顶端的长度”,“left”是指“距离空间左端的长度”,例如:"top:0"并且"left:0"就是表示该播放器处于空间的左上角,其他位置的请大家自行摸索。
代码一:
<img src="javascript:document.getElementById('Mlogo').innerHTML+='<div style=\'position:absolute;top:100;left:250;\'><iFRAME name=I1 src=\' http://www.caibird.com.cn/support/28_flashmp3player_ caibird/28_flashmp3player_caibird.asp \' frameBorder=\'0\' width=\'300\' scrolling=\'no\' height=\'320\'></div>';">
代码二:
<img src="javascript:document.getElementById('Mlogo').innerHTML+='<div style=\'position:absolute;top:0;left:50;\'><iFRAME name=I1 src=\' http://www.caibird.com.cn/support/29-miniflashmp3-caibird/29-flashMP3Player.asp \' frameBorder=\'0\' width=\'160\' scrolling=\'no\' height=\'72\'></div>';">
非常小巧的播放器,MP3 30余首
| QQ空间MTV代码 |
| |
代码如下: <EMBED src="地址"autostart="true"loop="true" width="450" height ="350" > | |
其中autostart="true"的意思是打开主页后自动播放,如果要手动播放的话,可以将它删掉;width和height分别是显示出来的MTV的宽和高,请大家根据需要调节。
QQ空间系列五——插入rm格式视频
我前面已经讲过如何插入MTV,对象全部是以.wav .wmv等格式结尾的文件,那么到底如何插入rm格式的视频文件呢?
代码相对复杂一些: </textarea><embed src=http://你的视频文件地址 type=audio/x-pn-realaudio-plugin console=clip1 controls=ImageWindow height=124 width=180 autostart=true loop=true>
另外还有以.avi或者.mpg结尾的,代码如下: </textarea><embed src="音樂源地址" border="0" width="320" height="240" type="application/x-mplayer2"></embed> | | | | | | | |