• Home
  • Don’t Brake My Art
    • Portfolio
  • Privacy Policy
    • Terms of Use
  • Contact
  • Featured Links
    • The Doug & Lydia Show
    • LIVE PODCAST!!
    • Doug Hawk Media
  • Favorite Links
    • Jonnie Awesome
    • The Testy Knitter
    • It’s OK I’m with the Band
    • Apocalypse & Armageddon
  • Top Categories
    • Social Media Icons
    • Photography
    • Technical Support
    • Book Reviews
  • Social Media
    • RSS Feed
    • Twitter
    • FaceBook
    • GoodReads
    • YouTube

Categories

  • Advice
  • Art
  • Book Review
  • Comedy
  • Cooking
  • Don't Brake My Art
  • Doug
  • Essay
  • Hangin' with Lydia Lee
  • Holiday
  • Interview
  • Jonnie Awesome
  • Knitting
  • Media
  • Museums
  • Music
  • News
  • Patton Oswalt
  • Photography
  • Podcast
  • Short Story
  • Social Media Icons
  • Technical Support
  • The Doug & Lydia Show
  • The Testy Knitter
  • Tutorial
  • Uncategorized
  • Versus
  • Video
  • Watercolor
  • Web Design

 

June 2013
M T W T F S S
« May    
 12
3456789
10111213141516
17181920212223
24252627282930
doug banner
jonnie banner

Lower Scrolling Share Box Tutorial

Posted by Lydia Lee on Aug 07, 2011

I found this wonderful scrolling Share Box tutorial that sits at the bottom of the page and looks very sleek. It’s jQuery, so it’s more involved than the left-sitting Share Box on this page, but it’s worth it if you like it for the same reasons that I like it. Here’s the original tutorial link, and here’s my example at the Don’t Brake My Art website.

The author’s name is Tony, and he does a great job of walking through the process, but I’d like to add a few things. For the absolutely clueless, you have to create a few documents to store in a folder–beyond the code you’ll add to your .php and .css documents–and you have to download the images. I added a Linkedin icon and found workable code to go with it.

I like this Share Box because 1) it sits on the bottom of the page, 2) it utilizes .png images (which I think are much classier than the iframe boxes on this page, for instance), and 3) it’s just beautiful. In fact, I think I am officially in love with jQuery and plan on diving in and never coming up for air. Now, for a few of my slightly more elementary instructions:

I suggest you follow Tony’s instructions, but I’d like to clarify to the very new at this, that you will create a few files as you go.

After you add the first bit of code to your .html or .php page, you have to create a share.js page and insert his code into it and store it somewhere easy to locate. I have a “js” folder for those kinds of documents, so I added mine there, and then linked to it on my .php page.

<script type=”text/javascript” src=”/js/share.js“></script>

His “jQuery Cookie” link isn’t easy to follow, but create a file called jquery.cookie.js and add the code from this page into it.

Add it to the same folder as your share.js file and make sure the script leads to it:

<script type=”text/javascript” src=”/js/jquery.cookie.js“></script>

I added everything else precisely, plus a few more things.

Following his social icon source, I decided to add the Linkedin button to the share box. Definitely make sure the path leads to the images. I added this in the “var” section of the share.js document:

var facebook = ‘http://www.facebook.com/sharer.php?u=’+url;
var linkedin = ‘http://www.linkedin.com/cws/share?url=’+url;
var digg = ‘http://digg.com/submit?phase=2&url=’+url+’&title=’+title;

And add this to the “tbar” section of the share.js document between facebook and digg:

tbar += ‘<a href=”‘+linkedin+’” id=”linkedin” title=”Share on Linkedin” target=”_blank”><img src=”/images/linkedin-share.png” alt=”Share on linkedin” width=”32″ height=”32″ /></a>’;

Lastly, if you are adding the extra Linkedin icon without replacing another icon, modify the width in the share.js file like so:

$(‘#socializethis’).bind(‘mouseenter’,function(){
$(this).animate({height:’35px’, width:’300px‘, opacity: 1}, 300);
$(‘#socializethis img’).css(‘display’, ‘inline’);
});

That is it! I think it is brilliantly space-saving and creative and am happy to share it here.

 

You may share this site's content if you link back to the original entry with credit to © Lydia Ann Lee. Merci beaucoup!


 

Unrelated posts:

Good Music on 98.7 FM
Our Parisian Vacation, part 4
Our Parisian Vacation, part 11
Window Art, part 3

Trackbacks/Pingbacks

  1. Lydia Lee

Leave a Reply

Click here to cancel reply.

De Moi

About UsThis site is dedicated to photography, watercolor art, knitted things and my Francophile tendencies. I also post light technical support ideas for neat web design tricks and fixes, and I have been known to occasionally rant about nonsense. The company name is Don’t Brake My Art. A command and a cute turn of phrase.

Search

Bookmark Me

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Suivez Moi!

  • Subscribe via RSS
  • Follow my tweets

Recent Posts

  • iTunes Podcasting Icon to go with Knitted Icon Bundle
  • Instagram & Etsy added to Egg Social Media Icons
  • Patton Oswalt: Werewolves & Lollipops
  • John Grafton’s kitty stories featured at The Daily Mews
  • Etsy Icon to go with Knitted Icon Bundle

Recent Comments

  • More Icon Fun! | Teresa Bolen on iTunes Podcasting Icon to go with Knitted Icon Bundle
  • Alex on iTunes Podcasting Icon to go with Knitted Icon Bundle
  • Lydia Lee on iTunes Podcasting Icon to go with Knitted Icon Bundle
  • Teresa Bolen on iTunes Podcasting Icon to go with Knitted Icon Bundle
  • Inspiring Social Media Icons for Knitters and Crocheters | Teresa Bolen on iTunes Podcasting Icon to go with Knitted Icon Bundle

Blogroll

  • Dio Cancer Fund
  • Dudeists of the World Unite!
  • Good Reads
  • It's OK I'm With The Band
  • Juliana Martinez' Art Site
  • Juliana Martinez' Blog
  • McAfee Land
  • Plastic Fly
  • Playlist.com
  • The Lion's Den
  • Tony Gamble's YouTube Channel
  • Yoga with Mischa
SiteServices
HomeContact
BlogThe Testy KnitterPrivacy Policy
VideoDon't Brake My ArtTerms of Use
© Don't Brake My Art | All Rights Reserved | Riviera Magazine Wordpress Theme