[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Flashing pictures in time

What I want is a way to have 7 pictures say welcome back in this way:
W______     And then 5 seconds later
_E_____     5 sec later.......
__L____
___C___
____O__
_____M_
______E
_B_____
__A____
___C___
____K__
Could someone please give me a snipet where I can do this.  The names of the pictures are the letter.gif.  Emaple W is w.gif
    Thanks
0
qwertsaw
Asked:
qwertsaw
  • 2
  • 2
  • 2
  • +3
1 Solution
 
julio011597Commented:
Animated gifs? or avi's?

-julio
0
 
Christian_WenzCommented:
if using the image object (NN>=3 and IE>=4) is ok for you, I can give you a script (hoping, the others are fair enough not to answer this with the same idea: image object and timeouts)

However, using an animated give is another good idea.

But if you want the script, please drop a comment, I'll then answer the question!
0
 
kollegovCommented:
Quite original ideas (sarcasm), Christian Wens... instead of posting answer you reserve right to post it.
Do it now, or I'll do it first. (and I think it will be fair if I post complete script.)
Purpose of this forum is to give answers as soon as possible..

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
kollegovCommented:
BTW, I think animated gif is a better solution :)
Julio, you can get Gif Construction Set for win95 or Animagic
(links to both can be found at www.windows95.com) and
than if you have ready images it will takes only 10 minutes
to make single animated gif file.

If you have images on-line give me URL and I'll make this
amimated gif for you.


0
 
Christian_WenzCommented:
well, kollegov, I already had this script assembled before posting my comment, but I share your opinion that an animated GIF is the better solution, so I didn'T want to post the script as an answer (yet).

However, if you want to, have a go.
0
 
tecbuilderCommented:
Just to add my 2 cents worth to this question.  I also believe the animated gif is a better means to do what you want.  I know many people who turn off JavaScript so that the don't get windows popping up, etc.  The only time the animated gif would not work is someone doesn't want to see images for faster page loading.

Christian_Wenz, as far as ideas go.  They are a dime a dozen.  All you did is get to the question first.  If you have an answer, post it, and let qwertsaw decide if that is what he/she wants.  As long as you explain the advantages of both methods (animation and JavaScript), you will have given a sound answer.
0
 
raspCommented:
Ok here is an answer, sorry, I did this before I read all that bickering in the comments.

This is a JavaScript solution, I hope it fits your needs. I would rename the gifs to l0.gif through l10.gif, that way you can put in the apropriate spacing before the letters and stuff. Also you
should make a blank gif that is the same colour as your background so you can use the document.images array to simply change the gif to a new one (with a letter).

Here is an HTML file:

<HTML>
<HEAD><TITLE>Welcome Back</TITLE>
<script language="JavaScript">

var a = 0;
function welcome_back() {  
  if(a<11){
    document.images[a].src = "l"+a+".gif";
    a++;
    setTimeout("welcome_back()", 5000);      
  }
}
</script>
</HEAD>
<BODY>
<script language="JavaScript">
// ok you should have a blank gif the same colour as your
// background that way the script up top can just use the // document.images array
for(i=0;i<11;i++){
  document.write("<img src='blank.gif'><br clear='all'>");
}
welcome_back();
</script>
</BODY>
</HTML>

0
 
tecbuilderCommented:
Don't worry about the bickering.  The object here is to provide an answer.  That's what you did.  I would have provided the answer instead of the comment, but I didn't have the time to write and verify the code.
0
 
qwertsawAuthor Commented:
What you gave me did not work too well, but it worked well enough so I could make a tiny bit of adjusments and it worked to perfection.
Thank you
qwertsaw
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now