Solved

Flashing pictures in time

Posted on 1998-01-29
9
219 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

762 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

18 Experts available now in Live!

Get 1:1 Help Now