Rumah  >  Artikel  >  hujung hadapan web  >  用表格输出1-1000之间的数字实现代码(附特效)_javascript技巧

用表格输出1-1000之间的数字实现代码(附特效)_javascript技巧

WBOY
WBOYasal
2016-05-16 17:36:061123semak imbas
复制代码 代码如下:



<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{
$i++;
if($i%2==0)
$bgc="#ccba6e";
else
$bgc="#eefa43";
echo "onmouseout='disshow(this)' >";
$j=0;
while($j{
echo "";
$j++;
$k++;
}
echo "";
}
echo "

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

".$k."
";
?>



用表格输出1-1000之间的数字实现代码(附特效)_javascript技巧
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn