August 16, 2012

Is there a js function that scrolls a site left right up and down?

Question by Mihad Aiko

I was wondering if anyone knows if there was a javascript or something that scrolls a site left right up and down on a click.

For example I want to create a site with multiple divs. Look at photo below.

enter image description here

I want each div to fit to screen and div 1 being the main div, the starting point. Say that I had a link in the menu for biography and the content for biography was in div 4 and someone click biography, I want the site to move down to div 3 and then right to div 4 and the same thing goes for div 4 and all the divs. When someone clicks a link in the divs I want the site to scroll in a direction I specify, is this possible.

Left Right Up Down

Answer by Starx

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!