What is the easiest way to implement a "Scroll To Top" link in the footer of a website in GetSimple?
[SOLVED] Scroll To Top of page
|
2013-04-09, 00:29:00
Easiest method: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3
Addons: blue business theme, Online Visitors, Notepad
2013-04-09, 00:40:09
(2013-04-09, 00:29:00)yojoe Wrote: Easiest method: http://www.w3.org/TR/html4/struct/links.html#h-12.2.3I read somewhere that BODY ID could be used - then a GetSimple tag could be implemented into the template.
2013-04-09, 01:22:13
I would use jquery.
2013-04-09, 08:12:20
(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
Addons: blue business theme, Online Visitors, Notepad
2013-04-09, 17:20:59
Quote: ...but for a simplest "take me up" click, basic html way is my personal best 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. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)