Translate Into English Coffee & Tea
ASP.NET 中的 AJAX ASP.NET 画图全接触 ASP.NET 与 XML 声明式数据绑定 ASP.NET 网页抓取
C# 基础 C# 类教程 C# 加密 ASP.NET 成员资格 非“自动化”处理 Excel
QuickAjax Ajax 完美的语法高亮器 Silverlight Popfly
通栏广告
千一控件-进度条高级应用(3)

请参阅:

 

本应用是高级应用(2)的扩展,只需要三个步骤。

一、制作或选取一张图片作为进度条样式。

二、在 Photoshop 中将第一步的图片去色,以作为背景图片。

三、在原来的调用代码的 Create 之后增加代码,形成完整代码如下,其中红色为新增加的内容,3.jpg、3Bg.jpg 为第一、二步中所做的图片,请确认地址。

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>千一控件——进度条</title>
</head>

<body>

<div id="progress"></div>
<div><input type="button" value="重新演示" onclick="javascript:progress.SetPos(0);" /></div>

<script type="text/javascript" language="javascript" src="http://www.cftea.com/upload/FI7OB3VPGFZCR02X/CProgress.js"></script>
<script type="text/javascript" language="javascript">
<!--
//千一网络 www.cftea.com

var progress = new CProgress("progress", 0, 100, 0);
progress.progressWidth = 300;
progress.progressHeight = 70;
progress.Create();

progress.progressId.style.backgroundImage = "url('http://www.cftea.com/upload/FI7OB3VPGFZCR02X/3Bg.jpg')";
progress.progressId.style.backgroundPosition = "center left";
progress.progressId.style.backgroundRepeat = "no-repeat";
progress.barId.style.background = "none";
progress.barId.style.backgroundImage = "url('http://www.cftea.com/upload/FI7OB3VPGFZCR02X/3.jpg')";
progress.barId.style.backgroundPosition = "center left";
progress.barId.style.backgroundRepeat = "no-repeat";


setInterval("progress.Inc();", 10);
//-->
</script>

</body>

</html>

文章评论
标题:必填
内容:
文章信息