22、渐显水波放大链接

22、渐显水波放大链接

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

document.write('<style><!--');

document.write('.ringstyle {  position:absolute;   visibility:visible;    top:-50px;      font-size:5pt;  font-family:Verdana;}');

document.write('--></style>');

document.write('<div id="ring" class="ringstyle">O</div>');

var x,y

var timer

var i_fontsize=0

var step=0

var thisx,thisy

function handlerMM(e){       x = (document.layers) ? e.pageX : event.clientX;       y = (document.layers) ? e.pageY : event.clientY;}

function ringup() { if (document.all) {        thisx = x;        thisy = y;        ringup2();       }}

function ringup2() {

       if (i_fontsize<=1530) { 

              document.all.ring.style.fontSize=i_fontsize

              document.all.ring.style.color="rgb(255,"+Math.floor(i_fontsize/6)+","+Math.floor(i_fontsize/6)+")"

           document.all.ring.style.posLeft=thisx-(Math.floor(i_fontsize/3))

              document.all.ring.style.posTop=thisy-(Math.floor(i_fontsize/1.4))    

              step+=4

              i_fontsize+=step

              timer=setTimeout("ringup(2)",50) }

       else {             clearTimeout(timer);             i_fontsize=0;          step=0;           document.all.ring.style.posTop=-10000;       }}

document.onmousemove = handlerMM;

// End -->

</SCRIPT>

<a href="http://" onMouseOver="ringup()" title=""><font color="#000000" face="宋体" size="">dddddddddd</font></a>

 

 

Write a comment

Comments: 0