QQ空间的背景无非三样:一是大家喜爱的flash,二是各种图片,三是背景音乐。下面我们就对这三种情况的QQ空间背景代码分别介绍。同时列出一部分适用于QQ空间背景代码的flash、图片、音乐等的网络资源供选择。
QQ空间背景代码(图片类)
1.QQ空间背景图片标准代码
<img src="javascript:document.getElementById('Mlogo').style.background='url(顶部一
条图片的地址)';document.getElementById('all').style.background='url(背景图片的地址)';">
如果你不想改顶部背景图片条的话QQ空间代码只要这样就够了:
<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>
鼠标点击后更改大背景的代码:
<span onclick="document.getElementById('all').style.background='url
(图片地址)';">显示文字</span>
鼠标点击后更改顶部条内背景的代码:
<span onclick="document.getElementById('MLOGO').style.background='url
(图片地址)';">显示文字</span>
设置顶部图片条透明度:
<img src="javascript:Mlogo.style.filter='alpha(opacity=30)';">
QQ空间背景代码(flash类)
以下全屏显示flash背景的QQ空间背景代码范例
<img src="javascript:document.getElementById('Mlogo').innerHTML+='<div style=\'position:absolute;top:0;left:0;\'><EMBED src=\'QQ空间背景flash地址
\' quality=high wmode=\'transparent\' WIDTH=\'925\' HEIGHT=\'655\'
TYPE=\'application/x-shockwave-flash\'></div>';">
WIDTH:透明FLASH宽度
HEIGHT:透明FLASH高度
top:透明FLASH与空间顶端的距离
left:透明FLASH与空间左端的距离
QQ空间背景代码(音乐类 )
</textarea><embed src=http://你的背景音乐地址 width=0 height=0 loop= true> (此代码不显播放器)
</textarea><embed src=http://你的背景音乐地址 width=2 height=2 loop= true> (此代码显播放器)
推荐一组QQ空间背景flash
树: http://cardimg.163.com/cards/diycard/front/front_47.swf
郁金香: http://cardimg.163.com/cards/diycard/front/front_48.swf
花-5: http://cardimg.163.com/cards/diycard/front/front_49.swf
A Loving Wish: http://cardimg.163.com/cards/diycard/front/front_50.swf
鱼: http://cardimg.163.com/cards/diycard/front/front_51.swf
椰树: http://cardimg.163.com/cards/diycard/front/front_52.swf
雪花: http://cardimg.163.com/cards/diycard/front/front_53.swf |