| 分类: 校园文化类它山石可攻玉 |
代码特效:
<script><script>
<!--
yourLogo='在这里输入你的博客网址';
logoFont='Arial';
logoSize=1; // 1-7 only! for larger font sizes alter logoWidth/Height accordingly!
logoColor='811188';
logoWidth=70;
logoHeight=70;
logoSpeed=0.03;
<!--
yourLogo='在这里输入你的博客网址';
logoFont='Arial';
logoSize=1; // 1-7 only! for larger font sizes alter logoWidth/Height accordingly!
logoColor='811188';
logoWidth=70;
logoHeight=70;
logoSpeed=0.03;
//Nothing needs altering below!
yourLogo=yourLogo.split('');
L=yourLogo.length;
Result="<font face="+logoFont+" size="+logoSize+" color="+logoColor+">";
TrigSplit=360/L;
br=(document.layers)?1:0;
if (br){
for (i=0; i < L; i++)
document.write('<layer name="ns'+i+'" top=0 left=0 width=14 height=14">'+Result+yourLogo[i]+'</font></layer>');
}
else{
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < L; i++)
document.write('<div id="ie" style="position:absolute;top:0px;left:0px;width:14px;height:14px">'+Result+yourLogo[i]+'</font></div>');
document.write('</div></div>');
}
ypos=0;
xpos=0;
step=logoSpeed;
currStep=0;
Y=new Array();
X=new Array();
Yn=new Array();
Xn=new Array();
for (i=0; i < L; i++)
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function animateLogo(){
if (!br)outer.style.pixelTop=document.body.scrollTop;
for (i=0; i < L; i++){
var layer=(document.layers)?document.layers['ns'+i]:ie[i].style;
layer.top =Y[i]+logoHeight*Math.sin(currStep+i*TrigSplit*Math.PI/180);
layer.left=X[i]+logoWidth*Math.cos(currStep+i*TrigSplit*Math.PI/180);
}
currStep-=step;
}
function Delay(){
for (i=L; i >= 0; i--)
{
Y[i]=Yn[i]+=(ypos-Yn[i])*(0.1+i/L);
X[i]=Xn[i]+=(xpos-Xn[i])*(0.1+i/L);
}
animateLogo();
setTimeout('Delay()',20);
}
window.onload=Delay;
// -->
</script>
添加方法:
1,控制面板----首页内容维护----定义空白模板----新建,创建模块标题,粘贴代码(粘贴代码前,在普通模式下打一个空格,然后再进入源代码编辑模式,这时你会看到源代码中已经有一行代码了(
<DIV> </DIV>
),这时你再将自己的代码粘贴到它的下面即可,因为CSS代码粘贴到新建立的模块中,没有别的内容,不会显示的)----保存并返回;
2,控制面板----定制我的首页----点添加模块----点选创建好的模块标题---勾上并保存,移动新建面板位置--保存设置。做第二步的目的是将建立好的模块在博客个人首页里呈现出来。
或者直接把以上代码粘贴到以前你建立的模块中--找一个以前你建立的模块,并且现在正在使用这个模块,粘贴代码。点击保存即可!
前一篇:新浪首发:页面加载时马赛克效果
后一篇:新浪首发:随鼠标飘动的心

加载中…