Reply LinkBack Thread Tools Search this Thread
Old 12-03-2010, 08:10   #1 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Can this even be done?

Hi people.

I've been working on my site:

Barry Richards Web Designer Portfolio

I've designed it so, as you have probably guessed it's all one page, but divided into sections/pages the up/down control is intended to let you cycle between these sections.

Now it's come to implement it, I've hit a wall and started to doubt if it's possible. I've trawled the web for sites with a similar navigation but only found ones that have up/down buttons on each section.

The way I see it, is I need some javascript that, for every time a viewer clicks on the down button, the script detects where on the page the viewer's browser is focussed and skips to the next section - and for up, skips to the previous section.

Does anyone have any ideas? or seen any sites that have done this? (I'm sure I have in the past but my googling can't turn anything up right now)
__________________
  Reply With Quote
Old 12-03-2010, 08:18   #2 (permalink)
iandevlin
éireannach
 
iandevlin's Avatar
 
Join Date: Sep 2009
Location: Cambridge, UK
Posts: 490
jQuery will do that for you. A mixture of tabs and localScroll should sort it out.
__________________
  Reply With Quote
Old 12-03-2010, 08:40   #3 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
I've had a look into localScroll. It seems to only refer to horizontal scrollers within containing div's. I want the up/down control to scroll the entire page up and down.

Think I might be over my head here.
__________________
  Reply With Quote
Old 12-03-2010, 09:08   #4 (permalink)
iandevlin
éireannach
 
iandevlin's Avatar
 
Join Date: Sep 2009
Location: Cambridge, UK
Posts: 490
Look at HTML5 Laboratory, which uses localScroll() for the internal navigation.

Isn't that the kind of thing that you want? You can link the up and down buttons to the scrolling.
__________________
  Reply With Quote
Old 12-03-2010, 09:25   #5 (permalink)
delatorre
Oooeer missus!
 
delatorre's Avatar
 
Join Date: Oct 2008
Location: Nearer the gutter than the stars
Posts: 109
With MooTools you could use scrollTo - it takes coordinates rather than an element id, so you'd need to either hard code that or get the coordinates of an element first.

MooTools Docs - Element/Element.Dimensions
__________________
  Reply With Quote
Old 12-03-2010, 09:34   #6 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by iandevlin
Look at HTML5 Laboratory, which uses localScroll() for the internal navigation.

Isn't that the kind of thing that you want? You can link the up and down buttons to the scrolling.


Sort of, only I want the buttons to stay static on the page, and consist of next and previous buttons.

