Please don't click on these links yet.

Under construction: ? * # 0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Your opinion is needed with a new "FAQ" I'm thinking of writing up. Click on this "FAQ link" now and leave a comment if you can spare the time.
Tutorials : How I made it toolbars paginations buttons widgets tweeks mega tweeks everything else inspiration ideas FAQ problems Fixing problems

How to add and make a 'Go to bottom' button work on Blogger

Wednesday, May 16, 2012  at 3:38 PM
Live-Demo of this button is at the top right corner of this blog.
Let's say you already have a 'Back to top' button and want to add a "Go to bottom" button as well. I just tried doing this and after many attempts I finally found a way to make it work. I cheated a bit but it works on Internet Explorer, Google Chrome (the button is a bit sticky in Google Chrome - you need to scroll down from the top of the page a tiny bit before the button works properly) and Firefox web browsers. It is a really simple solution too. Normally you are supposed to write #footer as the link url or #bottom but none of those commands work. Various other combinations also don't work. What did work was I made the link url go to the bottom most widget on my blog. I located the widget's ID added the standard # symbol before it and pasted them both into the link url section.

Here is the code for the go down to bottom button code:

<a href='#Attribution1' style='display:scroll;position:fixed;top:4px;right:2px;'><img alt='Scroll to Bottom' height='31px' src='https://lh6.googleusercontent.com/-YHprowZgco4/T02ddR_PNeI/AAAAAAAAF7U/q3eCtClIbDM/s16/button_down16.gif' width='31px'/></a>

The red text in the code above is what you need to change and the only thing you need to change in the code. All that you do is scroll down and locate the bottom most part code for your footer.
For example:

<b:section class='foot' id='footer-3' showaddelement='no'>
<b:widget id='Attribution1' locked='true' title='' type='Attribution'/>
</b:section>    
</div>  
</div>    
<div class='footer-cap-bottom cap-bottom'>      
<div class='cap-left'/>      
<div class='cap-right'/>    
</div>    
</div>    
</footer>

Do NOT copy the footer code displayed above this text. You are ONLY supposed to be locating it in your own template. In the above footer code the widget's ID is in blue. That is the widget ID code you need to look for, with whatever widget is at the very bottom of your footer. It is the same code you need to copy and paste into the link url section.

Where to put the code in your template.
When you copy the top lot of code above go to your edit template page. Do NOT tick the expand box. Scroll all the way down to the bottom of the template and you should see:

</body>
</html>

If you don't see the </body> at the very bottom don't panic. Paste the code directly before the </html> tag.

In other words, the code needs to go AFTER the </body> tag and DIRECTLY BEFORE the </html> tag. Every template is different so you need to find at least one of those closing tags at the bottom of your template. Paste the code into your template then click on "Save template".

That's it. Feel free to use the above code on your own blog.
I've hosted both the button images on my Picasa Web Album so you don't have to host it if you don't want to.

There is a matching "back to top" button if interested. The code for it is below.

<a href='#' style='display:scroll;position:fixed;bottom:4px;right:2px;'><img alt='Back To Top' height='31px' src='https://lh5.googleusercontent.com/-ElIXNOC9gts/T02dmS6KF1I/AAAAAAAAF7U/x6C60GloRm4/s16/button_up16.gif' width='31px'/></a>

REMEMBER: IF YOU FORGET TO ADD THE # SYMBOL BEFORE THE WIDGET'S ID AS THE URL, THE GO TO BOTTOM BUTTON WILL NOT WORK.

0 comments:

Your Answer Thanks for contributing an answer to Blogger Tutorials for everyone! Please make sure your answer is NOT a SPAM comment, as such comments will be deleted. Provide details and share your research. Avoid statements based solely on opinion; only make statements you can back up with an appropriate reference, or personal experiences. Comment Options to add to the form below:
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.


Features:

To change your text to bold simply type in a left facing arrow then a UPPERCASE letter b then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /B and then a right facing arrow.

To change your text to italics simply type in a left facing arrow then a lowercase letter i then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /i and then a right facing arrow.

To change the colour of your text type in [co="red"]Add your text here[/co] You can change the colour of the text by either typing in the colour's word or by adding a hex colour code that includes the hash symbol.

Your text goes here. To add a marquee text type in [ma]Add your text here[/ma]

To add an image or gif type in [im]Add your image or gif URL here[/im]

Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.

To add a Youtube video as a comment use either one of the two codes below and replace the video url with the one you want to add as a comment.
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-WATCH-PAGE-ON-YOUTUBE-HERE]
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-watch?feature=player_detailpage-HERE]

Scrollbox codes

<a target='_blank' title='DON'T TOUCH MY PHONE' href='ADDYOURURLHERE'><img src='https://lh4.googleusercontent.com/-qSyLJ0X94nk/T-_ekHbo_mI/AAAAAAAAHmY/qk0v-X5s32s/s320/58298-dont-touch-my-phone.png' border='0'/></a>

This free script provided by
JavaScript Kit

FAQ

YOUR OPINION COUNTS! A list of topics that I am thinking of writing about but need feedback from visitors before I go ahead with it.

Click to view more Pages
 

This site consists of tutorials that you would not normally see elsewhere. I am adding tutorials that I have either tweeked or created myself, using existing code already found on the Internet.

Back To Top Image by Cool Text: Logo and Button Generator - Create Your Own Logo

Scroll to Bottom Back to Top