Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Scroll To Top of page
#1
What is the easiest way to implement a "Scroll To Top" link in the footer of a website in GetSimple?
Reply
#2
Easiest method: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3
Addons: blue business theme, Online Visitors, Notepad
Reply
#3
(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.
Reply
#4
I would use jquery.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
(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
Addons: blue business theme, Online Visitors, Notepad
Reply
#6
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.
Reply




Users browsing this thread: 2 Guest(s)