Recently I was doing some work while listening to Grooveshark and I got fed up with having to go back to the tab to stop or change tracks and it dawned on me that it would be pretty straight forward to put together a grooveshark plugin. So that’s what I did, this here is the home for GrooveControl. In the coming week I’ll be expanding this article to include a full writeup on creating a Firefox 4 plugin with Jetpack, but for now, without further ado, here is the link to the plugin!
https://addons.mozilla.org/en-US/firefox/addon/groovecontrol/
This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It’s lightweight, simple and easy to customize as needed.
<div id="yourContainer">
<ul>
<li>A list item</li>
<li>Another list item</li>
<li>Another list item</li>
<li>Etc...</li>
</ul>
</div>
<a id="#clickscroll-more" href="#">More</a>
<a id="#clickscroll-less" href="#">Less</a>
#yourContainer {
height: 300px; /* REQUIRED FOR VERTICAL SCROLLING */
width: 500px; /* REQUIRED FOR HORIZONTAL SCROLLING */
overflow: hidden; /* DO NOT REMOVE */
position: relative; /* DO NOT REMOVE */
}
#yourContainer ul {
list-style: none;
padding: 0;
margin: 0;
position: absolute; /* DO NOT REMOVE */
}
#yourContainer ul li {
padding: 0;
margin: 0;
}
$(function(){
$('#yourContainer').clickScroll();
});
This is how you could setup a horizontal scroller using all the options, like in the demo
$('#yourContainer-horizontal').clickScroll({
speed: 1000, // Scroll Speed
easing: 'easeOutElastic', // Animation easing method
lessBtn: '#scroll-left', // Custom ID of scroll button
moreBtn: '#scroll-right', // Custom ID of scroll button
btnFadeSpeed: 500, // Speed of button fading in/out when not end of scrolling is reached
horizontal: true // Make it scroll Horizontally,
autoHideNav: false // Don't hide the navigation controls automatically
});
You’ll also want to change you CSS so the list elements are floated or inline-block…
For the new threeformed site I am using WordPress as a light CMS, so I wanted to treat some ‘special’ posts differently than others based on their category. This meant that i’d have to exclude these ‘special’ posts from a few places, one of these places was the tag cloud. Read on…
jScrollHorizontalPane is a plugin based off of Kevin Luck’s jScrollPane which override’s the browsers…
I was finishing up some tedious work around midnight a few days ago and decided I needed to code something fun. I have…
For the new threeformed site I am using WordPress as a light CMS, so I wanted to treat some ‘special’ posts d…
This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It’s lightweight, s…
This is the home of the GrooveControl Firefox 4 plugin.