这是一个用PHP生成的纯JavaScript时钟
PHP代码不长,但是JavaScript代码就比较长了。
大家可以到http://disapart.oso.com.cn/temp/clock.php预览
也可以到http://disapart.oso.com.cn/temp/clock.txt下载原文件
$height = 200;
$width = 200;
$left = 100;
$top = 100;
?>
divShi echo $t; ?>.style.top = getPos ( echo $t; ?> ,shi+fen/12,50,0);
divShi echo $t; ?>.style.left = getPos ( echo $t; ?> ,shi+fen/12,50,1);
divFen echo $t; ?>.style.top = getPos ( echo $t; ?> ,fen ,75,0);
divFen echo $t; ?>.style.left = getPos ( echo $t; ?> ,fen ,75,1);
divMiao echo $t; ?>.style.top = getPos ( echo $t; ?> ,miao,99,0);
divMiao echo $t; ?>.style.left = getPos ( echo $t; ?> ,miao,99,1);
}
?>
setTimeout("onidle();",250);
}
//function_onidle_end
for($t=0;$t{
?>
style="z-index:4;position:absolute;"> echo $t; ?>
style="z-index:3;position:absolute;"> echo $t*5; ?>
style="z-index:2;position:absolute;"> echo $t*5; ?>
}
?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools