We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Compass + Scroll
Page Index Toggle Pages: 1
Compass + Scroll (Read 689 times)
Compass + Scroll
Dec 22nd, 2009, 5:15am
 
I'm from Brazil and do not know English ...
and my question is a little complex ...

Hope can be helped


I am a few days looking for a way to create a compass in JS
I found 2 extensions JQuery makes an image rotate

jQueryRotate.js and jquery.rotate.1-1.js but the references I found on them were very little and nothing near what I need.

Actually I am giving up my search so I would do with the people here think it possible.

What I need is the following:

- I have a site with 10,000 x 10,000 px

- I have about 9 divs he scattered the size of the display resolution of visiting (so there is a fixed size each. Is on the resolution)

- Whenever he clicks on a link will be "dragged" to the corresponding content (and that is part of a compass that comes in).

She will have 9 points where each one will have the name of each div and must turn to point the corresponding div where the site move

my code:

Code:
var conta = 0;
window.onscroll = function(){
    conta = conta + 10;
    $('#image3').rotateAnimation(conta);
}

example: viqtory.com.br/prototipo/teste/bussula/circular.html

But even that is going well ...

Now what does getting to find is a way of knowing
to scroll up or down
Because when he goes down must add +10 in variable
If he has come down to subtract -10

You like?





Thanks  Cheesy
Re: Compass + Scroll
Reply #1 - Dec 22nd, 2009, 5:47am
 
I fear I haven't fully understood your problem.

But well, the fundamental issue is that you are on a forum about Processing, a Java library to make graphics. That's not about JavaScript, even less about jQuery. I suggest to locate a forum more on topic for your needs.
Re: Compass + Scroll
Reply #2 - Dec 22nd, 2009, 7:05am
 
ok
sorry
Page Index Toggle Pages: 1