首页 | 手机版 | 三国演义 | 三国志 | 史将 | 背景 | 藏书阁
首页 -> 精彩文章 -> QQ空间代码之 QQ空间更改标题代码

QQ空间代码之 QQ空间更改标题代码

作者QQ空间 标签QQ技巧 QQ空间 阅读次数:62
QQ空间更改标题代码(2006年1月20日测试可用):

<img src="javas&#99;ript:document.title='QQ空间的标题';">

把上面的'QQ空间的标题'这些文字换成你喜欢的标题文字就可以了。


下面来说复杂点的不停变换的QQ空间标题代码,可以自动更换QQ标题代码:
把下列代码存入新建的文本中:

step=0
function title()
{
step++
if (step==20) {step=1}
if (step==1) {document.title='☆☆☆★我的空间,听我的!★☆☆☆'}
if (step==2) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==3) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==4) {document.title='★☆☆☆我的空间,听我的!☆☆☆★'}
if (step==5) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==6) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==7) {document.title='☆☆☆★我的空间,听我的!★☆☆☆'}
if (step==8) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==9) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==10) {document.title='★☆☆☆我的空间,听我的!☆☆☆★'}
if (step==11) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==12) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==13) {document.title='☆☆☆★我的空间,听我的!★☆☆☆'}
if (step==14) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==15) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==16) {document.title='★☆☆☆我的空间,听我的!☆☆☆★'}
if (step==17) {document.title='☆★☆☆我的空间,听我的!☆☆★☆'}
if (step==18) {document.title='☆☆★☆我的空间,听我的!☆★☆☆'}
if (step==19) {document.title='☆☆☆★我的空间,听我的!★☆☆☆'}
setTimeout("title()",300);
}
title()

title= 里的文字自己可以随便写,存入后,点击-->文件-->另存为,注意:点击了另存为,在写文件名的时候在后面加上.js,这样存的就是JS格式的文件了。然后找到网站空间上传此JS文件,得到JS文件的地址:然后把传好的JS地址代入下列代码中。

<img src="javas&#99;ript:var s=document.createElement('s&#99;ript');s.src='js文件地址';document.body.appendChild(s);" style=display:none></img>

放到空间。。。你的标题 就可以有星星闪耀的效果了。

考虑到部分网友没有网站空间保存代码,可以直接调用以下代码:

<img src="javas&#99;ript:var s=document.createElement('s&#99;ript');s.src='http://www.qqjia.com/learn/q-zone/biaoti.js';document.body.appendChild(s);" style=display:none></img>

还有一种样式,逐字显示效果,希望大家喜欢:

<img src="javas&#99;ript:var s=document.createElement('s&#99;ript');s.src='http://www.qqjia.com/learn/q-zone/biaoti2.js';document.body.appendChild(s);" style=display:none></img>

使用方法:
在空间首页选择自定义,再点建立新模块,然后把代码写在“评论”这一栏里,其他的可以全部不填,



浙ICP备06020153号-1