Home >Backend Development >PHP Tutorial >Original code of self-made clock php_PHP tutorial

Original code of self-made clock php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:23:521241browse

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...
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