Solved

help about javascript

Posted on 2011-09-05
5
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
null output 3 59
Java string replace 11 79
ejb wildfly example 2 113
How to configure empty element in XML Document parser? 15 59
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

752 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