Original code of self-made clock php_PHP tutorial

WBOY
Release: 2016-07-13 17:23:52
Original
1223 people have browsed it

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; ?>

}
?>

www.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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!