Solved

help about javascript

Posted on 2011-09-05
5
306 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
network + 7 73
countPairs challenge 7 58
backtracking recursion  code 19 41
micro services spring boot application error 3 41
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

747 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

13 Experts available now in Live!

Get 1:1 Help Now