0
Welcome Guest! Login
0 items Join Now

there is "scroll to top" but is there "scroll to bottom"?

    • Bansaw's Avatar
    • Bansaw
    • Jr. Rocketeer
    • Posts: 39
    • Thanks: 0

    there is "scroll to top" but is there "scroll to bottom"?

    Posted 15 years 4 weeks ago
    • I have Dominion.
      I see there is a scroll to top link.
      Can I include a link at the top which says scroll to bottom ?
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: there is "scroll to top" but is there "scroll to bottom"?

    Posted 15 years 4 weeks ago
    • The 'simple' answer is 'No'.

      If this is a feature you would like to see in future templates, I suggest posting a request here:

      www.rockettheme.com/forum/index.php?f=16&rb_v=viewforum

      If it's a 'must have' for you and you don't want to wait for RT to consider coding this type of this, you can post here:

      www.rockettheme.com/forum/index.php?f=175&rb_v=viewforum

      All in all, it's not something that members are looking for and since it requires js coding (and developer's time) it's something that falls outside the normal requests for template support.

      BTW, nothing on joomla.org or the JED on joomla.org for this type of feature...

      Google did return some hits, but I don't know how well they would integrate with Joomla.
    • Thanks,
      jim
    • Bansaw's Avatar
    • Bansaw
    • Jr. Rocketeer
    • Posts: 39
    • Thanks: 0

    Re: there is "scroll to top" but is there "scroll to bottom"?

    Posted 15 years 4 weeks ago
    • ok,. thanks anyway.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: there is "scroll to top" but is there "scroll to bottom"?

    Posted 15 years 4 weeks ago
    • 1.
      add this right after the head-tag <head> of your index.php in the template-folder
      <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/js/scroll-to-bottom.js"></script>

      2. create a file called scroll-to-bottom.js in the js-older in the template-folder with this content
      window.addEvent('domready', function () {
          
       var scroll = new Fx.Scroll(window); 
                 $('browse').addEvent('click', function(e) {
                  new Event(e).stop();
                  scroll.toElement('gantry-totop'); 
                 });
      });


      3. create a custom-module (for example in top f)
      <a href="#" id="browse">scroll to bottom</a>

      test it

      I could have added that to the Gantry-script but that is not allowed by RT afaik ...

Time to create page: 0.074 seconds