SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: JS and animated gifs
-
Oct 17, 2002, 00:56 #1
-
Oct 17, 2002, 01:44 #2
- Join Date
- Mar 2002
- Posts
- 327
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Re: JS and animated gifs
Sorry but it isn't possible. The animated GIF's timing can only be adjusted at the time it is created. But there is no reason why you shouldn't use JS to animate your own set of images altough they will have to be stored seperately on the server rather than in a single file. Hope this helps.
NickAll4YourPC for all your PC needs. Custom software.
Websites. Web marketing. Training.
http://members.aol.com/nickjc67
-
Oct 17, 2002, 02:16 #3
-
Oct 17, 2002, 02:31 #4
u can do it
it 's possible 2 control some images in a slideshow lige animates gif
Code:<html> <script> /************/ /* Settings */ /************/ // Where are the images? clips = new Array("images/yourbloodinmymouth.jpg", "1.jpg", "2.jpg", "3.gif", "4.gif"); // Where do u want them to be linked to? linksS = new Array("http://www.c4arab.com", "http://www.cnn.com", "http://www.c4arab.com", "http://mrcomputer-uae.virtualave.net/", "http://www.c4arab.com") // How many seconds u want the banner to be on? num = 10 /*********************************/ /* don't change anthing below */ /*********************************/ count = 0; max=clips.length; function val(){ if(document.images){ count++; if(count == max) { count=0; } document.star.src= clips[count]; setTimeout("val()", num * 1000); } } function goNow(){ window.location=linksS[count]; } </script> <!-- The Page it Self --> <html> <body onLoad=val() bgcolor="#FFFFE6"> <center> <a href=javascript:goNow()> <img src="images/yourbloodinmymouth.jpg" name=star border=0></a> </body> </html>
Bookmarks