Would anyone be interested in a collaboration in a rotate_image module? The module will rotate an image clockwise and counter-wise using javascript. Visit my profile and look under projects. -gchalker

Comments

nevets’s picture

You might want to expand on what you are trying to achieve. For image fields you can already make an image style that rotates the image.

chetan-singhal’s picture

Hi gchalker
I am intersted in your project.

chetan

gchalker@princeton.edu’s picture

I am stilling working on this project. Here is what I have to report so far.

Last night i tried to add the javascript using a block on these instructions: http://www.drupalgardens.com/documentation/feature/javascript

to my homepage in order to rotate the image. Nothing I tried worked.

Today, I found these instructions and will try modifying my theme instead using a php file. Looks like a module is turning into a theme modification:

http://drupal.org/node/304178

chetan-singhal’s picture

Hi gchalker,

Hope you will be fine.

Give me some idea about your project.
Is your project on git. if yes then give me git clone url. so i can download and can help you.

Otherwise you can mail me at
chetansinghal1988@gmail.com

chetan

gchalker@princeton.edu’s picture

I really am glad you commented on my project. I am in quandary on how to proceed.
The js file was loaded by creating a block. And I load the javascript directly into the page, but what I can not figure out is how give my image an ID. Can you help by e-mailing or adding a comment in the thread?

I sent you an e-mail. Thanks so much!

G

nevets’s picture

How are you outputting the image?

gchalker@princeton.edu’s picture

Nevet,

Visit this page and you will see what I am trying to do on my home page www.gchalker.com:

http://raphaeljs.com/image-rotation.html

Do I create a php file to imbed the .js file on the page? Then where do I put the function and can I call the function in my body?

Have sample files would be best.

Thanks!