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