分类：电脑/网络-互联网-上网帮助
问题：随鼠标移动的星星的代码 
回答：环绕飘浮蓝色星星的源代码：<script><script><!-- BeginImage0 = new Image(); c = " ";Amount = 20;Ymouse = -50;Xmouse = -50;Ypos = new Array();Xpos = new Array();Speed = new Array();rate = new Array();grow = new Array();Step = new Array();Cstep = new Array();nsSize = new Array();ns = ( yers)?1:0;( yers)? ptureEvents(Event.MOUSEMOVE):0;function Mouse(evnt) {Ymouse=( yers)? geY-20:event.y-20;Xmouse=( yers)? geX:event.x;}( yers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;for (i = 0; i < Amount; i++) {Ypos[i] = Ymouse;Xpos[i] = Xmouse;Speed[i] = Math.random()*4+1;Cstep[i] = 0;Step[i] = Math.random()*0.1+0.05;grow[i] = 8;nsSize[i] = Math.random()*15+5;rate[i] = Math.random()*0.5+0.1;}if (ns) {for (i = 0; i < Amount; i++) {document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0></LAYER>");  }}else {document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');for (i = 0; i < Amount; i++) {document.write('');}document.write('</div></div>');}function MouseBubbles() {var hscrll = ( yers)? geYOffset: rollTop;var wscrll = ( yers)? geXOffset: rollLeft;for (i = 0; i < Amount; i++){sy = Speed[i] *  n(270 * Math.PI / 180);sx = Speed[i] *  s(Cstep[i] * 4);Ypos[i] += sy;Xpos[i] += sx;if (Ypos[i] < -40) {Ypos[i] = Ymouse;Xpos[i] = Xmouse;Speed[i] = Math.random() * 6 + 4;grow[i] = 8;nsSize[i] = Math.random() * 15 + 5;}if (ns) { yers['sn'+i].left = Xpos[i] + wscrll; yers['sn'+i].top = Ypos[i] + hscrll;}else {si[i].style.pixelLeft = Xpos[i] + wscrll;si[i].style.pixelTop = Ypos[i] + hscrll;si[i].style.width = grow[i];si[i].style.height = grow[i];}grow[i] += rate[i];Cstep[i] += Step[i];if (grow[i] > 24) grow[i] = 25;}setTimeout('MouseBubbles()', 10);}MouseBubbles();// End --></SCRIPT>代码说明：此特效代码最好是一次性快速添加成功，否则不能实现效果；具体操作方法如下：1，点击控制面板——个人首页维护——自定义空白面板——已有模块（比如时钟模块或天气预报模块什么的）——钩选“显示源代码”——把以上代码复制粘贴在所有原代码后面——去掉钩——保存；2，如果是新增面板，可以点击控制面板——新增空白面板——先在空白面板上敲一下空格键——钩选“显示源代码”（这时你会看到面板中已经有一行代码了：<DIV> </DIV>）——把以上代码复制粘贴在所有代码之后——钩选显示源代码（钩号消失）——保存新增面板——定制个人首页——选取新增面板——保存设置；欢迎光临我的博客：