Basically, each section of the page is a div with an ID (#page-1, #page-2, #page-3) I want the scroller to work by going to the next or previous ID's relative to where the user is on the page.

Sort of like how horizontal carousel scrollers work, but not really because I don't want each page to be of the same dimensions, and I want the whole site to scroll up and down, and not a div within a container.
__________________
  Reply With Quote
Old 12-03-2010, 09:39   #7 (permalink)
iandevlin
éireannach
 
iandevlin's Avatar
 
Join Date: Sep 2009
Location: Cambridge, UK
Posts: 490
I was just talking about the movement that you wanted, that it was the same as what my site does, which you have confirmed.

Not 100% sure how to have the buttons stay static, but I have seen it done, so it's possible.

I'm sure this can be done the way you describe, but I haven't done anything like that myself (I do like the idea though) so I can't say for sure how. I'd have to play with it for a while to see how it could be done. I know that you can see which item it's currently on and navigate accordingly.
__________________
  Reply With Quote
Old 12-03-2010, 09:52   #8 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by delatorre
With MooTools you could use scrollTo - it takes coordinates rather than an element id, so you'd need to either hard code that or get the coordinates of an element first.

MooTools Docs - Element/Element.Dimensions

That could work if I made the button scroll the element x pixels each time it's pressed.

only drawback is that I'd need to make each page exactly the same height to work.
__________________
  Reply With Quote
Old 12-03-2010, 09:56   #9 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by iandevlin
I was just talking about the movement that you wanted, that it was the same as what my site does, which you have confirmed.

Not 100% sure how to have the buttons stay static, but I have seen it done, so it's possible.

I'm sure this can be done the way you describe, but I haven't done anything like that myself (I do like the idea though) so I can't say for sure how. I'd have to play with it for a while to see how it could be done. I know that you can see which item it's currently on and navigate accordingly.


Yes, I would like a nice scrolling movement effect. That's the easy part though.

If you work out how to do it or find a website that does it effectively let me know.
__________________
  Reply With Quote
Old 12-03-2010, 10:06   #10 (permalink)
Pete Nice
Crankshaft
 
Pete Nice's Avatar
 
Join Date: Apr 2003
Posts: 2,108
surely it's just going to be something like this:

Untitled Document
Sticky (Fixed) SideNav Layout with CSS – DesignM.ag
  Reply With Quote
Old 12-03-2010, 10:15   #11 (permalink)
iandevlin
éireannach
 
iandevlin's Avatar
 
Join Date: Sep 2009
Location: Cambridge, UK
Posts: 490
Quote:
Originally Posted by Pete Nice
surely it's just going to be something like this:

Untitled Document
Sticky (Fixed) SideNav Layout with CSS – DesignM.ag

Ah yes, that combined with scrollTo should do the trick. Now all you have to do is combine them!
__________________
  Reply With Quote
Old 12-03-2010, 10:15   #12 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Yes like that, the complication arises because I want a static up/down button that can move to the next or previous pages.
__________________
  Reply With Quote
Old 12-03-2010, 10:25   #13 (permalink)
Pete Nice
Crankshaft
 
Pete Nice's Avatar
 
Join Date: Apr 2003
Posts: 2,108
Quote:
Originally Posted by bazzle
Yes like that, the complication arises because I want a static up/down button that can move to the next or previous pages.

I don't understand? Ian's given you the scrolling, I've supplied the static menu element how does the combination of the two not satisfy what you're trying to achieve?
  Reply With Quote
Old 12-03-2010, 10:28   #14 (permalink)
Rotuy
Limey
 
Rotuy's Avatar
 
Join Date: Apr 2008
Location: Liverpool
Posts: 4,746
bazzle, that should do it. Just use anchors for each section and the menu is static so it will always be in the same place.
__________________
  Reply With Quote
Old 12-03-2010, 10:36   #15 (permalink)
pagey
Resident Cheese Expert
 
pagey's Avatar
 
Join Date: Aug 2006
Location: South Wales. Status: Reflective
Posts: 1,593
I think he wants it so you can click to go to the previous, or next bit. So if you're on section 2, you can click up to go to 1, or down to go to 3.

Not really sure why this is necessary though, seems more trouble than its worth, and a bit of a usability nightmare.
  Reply With Quote
Old 12-03-2010, 10:37   #16 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by Rotuy
bazzle, that should do it. Just use anchors for each section and the menu is static so it will always be in the same place.

But you would still need individual buttons, each one to link to it's own section of the page. I'd be able to do that in 2 seconds. if that's what I wanted.

What I want is the functionality for an up/down control so if you press down, it will scroll to the next section down, as opposed to going to a specific section.

Argh no one understands where I'm coming from.
__________________
  Reply With Quote
Old 12-03-2010, 10:41   #17 (permalink)
bjzaba
Design Student
 
bjzaba's Avatar
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 2,259
Is it sort of like the ffffound controls? But with animation? Dropular had that kind of thing too....
__________________
DA gallery



Last edited by bjzaba : Tomorrow at 01:51.
  Reply With Quote
Old 12-03-2010, 10:45   #18 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by pagey
I think he wants it so you can click to go to the previous, or next bit. So if you're on section 2, you can click up to go to 1, or down to go to 3.

Not really sure why this is necessary though, seems more trouble than its worth, and a bit of a usability nightmare.

Yes exactly, just like this STUDIO E-SPACE INC. only I want buttons that go down to the next section and up to the previous aswell.

I've seen it done a million times before, but with the up/down buttons within each section. This can be done easily because you can hard code where each anchor should end up. Not seen it done where the button is positioned static though, which is what I'm trying to do.
__________________
  Reply With Quote
Old 12-03-2010, 10:46   #19 (permalink)
iandevlin
éireannach
 
iandevlin's Avatar
 
Join Date: Sep 2009
Location: Cambridge, UK
Posts: 490
I know what you mean bazzle.

In the thread posted yesterday (can anyone tinker with this jquery?) there was something similiar with regards to the "relativeness" in jQuery.

e.g. with
Code:
$('.slideshow:eq(0)').cycle...
so sometime similiar would need to be done.
__________________
  Reply With Quote
Old 12-03-2010, 10:50   #20 (permalink)
bazzle
Don't touch my tea!
 
bazzle's Avatar
 
Join Date: Aug 2007
Posts: 1,723
Send a message via MSN to bazzle
Quote:
Originally Posted by bjzaba
Is it sort of like the ffffound controls?

yes, that's the bugger.

Thanks for that. I'm gonna rip that site apart now and work out how they did it.
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet