Add toolbar button to disable GIF animations?

B

Bruce W.1

I normally have GIF animations disabled in my IE6 (Tools/Internet
Options/Advanced) but sometimes I need to enable them for a short time.

Rather than doing Tools/Internet Options/Advanced, is there a way I
could put a button on the toolbar to turn GIF animations on and off?
This might be similar to running a macro.

Thanks for your help.
 
R

Ramesh [MVP]

Hi Bruce,

Use this VBScript which toggles the Play animations option.

---------------------------------------
On Error Resume Next
Set WSHShell=Wscript.CreateObject("Wscript.Shell")

Anim = WshShell.RegRead("HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations")

If Anim = "yes" Then
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations", "no", "REG_SZ"
Elseif Anim = "no" Then
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations", "yes", "REG_SZ"
End If

Set WshShell = Nothing
---------------------------------------

*Watch for line wrap*

Copy the above lines of code to Notepad and save as "C:\ToggleAnim.vbs". Place a shortcut of this file in your Quick Launch area.

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


I normally have GIF animations disabled in my IE6 (Tools/Internet
Options/Advanced) but sometimes I need to enable them for a short time.

Rather than doing Tools/Internet Options/Advanced, is there a way I
could put a button on the toolbar to turn GIF animations on and off?
This might be similar to running a macro.

Thanks for your help.
 
F

Fuzzy Logic

I normally have GIF animations disabled in my IE6 (Tools/Internet
Options/Advanced) but sometimes I need to enable them for a short time.

Rather than doing Tools/Internet Options/Advanced, is there a way I
could put a button on the toolbar to turn GIF animations on and off?
This might be similar to running a macro.

Thanks for your help.

I used to disable them in advanced settings as well. There are certain sites
that I would like to have animations but in general I would prefer to have
them disabled. A button in the browser would be ideal but I don't know of a
way to do it. What I have found is that the ESC key will disable the
animations on a page. So know I have them enabled and if they are really
annoying me I just hit the ESC key.
 
B

Bruce W.1

Ramesh said:
Hi Bruce,

Use this VBScript which toggles the Play animations option.

---------------------------------------
On Error Resume Next
Set WSHShell=Wscript.CreateObject("Wscript.Shell")

Anim = WshShell.RegRead("HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations")

If Anim = "yes" Then
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations", "no", "REG_SZ"
Elseif Anim = "no" Then
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Play_Animations", "yes", "REG_SZ"
End If

Set WshShell = Nothing
---------------------------------------

*Watch for line wrap*

Copy the above lines of code to Notepad and save as "C:\ToggleAnim.vbs". Place a shortcut of this file in your Quick Launch area.
======================================================

Well that didn't work. It sure sounded right though. Thanks for trying.

I'm running Windows 2000, perhaps your registry key was for XP?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top