PDA

View Full Version : Javascript to rotate image with cursor?



KindleFan
03-01-2011, 11:25 PM
Sorry, folks, I know NOTHING about JS so this may be a stupid question. Saw this neat thingy on
http://sketchupdate.blogspot.com/search/label/Woodworking
where you can rotate the images with the cursor.

Is this easy to code?

Beverleyh
03-02-2011, 08:23 AM
Nile did something like that with js a while back: http://www.dynamicdrive.com/forums/showthread.php?t=34339

Maybe he can offer some further suggestions?

Beverleyh
03-02-2011, 08:49 AM
Here are some online examples;

http://www.ajax-zoom.com/examples/example15.php

Example: http://www.howtocreate.co.uk/tutorials/jsexamples/imagerotate.html
Download: http://www.howtocreate.co.uk/jslibs/script-imgrotate

Example: http://www.uize.com/examples/3d-rotation-viewer.html
Download: http://www.uize.com/download.html

There are others if you Google "rotate 3d image javascript"

StickMaker
03-02-2011, 04:25 PM
Thanks very much, Beverley!