<HTML><HEAD>
<SCRIPT language=javascript>var orbitText = '@';
var orbitstyle = 'position: absolute; visibility:visible; font-family:Arial; font-size:11px; width=150px; height=100px; top:-200px; left:-200px; z-index:1;'
var orbitlayer = 'top=-200 left=-200 width=150 height=100 visibility="show"'
var orbitFont = 'Arial, Helvetica';
var orbitFontSize = '11px';
var step = 20;
var om_x = 40;
var om_y = 40;
var x_bias = 50;
var y_bias = 50; timerDelay = 1;
var c=0;var timer; var a; var b; var ax; var ay; var x; var y; var f = 0;function handle(ev)
{
clearTimeout(timer);
x = (document.layers) ? ev.pageX : event.clientX
y = (document.layers) ? ev.pageY : event.clientY
timer = setTimeout("turn()",1)
return true;
}function turn()
{
if (f>360) {f = 0;d=0}
a = Math.cos(f/180*3.1415);
b = Math.sin(f/180*3.1415);
ax = (x - x_bias) + (om_x * a)
ay = (y + y_bias) + (om_y * b)
if (document.all)
{
document.all.orbit.style.posLeft = ax;
document.all.orbit.style.posTop = ay;
}
else
{
document.orbit.moveToAbsolute(ax,ay);
}f += step;
timer=setTimeout("turn()",timerDelay);
}</SCRIPT><SCRIPT>
if (document.layers) {window.captureEvents(Event.MOUSEMOVE); window.onmousemove = handle; }
else { document.onmousemove = handle; }if (document.layers) {
document.write('<layer id="orbit" ')
}else {
document.write('<div id="orbit" ')
document.write('style="' + orbitstyle + '">') }
document.write('<p align="center">' + orbitText + '</p>')if (document.layers) {document.write('</layer>') }</SCRIPT></HEAD>
<BODY>
</BODY></HTML>
这是跟随鼠标转动的代码
<SCRIPT language=javascript>var orbitText = '@';
var orbitstyle = 'position: absolute; visibility:visible; font-family:Arial; font-size:11px; width=150px; height=100px; top:-200px; left:-200px; z-index:1;'
var orbitlayer = 'top=-200 left=-200 width=150 height=100 visibility="show"'
var orbitFont = 'Arial, Helvetica';
var orbitFontSize = '11px';
var step = 20;
var om_x = 40;
var om_y = 40;
var x_bias = 50;
var y_bias = 50; timerDelay = 1;
var c=0;var timer; var a; var b; var ax; var ay; var x; var y; var f = 0;function handle(ev)
{
clearTimeout(timer);
x = (document.layers) ? ev.pageX : event.clientX
y = (document.layers) ? ev.pageY : event.clientY
timer = setTimeout("turn()",1)
return true;
}function turn()
{
if (f>360) {f = 0;d=0}
a = Math.cos(f/180*3.1415);
b = Math.sin(f/180*3.1415);
ax = (x - x_bias) + (om_x * a)
ay = (y + y_bias) + (om_y * b)
if (document.all)
{
document.all.orbit.style.posLeft = ax;
document.all.orbit.style.posTop = ay;
}
else
{
document.orbit.moveToAbsolute(ax,ay);
}f += step;
timer=setTimeout("turn()",timerDelay);
}</SCRIPT><SCRIPT>
if (document.layers) {window.captureEvents(Event.MOUSEMOVE); window.onmousemove = handle; }
else { document.onmousemove = handle; }if (document.layers) {
document.write('<layer id="orbit" ')
}else {
document.write('<div id="orbit" ')
document.write('style="' + orbitstyle + '">') }
document.write('<p align="center">' + orbitText + '</p>')if (document.layers) {document.write('</layer>') }</SCRIPT></HEAD>
<BODY>
</BODY></HTML>
这是跟随鼠标转动的代码
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货