Forum Moderators: open

Message Too Old, No Replies

Rotate image using javascript

         

vanik

6:02 am on Jun 16, 2008 (gmt 0)

10+ Year Member



Hi all,
Can you help me about this.

Marshall

6:33 am on Jun 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Vanik,

I suggest doing a web search for a javascript image rotator. There are many good ones out there.

Marshall

Br3nn4n

8:49 am on Jun 18, 2008 (gmt 0)

10+ Year Member



As suggested, quick Google search came up with this:

[dyn-web.com...]

good luck!

vanik

10:04 am on Jun 19, 2008 (gmt 0)

10+ Year Member



Hi all,
Here is my code for rotating an image to right side.Its working on IE.But it does not work in Firefox.Please tell me whats the reason and what changes i have to make?

<script type="text/javascript">
var rotating=document.getElementById('rotating');

Math.PI * 2 / 360;
var rad = 270* deg2rad;
function rotate(deg)
{

var costheta = Math.cos(rad);
var sintheta = Math.sin(rad);
rotating.filters.item(0).M11 = costheta;
rotating.filters.item(0).M12 = -sintheta;
rotating.filters.item(0).M21 = sintheta;
rotating.filters.item(0).M22 = costheta;
}
rotate(0);

kceleb9

5:35 pm on Jun 25, 2008 (gmt 0)

10+ Year Member



The solutions for this work reasonably in Firefox - but not in IE.

For IE the best solution - is to use Googles Vector simulation library.