|
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> | | | | | | | |