Thank you so much people! I read and considered all of the posts. Your help was really appreciated, made my day better :)
Works like a charm now! -Lenkey On Jan 20, 8:21 pm, holycrapperluigi <holycrapperlu...@yahoo.com> wrote: > Sorry I had a is the monitor plugged in moment, should have read the > previous post before I typed. > > :-X Aaron saves the day. > > On Jan 20, 1:21 pm, Aaron Newton <aa...@iminta.com> wrote: > > > > > 1) document.body is a pointer, not a string - just *document.body* not * > > 'document.body'* > > **2) Your mooshell wasn't working because you weren't including -more (where > > Fx.Scroll lives). > > >http://mootools.net/shell/kEfN3/4/<< working > > > On Wed, Jan 20, 2010 at 9:15 AM, Aske <aaam...@gmail.com> wrote: > > > @Florence: Great advice! > > > > @cbolson & Aaron Newton, i tried both, but they do no seem to work. > > > > I put it in the shell:http://mootools.net/shell/kEfN3/ > > > > Anyone with great coding skills? > > > > To repeat: Press one of the numbers in the navbar in the bottom, and > > > the whole window (body), should scroll to the image (there are 4 > > > currently). Eg. Press "2" and the window should scroll to image number > > > two. > > > > Thanks in advance, > > > lenkey > > > > On Jan 19, 5:54 pm, Aaron Newton <aa...@iminta.com> wrote: > > > > I would try document.body. > > > > > On Tue, Jan 19, 2010 at 8:45 AM, cbolson <ch...@cbolson.com> wrote: > > > > > Hi, > > > > > I think that you want to scroll the whole window. > > > > > Try this: > > > > > var scroll = new Fx.Scroll(window, { __rest of code__ > > > > > > Chris > > > > > > On 19 ene, 16:52, Ryan Florence <rpflore...@gmail.com> wrote: > > > > > > Welcome! > > > > > > > The fastest way to get help here is to simplify your issue and post > > > > > > a > > > > > > live example onhttp://mootools.net/shell. This allows another > > > > > > developer to actually make changes to your code and provide > > > > > > solutions > > > > > > faster. > > > > > > > - Ryan Florence > > > > > > -http://ryanflorence.com > > > > > > > On Jan 19, 2010, at 8:14 AM, Aske wrote: > > > > > > > > Hi and thanks in advance, i have pretty simple problem. Quite new, > > > so > > > > > > > bare with me, i will get better fast :) > > > > > > > > I want to attain some simple horizontal scrolling like seen on > > > > > > > this > > > > > > > site (they use prototype): > > > > > > > >http://www.newworkmag.com/issue2.html > > > > > > > > if you click the navigation in the bottom the page scrolls to the > > > > > > > image.... > > > > > > > > I have made this site: > > > > > > > >http://copenhagenteaclub.dk/teapaper/teapaper/ > > > > > > > > to quickly explain: > > > > > > > > an image container div with "white-space:no-wrap" (so that no line > > > > > > > breaks occurs) , contains the images > > > > > > > > i simply want my little navigation in the bottom scroll the "body" > > > to > > > > > > > the image. > > > > > > > > In the Fx.Scroll demo they instantiate it on a wrapper div, which > > > > > > > mootools then scrolls around in right? > > > > > > > But since it is not a wrapper div i want to scroll around in, but > > > the > > > > > > > whole body i just put "body" in there. But i doesnt seem to work. > > > > > > > > You can see the relatively simple stuff going on in view source. > > > > > > > > Anyone know what i am doing wrong? > > > > > > > > -lenkey