»
EnglishFrenchVietnamese

Print - Rotating GIFs and JPGs - JavaScriptBank.com

Full version: jsB@nk » Image » Rotating GIFs and JPGs
URL: https://www.javascriptbank.com/rotating-gifs-and-jpgs.html

Rotating GIFs and JPGs © JavaScriptBank.comWith 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



JavaScript
<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-->


HTML
<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-->