onclick进度栏javascript [英] onclick progress bar javascript

查看:107
本文介绍了onclick进度栏javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对进度条有疑问

如何在未单击开始和停止按钮的情况下在运行onclick的过程中运行和停止进度条

如果你能帮助我
我有问题

I had a problem about the progress bar

how to run and stopped progress bar on the way onclick displaying a progress bar without having to make a start and stop buttons

if you can help me
i have problem

推荐答案

如何在显示进度条的同时单击运行和停止进度条而无需创建开始和停止按钮
这没有多大意义.必须有两个事件,一个开始和一个停止才能显示,然后隐藏进度条.

可以说,按钮单击事件是开始事件,那时您与服务器端进行了一些交互.一旦返回响应,这就是您的停止事件-隐藏进度条时.

您需要做的就是使用style的display属性将页面上的进度条图像隐藏起来.一旦需要(单击按钮后)就显示它,将display属性的值更改为"block",并且一旦发生stop事件,则使用display value作为"none"再次隐藏它.

尝试!
how to run and stopped progress bar on the way onclick displaying a progress bar without having to make a start and stop buttons
This does not make much sense. There has to be two events, one start and one stop to show and then hide the progress bar.

Lets say, the button click event is the start event and at that time you do some interaction with server side. Once you get back response that is your stop event - when you hide the progress bar.

All you need to do is to keep a progress bar image on your page hidden, using display attribute of style. Once needed (just after button click) show it changing the value of display attribute to ''block'', and once the stop event occurs, hide it again using display value as ''none''.

Try!


支持@S Mewara的帖子:

您可以查看以下链接.


代码项目链接 [编码论坛链接 [ TUTSPLUS链接 [
In support to @S Mewara ''s post :

You can take a look at the following links.


Code Project Link[^]


Coding Forum Link[^]

If you are looking for a little more Hi-Fi looking Progress Bar that uses JS and jQuerry take a look at the below link.

TUTSPLUS link [^]

BR//
Harsha


这篇关于onclick进度栏javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