Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-25-2013, 02:33 PM   #1
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
KILLSWITCH FREEBIE: StickNSlide jQuery plugin.

Hello Ladies and Entleman.

Today, I am sharing a little jQuery plugin I wrote, basically what it does is takes any element you attach it to, and makes it scroll with the window.

Here's the plugin, just save it to a new file, and name it sticknslide.js and include it on your page like you normally would.

Code:
/**
* StickNSlide
*
* Stick shit and watch it slide down your screen.
* By Killswitch - http://www.pronemedia.com
*
*/

(function(e){e.fn.sticknslide=function(t){var n={fromTheTop:0};t=e.extend(n,t);var r=e(this);if(!r.length){return}var i=r.offset().top;var s=r.width()+"px";var o=e('<div class="sticknslide"></div>');var u=e(window);var a=e(document);u.scroll(function(){var e=u.scrollTop();if(e+t.fromTheTop+r.height()<a.height()-u.height()&&e+t.fromTheTop>r.offset().top){r.css({position:"fixed",width:s,top:t.fromTheTop+"px"});o.css({width:s,height:r.height()});r.before(o)}else if(e+t.fromTheTop<i){o.remove();r.css({position:"static",width:s,top:""})}})}})(jQuery)
Then just attach it to whatever element you want to scroll with like so:

Code:
$('#myelement').sticknslide();
Here's an example of it: http://jsfiddle.net/Killswitch/T37Tq/show/

Hope you enjoy, and keep on keeping on hombres.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:36 PM   #2
CyberHustler
Masterbaiter
 
Industry Role:
Join Date: Feb 2006
Posts: 26,021
Aww man I was looking for something like this recently for sidebar ads. Thanks
CyberHustler is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:37 PM   #3
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by CyberHustler View Post
Aww man I was looking for something like this recently for sidebar ads. Thanks
No problem bruh.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:43 PM   #4
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,167
can i get that tube scraper for free?? hit me up
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:44 PM   #5
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by brassmonkey View Post
can i get that tube scraper for free?? hit me up
If you're interested in it, I can hit you up, but it won't be for free.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:53 PM   #6
Supz
Arthur Flegenheimer
 
Supz's Avatar
 
Industry Role:
Join Date: Jul 2006
Location: New York City
Posts: 11,056
Quote:
Originally Posted by Killswitch View Post
If you're interested in it, I can hit you up, but it won't be for free.
he charges 2 reacharounds for this sweet piece of programming art.
Supz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 02:57 PM   #7
2013
So Fucking Banned
 
Industry Role:
Join Date: Jan 2013
Location: lollling
Posts: 4,390
i hate poo
2013 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 03:10 PM   #8
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by Supz View Post
he charges 2 reacharounds for this sweet piece of programming art.
That was specific to you... Why did you have to say that!
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 03:50 PM   #9
Vapid - BANNED FOR LIFE
Barterer
 
Industry Role:
Join Date: Aug 2004
Posts: 4,864
Poo on you
Vapid - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 03:56 PM   #10
Supz
Arthur Flegenheimer
 
Supz's Avatar
 
Industry Role:
Join Date: Jul 2006
Location: New York City
Posts: 11,056
Quote:
Originally Posted by Killswitch View Post
That was specific to you... Why did you have to say that!
Didnt know. I thought this was for everyone...
Supz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 03:58 PM   #11
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by Monotony View Post
Poo on you


Quote:
Originally Posted by Supz View Post
Didnt know. I thought this was for everyone...
It's okay, shit happens when you party naked.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 04:10 PM   #12
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Thinking of starting a Freebie Friday where I'll create something small and give it away for free.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 04:53 PM   #13
georgeyw
58008 53773
 
georgeyw's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Australia
Posts: 9,864
Doesn't seem to work on tablets.
__________________
TripleXPrint on Megan Fox
"I would STILL suck her pussy until her face caved in. And then blow her up and do it again!"
georgeyw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 04:56 PM   #14
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by georgeyw View Post
Doesn't seem to work on tablets.
Never tested it on tablets.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 06:30 PM   #15
rogueteens
So fucking bland
 
rogueteens's Avatar
 
Industry Role:
Join Date: Jul 2006
Location: England
Posts: 8,005
Is it meant to stay in the middle of the screen? As it rolls to the top when you scroll down on my browser.
__________________
Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
Easily my best performing webcam sponsor - CLICK HERE!!
rogueteens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 06:34 PM   #16
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by rogueteens View Post
Is it meant to stay in the middle of the screen? As it rolls to the top when you scroll down on my browser.
On the example it does, otherwise it stays wherever you originally put the item until you start scrolling then it goes down.


Also I have made this to start the Friday Freebies. You can sign up and I'm gonna attempt to send out a new freebie like this one every Friday to users.

http://www.pronemedia.com/frifree
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 07:04 PM   #17
Heath
Confirmed User
 
Join Date: Sep 2008
Posts: 491
These dudes are legit. I had a clusterfuck of problems and they helped resolve it more quickly than ALL the people I hired before them.

I am pleasantly surprised. The new site will be fully completed in the next few weeks.
__________________
Email - popuplace [at] yahoo [dot] com
Heath is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2013, 07:08 PM   #18
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
Quote:
Originally Posted by Populace View Post
These dudes are legit. I had a clusterfuck of problems and they helped resolve it more quickly than ALL the people I hired before them.

I am pleasantly surprised. The new site will be fully completed in the next few weeks.
Thanks man, always a pleasure working with you.
__________________
Killswitch is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.