php 进度条实现代码

2015-01-24信息快讯网
<html> 
<head> 
</head> 
<body> 
<table width="400" border="0" cellspacing="1" cellpadding="1"> 
<tr> 
<td bgcolor="000000"> 
<table width="400" border="0" cellspacing="0" cellpadding="1"> 
<tr> 
<td bgcolor="ffffff"> 
<img src="bar.gif" src="bar.gif" width="0" height="16" id="percent_img" name="percent_img" align="absmiddle"> 
</td> 
</tr> 
</table> 
</td> 
<td> 
<span id="percent_txt" name="percent_txt">0%</span> 
</td> 
</tr> 
</table> 
</body> 
</html> 
<?php 
flush(); 
for($i=0;$i<=100;$i++) //循环输出100次JavaScript代码 
{ 
$width = $i * 4; 
echo "<SCRIPT>"; 
echo "percent_img.width=$width;"; //控制图片宽度 
echo "percent_txt.innerHTML='$i%';"; //控制百分比显示 
echo "</SCRIPT>"; 
for($j=0;$j<1000000;$j++) 
{ 
//为了演示进度条的效果,这里执行了一个空循环 
} 
flush(); 
} 
?>
POSIX 风格和兼容 Perl 风格两种正则表达式主要函数的类比(preg_match, preg_replace, ereg, ereg_replace)
php+jquery编码方面的一些心得(utf-8 gb2312)
php header示例代码(推荐)
PHP下利用header()函数设置浏览器缓存的代码
使用bcompiler对PHP文件进行加密的代码
php Notice: Undefined index 错误提示解决方法
PHP生成excel时单元格内换行问题的解决方法
php excel类 phpExcel使用方法介绍
php中使用ExcelFileParser处理excel获得数据(可作批量导入到数据库使用)
PHP连接SQLServer2005 的问题解决方法
在VS2008中编译MYSQL5.1.48的方法
php 随机记录mysql rand()造成CPU 100%的解决办法
DedeCMS dede_channeltype表字段注释
php cout&lt;&lt;的一点看法
php中$this-&gt;含义分析
php与XML、XSLT、Mysql的结合运用实现代码
php self,$this,const,static,-&gt;的使用
PHP获取163、gmail、126等邮箱联系人地址【已测试2009.10.10】
PHP 获取MSN好友列表的代码(2009-05-14测试通过)
PHP nl2br函数 将换行字符转成 &lt;br&gt;
php 分页函数multi() discuz
php URL编码解码函数代码
php 表单验证实现代码
PHP中查询SQL Server或Sybase时TEXT字段被截断的解决方法
PHP $_SERVER详解
php array_intersect()函数使用代码
PHP setcookie() cannot modify header information 的解决方法
Zend Studio for Eclipse的java.lang.NullPointerException错误的解决方法
PHP中str_replace函数使用小结
php preg_match_all结合str_replace替换内容中所有img
使用eAccelerator加密PHP程序
php include,include_once,require,require_once
php开发工具之vs2005图解
Win2003下IIS+PHP+MySQL+Zend配置步骤详解第1/2页
Win2003服务器安全加固设置--进一步提高服务器安全性
Windows2003 下 MySQL 数据库每天自动备份
实现 win2003 下 mysql 数据库每天自动备份
<b>一些常用的php函数</b>
©2014-2024 dbsqp.com