Solved

Flashing pictures in time

Posted on 1998-01-29
9
220 Views
Last Modified: 2012-06-21
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
Comment
Question by:qwertsaw
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1277875
Animated gifs? or avi's?

-julio
0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1277876
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
 
LVL 10

Expert Comment

by:kollegov
ID: 1277877
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
Technology Partners: 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!

 
LVL 10

Expert Comment

by:kollegov
ID: 1277878
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
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1277879
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
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1277880
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
 

Accepted Solution

by:
rasp earned 100 total points
ID: 1277881
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
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1277882
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
 

Author Comment

by:qwertsaw
ID: 1277883
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert Silverlight ERP To Angularjs,HTML5 3 61
Tools for analysis of code 4 49
PHP: Filling Out/Creating a PDF 29 107
REST call Failing 1 15
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 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