简体   繁体   English

时尚的Javascript进度(加载)栏…?

[英]Stylish Javascript progress (loading) bar…?

Im currently developing a car related website in which I want to create a very stylish progress bar with javascript (not flash). 我目前正在开发一个与汽车相关的网站,我想在其中创建一个使用javascript(不是Flash)的非常时尚的进度栏。 I want it to look similar to a speed indicator, like this: http://www.crestock.com/images/1260000-1269999/1260687-xs.jpg 我希望它看起来类似于速度指示器,例如: http : //www.crestock.com/images/1260000-1269999/1260687-xs.jpg

So I have done great couple of Google searches for javascript bars but only found simple horizontal bars. 因此,我在Google上搜索了很多JavaScript栏,但只找到了简单的水平栏。

Any ideas of how I should proceed? 关于我应该如何进行的任何想法?

give JQueryUI a shot. 一下JQueryUI It has some rich effects and UI widgets. 它具有一些丰富的效果和UI小部件。

Grtz 格茨

EDIT: I came across this one: http://dev.sencha.com/deploy/ext-4.0.2a/examples/charts/Gauge.html 编辑:我遇到了这个: http : //dev.sencha.com/deploy/ext-4.0.2a/examples/charts/Gauge.html

It is actually quite doable - see this article on CSS3 rotation and filters in Internet Explorer, and also search for the CSS3 Transform property - http://www.useragentman.com/blog/2010/04/05/cross-browser-animated-css-transforms-even-in-ie/ 它实际上是相当可行的-看到这篇文章的CSS3旋转和过滤器在Internet Explorer中,也搜索CSS3 Transform属性- http://www.useragentman.com/blog/2010/04/05/cross-browser-animated -css-transforms-in-ie /

Although I would state right here and then that whatever purpose you might have use for a Javascript loading bar be 90% of the time it can't be good. 尽管我会在这里陈述一下,然后您可能出于任何目的将Javascript加载栏用于90%的时间都不是一件好事。 If your page is so big that it'll require a loading bar then you really really should consider a redesign/rewriting of your code and design for the site. 如果您的页面太大以至于需要一个加载栏,那么您真的应该考虑对网站的代码和设计进行重新设计/重写。 The same would be if you want animation just for the sake of animation . 如果您只是为了动画而想要动画,那也是一样

But I'm afraid I might have said a little too much - don't let that discourage you from having a look at a very interesting technique, or from using it on whatever you deem necessary. 但是,恐怕我可能讲了太多的话-不要让那让您灰心,不要去看一个非常有趣的技术,或者在您认为必要的时候使用它。 If you need more help just drop a comment on this question. 如果您需要更多帮助,只需对此问题发表评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM