Home > php教程 > PHP源码 > body text

图片计数器实例教程

WBOY
Release: 2016-06-08 17:30:01
Original
1311 people have browsed it

以了计数器的漂亮,我们经常会用图片做统计的数字1,2到10我们只要做0,9的图片数字,然后用下面的方法就来做出漂亮的计数器出来哦。

<script>ec(2);</script>

 $fp = fopen ($countfile, "r"); //以只读模式打开文件
 $array_count = 1; //定义一个表示数组元素位置的变量,下面要用
 while (! feof($fp)) {
  $current_number = fgetc($fp);
  $counter_array[$array_count] = $current_number;
  $array_elements = count ($counter_array);
  $array_count = $array_count + 1;
 }
 //显示代码
 echo ("

欢迎您,第");

 for ($array_id = 1;$array_id   echo ("图片计数器实例教程");
 }

Related labels:
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 Recommendations
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!