SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrolling with 2 buttons

    Now i know this is possible as ive seen it on a number of sites before. But as usual when i want something i cant find it.

    Basically, i want to make a small part of my page scrolling use 2 buttons labelled "up" and "down". I want it to have the same effect as a scrollbar.

    if this doesnt make sense. let me know and ill try and find an example.

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    As far as I know, you can't do that, Moff, but you could do the following:
    Code:
    <div class="Destination"><a id="Destination">Here's where you want to go.</a></div>
    ...
    <a href="#Destination">Go somewhere!</a>
    You should replace the ellipsis in the code with your own content.

    Compuwhiz7

  3. #3
    SitePoint Member
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ive definantly seen it done. it might be in javascript or something im not sure. maybe i didnt make myself 100% clear.

    ive found an example in flash so that will have to do for an example. if you visit www.2advanced.com and look at the updates section it has 2 buttons. an up and a down arrow. when you click these the contents of the box scroll.

    i dont want the buttons in that position but atleast it gives an idea of what i want.

    many thanks

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    Oh, now I understand what you want! Cross-Browser.Com has a DHTML-based solution that should meet your needs. It's available at Http://Cross-Browser.Com/Examples/Slider3.Html.

    Compuwhiz7

  5. #5
    SitePoint Member
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sort of what i want yes but i dont want a scrollbar.

    all i want is just a button a user can click and hold. one saying up and one saying down.

  6. #6
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    Couldn't you just adapt the DHTML code so that when the "Up" button was pushed the page would scroll up and when the "Down" button was pushed the page would go down? That should be possible...

    Compuwhiz7

  7. #7
    SitePoint Enthusiast tripp's Avatar
    Join Date
    Dec 2002
    Location
    Austin, TX USA
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this is what you're looking for:
    http://www.youngpup.net/?request=/co...ct/description

  8. #8
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    That should do it, Tripp. Let's see what Moff says.

    Compuwhiz7

  9. #9
    SitePoint Member
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah thats perfect,

    thanks alot for both of your help.

  10. #10
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    Welcome. Glad to help.

    Compuwiz7

  11. #11
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    moved to more appropriate forum...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •