Solved

help about javascript

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Jpanels and Jframe 8 33
VB Script to add site to Java Exception List 4 78
table example 4 29
eclipse apache tomcat admin console 52 97
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
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 how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

810 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