This is a pure JavaScript clock generated with PHP
The PHP code is not long, but the JavaScript code is relatively long.
You can preview it at http://disapart.oso.com.cn/temp/clock.php
You can also download the original file at http://disapart.oso.com.cn/temp/clock.txt
$height = 200;
$width = 200;
$left = 100;
$top = 100;
?>
My Clock Example
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; ?> }
?>
http://www.bkjia.com/PHPjc/532182.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532182.htmlTechArticleThis is a pure JavaScript clock generated with PHP. The PHP code is not long, but the JavaScript code is relatively long. You can preview it at http://disapart.oso.com.cn/temp/clock.php or...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn