Home  >  Article  >  Web Front-end  >  Use a table to output numbers between 1-1000 to implement code (with special effects)_javascript skills

Use a table to output numbers between 1-1000 to implement code (with special effects)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:36:061172browse
复制代码 代码如下:



<br>
<script> <br>var cc= null; <br>function show(obj) <br>{ <br>cc=obj.style.backgroundColor; <br>obj.style.backgroundColor="Red"; <br>} <br>function disshow(obj) <br>{ <br>obj.style.backgroundColor=cc; <br>} <br></script>


echo "echo "";
$i=0;
$k=1;
while($i<100)
{
$i ;
if($i%2==0)
$bgc="#ccba6e";
else
$bgc="#eefa43";
echo "onmouseout='disshow(this)' >";
$j=0;
while($j<10)
{
echo "";
$j ;
$k ;
}
echo "";
}
echo "

用表格输出1-1000之间的数字

".$k."
";
?>



Use a table to output numbers between 1-1000 to implement code (with special effects)_javascript skills
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