Skip to main content

How to Add a Floating, Fade In Gadget to Your Blog

Today's tutorial was prompted by a question I received in my advice column contact form. :) It read:

I LOVE everything that you did with Ingrid's blog, http://www.smilingrid.com/! When you scroll down, that tabs bar up top pops up is the bomb. Could you please do a tutorial on how to code it?? I have some web designer friends, so don't be afraid to "speak code" as they will explain it to me haha <33


This tutorial is going to be on how to create a floating, fade in gadget (specifically a Blogger pagelist). Let's get started. :)


The instructions.

  1. Select the blog you want to edit.
  2. Make sure you have a pagelist gadget installed on your blog.
  3. Install the following codes to your template.
  4. Save and view your changes.

Javascript:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>
<script>
$(document).ready(function(){
// hide #mbz-sidebar-widget first
$(&quot;#PageList1&quot;).hide();
// fade in #mbz-sidebar-widget
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() &gt; 200) {
$(&#39;#PageList1&#39;).fadeIn();
} else {
$(&#39;#PageList1&#39;).fadeOut();
}
});
});
});
</script>

Place this code above the "</body>"  section in the HTML of your template.

CSS:

#PageList1 { position: fixed;
top: -30px;
left: 0px;
padding-left: 30px;
width: 100%;
z-index: 9;
background-color: white;
height: 55px;
line-height: 35px;
text-transform: uppercase;
box-shadow: 2px 2px 3px #eee;

display: none; }

#PageList1 a { font-family: 'Raleway', sans-serif;
line-height: 3; }

Go to Template >>> Customize >>> Add CSS and paste this code in box.

Easy peasy, right? :)

If you have any comments, questions or concerns, please feel free to contact me.


Comments

Popular posts from this blog

May I ask for your [honest] opinion?

via Alrighty. I recently just completed my one hundredth blog design order [insert celebratory balloons, glitter cannons, and thrown pies here]. ;} And I was talking to my mother about this in the car, to and from the store. Basically, what she said was; "You've been doing your designs for a long time, right? So why don't you start charging for your services?" This got me thinking, and in my eyes, I feel as though charging for my designs would probably make me feel like I'm getting cocky, and too proud of my work, yah know? But I wanted to ask you guys, my honest readers; do YOU think my services are worth spending money on? Like seriously. If you wanted a new design would you choose me, even if it cost you ten dollars? I know most of it is just a matter of opinion. Every designer has their own way of doing things. Their own unique style. It all depends on what the "order-er" wants. I'd like to know if I have the capabilities of giving s...

I have so many ideas, and so little time...

Well. I've created a writers group, so I can check that off my list of dream tasks (huzzah!) but now that I've completed one task, I've come to reveal that I have a whole other bunch of ideas to set upon making real, as well. I want to--oh so badly want to--create a writers support group, in the form of a collaboration blog. Mackenzie and I had considered doing this, but since we haven't talked much lately, I guess... Well, maybe there are some volunteers out there who would like to help me make this idea come to life? Hm? If not, it's alright, I may have to postpone this dream for a (small) while anyway because I am very busy grooming other dreams. Like... + My writers group. As mentioned previously, this group is to help me prepare my manuscript for publication, but is very much still in the "forming phase". + ( The research of) Getting my book(s) published . Gosh guys, this is going to be a lot harder than I thought (did you know an author must...

Guest Post by Bethan

Hey there! It's Bethan from Think. Read. Write. Dream. The beautiful Rose was kind enough to let me guest post on her amazing blog - which is such an honour! I'll start with a little about myself. :) I'm 14 years old, with curly brown hair, eyes that don't really have a specific colour and very pale skin. I'm also really small... I'm right-handed, a bit socially awkward, a perfectionist and a tiny bit crazy. I am a Christian that loves reading, writing, blogging and drawing. I've wanted to be a writer since I was really young and am always daydreaming. I love to play the piano, and have just passed my Grade 4 exam. If you enjoy this guest post, you can head over to my blog where I post book hauls, occasional tags and awards, quite a few of my writings and a little bit of randomness (okay.. a lot of randomness.) Here's a little taste of my writings. I hope you enjoy. :) The sky is dark with grey clouds and I hear a faint rumbling coming from abo...