Solved

help about javascript

Posted on 2011-09-05
5
307 Views
Last Modified: 2012-05-12
hello,
i have created an html page, in the bottom, i want to see like this :

Processing ...

the '...' 3 points of suspension must be animated and move like if you login to paypal and you see the moving 3 points after logging in ...
0
Comment
Question by:World05
  • 2
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 167 total points
ID: 36484306
For example :
t = setInterval(function() {
    var d = document.getElementById("d").innerHTML;
    d+=".";
    if(d.length>3) d=".";
    document.getElementById("d").innerHTML = d;
},500);

Open in new window


if you want to stop the animation, use :
clearInterval(t);

Open in new window


test page : http://jsfiddle.net/
0
 
LVL 82

Expert Comment

by:leakim971
ID: 36484313
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 333 total points
ID: 36484351
This is HTML file with bloinking three dots
testblink.html
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 333 total points
ID: 36484364
Place this to the header of your HTML page:

<script type="text/javascript">
<!--
spe=500;
na=document.all.tags("blink");
swi=1;
bringBackBlinky();

function bringBackBlinky() {

if (swi == 1) {
sho="visible";
swi=0;
}
else {
sho="hidden";
swi=1;
}

for(i=0;i<na.length;i++) {
na[i].style.visibility=sho;
}

setTimeout("bringBackBlinky()", spe);
}
-->
</script>

Open in new window


and this in the body of your HTML page

<h1>Processing <blink>...</blink></h1>

Open in new window


and the dots will be blinking
0
 

Author Closing Comment

by:World05
ID: 36484443
excellent guys :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now