Full version: jsB@nk » Image » Rotating GIFs and JPGs
URL: https://www.javascriptbank.com/rotating-gifs-and-jpgs.html
With DirectAnimation from Microsoft and a little bit of scripting you can rotate any image with NULL additional download-time.
Full version: jsB@nk » Image » Rotating GIFs and JPGs
URL: https://www.javascriptbank.com/rotating-gifs-and-jpgs.html
<SCRIPT LANGUAGE="JavaScript">if (document.all) { m = imageobj2.MeterLibrary; myimage = m.ImportImage("logojs.gif"); myimage = myimage.Transform(m.Rotate2Rate(-.1)); imageobj2.Image = myimage; imageobj2.Start(); m = imageobj.MeterLibrary; myimage = m.ImportImage("logojs.gif"); myimage = myimage.Transform(m.Rotate2Rate(.1)); imageobj.Image = myimage; imageobj.Start(); } if (document.layers) { alert("Sorry Netscape-User!\n\nThis script works only with Internet Explorer 4 and higher.") }</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<OBJECT ID="imageobj2" STYLE="position:absolute;top:10px;left:10px;width:280;height:280" CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"></OBJECT><OBJECT ID="imageobj" STYLE="position:absolute;top:10px;left:10px;width:280;height:280" CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"></OBJECT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->