Home JS special effects jQuery effects jQuery upload progress bar code

jQuery upload progress bar code

jQuery upload progress bar code

jQuery upload progress bar code

js code

<script language="javascript">
function processerbar(time){
     document.getElementById('probar').style.display="block";
	$("#line").each(function(i,item){
		var a=parseInt($(item).attr("w"));
		$(item).animate({
			width: a+"%"
		},time);
	});
   var si = window.setInterval(
	function(){
		a=$("#line").width();
		b=(a/200*100).toFixed(0);
		document.getElementById('percent').innerHTML=b+"%";
		document.getElementById('percent').style.left=a-12+"px";
		document.getElementById('msg').innerHTML="上传中";
		if(document.getElementById('percent').innerHTML=="100%") {
		clearInterval(si);
		document.getElementById('msg').innerHTML="&nbsp;&nbsp;成功";
		}
	},70);
};
</script>
简单的jQuery上传进度条代码是一款绿色简洁的点击上传进度条动画代码,没有用到背景图,代码简单易懂。 

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

php ajax implements file upload progress bar, _PHP tutorial php ajax implements file upload progress bar, _PHP tutorial

12 Jul 2016

php ajax implements file upload progress bar. PHP Ajax implements the file upload progress bar. This example is about the implementation of the PHP file upload progress bar. It mainly uses Ajax technology and also uses HTML5. Friends in need can study it.

How to Display a Progress Bar During AJAX Data Loading with jQuery? How to Display a Progress Bar During AJAX Data Loading with jQuery?

24 Oct 2024

The article discusses how to create a progress bar with jQuery to provide visual feedback when loading data via AJAX. It highlights the need for progress tracking in AJAX operations to improve user experience by indicating data retrieval progress. Th

How to Use jQuery to Add a Progress Bar to Ajax-Loaded Content? How to Use jQuery to Add a Progress Bar to Ajax-Loaded Content?

24 Oct 2024

This article demonstrates how to implement a progress bar during Ajax requests using jQuery's xhr() method. It explains how to add event listeners for both upload and download progress, allowing you to provide visual feedback to users while data is b

CSS3 JQUERY page scrolling effect code_html/css_WEB-ITnose CSS3 JQUERY page scrolling effect code_html/css_WEB-ITnose

24 Jun 2016

CSS3 JQUERY page scrolling effects code

58 jQuery simulated CSS3 transition page switching effects_html/css_WEB-ITnose 58 jQuery simulated CSS3 transition page switching effects_html/css_WEB-ITnose

24 Jun 2016

58 jQuery simulated CSS3 transition page switching effects

jquery waterfall flow LightBox picture box special effects jquery waterfall flow LightBox picture box special effects

06 Jul 2016

jquery waterfall flow LightBox picture box special effects

How to Maintain jQuery Mouseover Effects in ASP.NET UpdatePanels? How to Maintain jQuery Mouseover Effects in ASP.NET UpdatePanels?

03 Dec 2024

jQuery $(document).ready and UpdatePanels: A Refined LookWhen utilizing jQuery to apply mouseover effects to elements within an UpdatePanel, the...

How Can I Dynamically Modify Text on Mouseover using jQuery? How Can I Dynamically Modify Text on Mouseover using jQuery?

13 Nov 2024

jQuery: Dynamically Modifying Text with Mouseover EventsWhen interacting with elements on a web page, adding subtle effects can enhance user...

How to Simulate Hover Effects on Touchscreens Using Long Press? How to Simulate Hover Effects on Touchscreens Using Long Press?

22 Oct 2024

To replicate hover effects on touch-enabled devices, this article proposes a technique using a combination of CSS and JavaScript. It demonstrates how to add hover effects to elements on touchstart and touchend events using jQuery, and how to style th

See all articles See all articles

Hot Tools

jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects

jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects

A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.

layui responsive animated login interface template

layui responsive animated login interface template

layui responsive animated login interface template

520 Valentine's Day confession web animation special effects

520 Valentine's Day confession web animation special effects

jQuery Valentine's Day Confession Animation, 520 Confession Background Animation

Cool system login page

Cool system login page

Cool system login page

HTML5 tape music player-CASSETTE PLAYER

HTML5 tape music player-CASSETTE PLAYER

HTML5 tape music player-CASSETTE PLAYER