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...

Clothes Don't Apply--In The Summer

via  | enjoy this random photo of the ocean. No, it's not that kind of post. But I sure bet the post title caught your eye. ;) Ahh. Summer. It is here my friends (or it was...now everything is just cold and wet -.-). And as it rolls in--knocking Spring to the side--so does the heat. And thus my wardrobe drastically changes from sweatshirts and leggings to large (borrowed) shirts and shorts. It's also time to pull out the razor and shave away my still attached winter coat. -.- ^ something cute I wish I could wear. ^ *cough* Anyways. Summer. Lots of heat but also, lots of free time. My mother has decided my summer project is to learn how to drive. (Oh...yay... *sobbing consists in background*) And I hope to hang out with Kenz. But we'll see how June 6th goes. Also, I'm planning on getting lots of writing done, AND looking into (advanced) CSS and HTML for Blogger. AAAAAND I will hopefully take a writing class over the course of a few weeks. Maybe . I don...
"Look," she breathed, studying the sky. " Oh , look... Do you see it?" He looked down at her, his eyes twinkling like the many stars above. "Yes..." "Isn't it beautiful?" "Yes...yes it is..." She looked back at him, meeting his gaze. They were both thinking the same thing, and they were both scared of it. She ducked her head as his eyes moved away, focusing on the ground and the stars and the distance between them. + + + Oh, the fragile doubts of these teenage souls. Why is it that they fear each other? Why is it that they must disregard their feelings? Their emotions? All I can say is; be brave. Take a leap of faith. Because there is a chance it will work out.