SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

Animate GIF files in Windows Explorer?

(3 posts)
  • Started 2 years ago by MourningStar
  • Latest reply from furtivefox
  • Topic Viewed 1216 times

MourningStar
Posts: 80

I have a folder with a ton of animated gifs. When I open this folder I desire the icons to display with the animations cycling. Someone I am unable to contact wrote the following script as a not too fancy, but definitely clean and functioning workaround :

'====================animator.hta=================
<html><head><title>Animator</title></head>
<body><script type="text/vbs">
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "<ing src=""" & file.name & """>"
end if
next
</script></body></html>
'==============================================

unless someone knows of another utility that will display the win explorer contents as desired, this works for me. However, I would like to know if someone is able to modify this script so that the filenames will also display next (or under/over/inside ...) to the gif.

thnx

Posted 2 years ago
Top
 
MourningStar
Posts: 80

for some reason the script line that begins with 'document.write' is not displaying properly. I have purposely misspelled 'img' to read 'ing' in the hopes of proper display.

Posted 2 years ago
Top
 
furtivefox
Posts: 1

<html><head><title>Animator</title></head>
<body><script type="text/vbs">
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "<ING src="""" & file.name & "">" & file.name & "<br>"
end if
next
</script></body></html>

Of course rename ING to img.
Techincally you should have br / inside the < > but it wouldn't display.
If you don't want them displayed on a separate line, then remove the "<br>" (break)
Hope that helps.

Posted 2 years ago
Top
 



Topic Closed

This topic has been closed to new replies.