GetSimple Support Forum

Full Version: [SOLVED] Scroll To Top of page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the easiest way to implement a "Scroll To Top" link in the footer of a website in GetSimple?
(2013-04-09, 00:29:00)yojoe Wrote: [ -> ]Easiest method: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3
I read somewhere that BODY ID could be used - then a GetSimple tag could be implemented into the template.
I would use jquery.
(2013-04-09, 00:40:09)chaos Wrote: [ -> ]I read somewhere that BODY ID could be used - then a GetSimple tag could be implemented into the template.
You can use GS tags, to add ID into "body" tag, as well as into "scroll to top" link. It's all about using for example "get_page_slug();" function call within your template.

(2013-04-09, 01:22:13)shawn_a Wrote: [ -> ]I would use jquery.

Fancy method. Unfortunately I don't call that "easiest".
Great for websites who incorporate plenty JQ/Motools/others libs/ways/effects but for a simplest "take me up" click, basic html way is my personal best Wink
Quote: ...but for a simplest "take me up" click, basic html way is my personal best Wink

Thank you both for the advise.
In the end I used plain simple html:
inserted <a name="top"></a> right after the body tag then hyperlinked an image in the footer with #top.
Seems to be working fine.