×

Ads


Please disable your ad blocker!

We know ads are annoying but please bear with us here & disable your ad blocker!

×

Since the beginning of the war, more than 2000 civilians have been killed by Russian missiles, according to official data. Help us protect Ukrainians from missiles - provide max military assisstance to Ukraine #Ukraine. #StandWithUkraine

  • Publish anything
  • Login/Regster
logo
  • Lifestyle 397  
    • Informations 61  
    • Travel 51  
    • Geography 20  
    • Nature & Biology 22  
    • Photos 69  
    • Healty 17  
    • Art & Design 24  
    • Kitchen 4  
    • Games 7  
    • Movies 9  
    • Animals 20  
    • Other topics 93  
  • Script & Template 328  
    • CMS PHP Scripts 29  
    • Dle teamplates 62  
    • Dle Modules 17  
    • Osclass Teamplates 26  
    • Osclass Pulugins 67  
    • WP Templates 3  
    • Html Teamplates 6  
    • Opencart 4  
    • License key 22  
    • Programs 28  
    • Web Help Page 39  
    • Forms 21  
    • Grapic Files (psd-ai) 5  
  • Plants 176  
    • Cacti only 82  
    • Agave Family 17  
    • Aloe family 34  
    • Living Stones 13  
    • Supurge Family 28  
    • Stonecrop Family 2  
  • Turkish Posts 362  
    • Bilim Ve Teknoloji 11  
    • Sanat ve Tasarım 25  
    • Mutfak Yemek 7  
    • Hayvanlar 72  
    • Bitkiler ve Doğa 11  
    • Diğer bilgiler 53  
    • Azərbaycanca 54  
  • Coming Soon 0  

Sticky Sidebar code For between Up and down panel

Do you have a blog site and do you want to publish ads on the slide side with a sticky panel?
I, am sure you do that and you got a problem while the sticky panel downing to the full till the footer. Probably this goes over other panels and the view will not cool. So do not worry we will give a coding variant that you can fix your sticky sidebar. These are brain new codes we write in 2022 September. And it should work on your website. We are sharing all the details below.

  • This code is available to Copy and Paste to your HTML, and the CSS and js also including with it. it is the full version.
CSS , JS , HTML TOGETHER
.
<style>
@charset "utf-8";
/* CSS Document */

/*\\\\\\\\\\\\\PAGE STYLES/////////*/

body {
background:#666666;
font-family:Arial, Helvetica, sans-serif;
margin:0;
padding:0;
}

#wrapper {
width:960px;
margin:0 auto;
background:#FFF;
border:solid 1px #dbdbdb;
}

h1,h2,h3 {
margin:0;
padding:0;
}

h3 {
color:#666666;
}

#header {
background:#ececec;
margin:10px;
padding:10px;
}

#menu {
background:#cce2ff;
margin:10px;
padding:10px;
}

#menu a {
padding:0 10px;
text-decoration:none;
}

#menu a:hover {
color:#666666;
}

.promo {
background:#ffe3e3;
border:1px solid #e89c9c;
padding:10px;
}

/*\\\\\\\\\\\\\Sticky Sidebar CSS Starts////////////////////*/

#contentholder {
position:relative;/*sidebar wil be at top as it is absolute div */
}

#sidebar {
width:250px;
float:left;
margin:10px;
padding:10px;
background:#fff3d1;
position:absolute; /*initial value will override by jquery based on event*/
top:0;
}

.sidebarfixed {
position: fixed!important;/*sometime browser overrides the class. so we put important */
top: 0;
}

/*\\\\\\\\\\\\\\\\Sticky Sidebar CSS Ends//////////////////////*/

#content {
margin:10px 10px 10px 310px;
}

#footer {
background:#ececec;
margin:10px;
padding:10px;
text-align:center;
}
</style>
<script>
// jаvascript Document

/*
Jquery Sticky for long sidebars
by www.web3canvas.com
The below script is copyrighted to its respective owner
*/

$(function () {

var msie6 = $.browser == 'msie' && $.browser.version < 7;

if (!msie6 && $('#sidebar').offset()!=null) {
var top = $('#sidebar').offset().top - parseFloat($('#sidebar').css('margin-top').replace(/auto/, 0));
var height = $('#sidebar').height();
var winHeight = $(window).height();
var footerTop = $('#footer').offset().top - parseFloat($('#footer').css('margin-top').replace(/auto/, 0));

var gap = 30;
$(window).scroll(function (event) {
// what the y position of the scroll is
var y = $(this).scrollTop();

// whether that's below the form
if (y+winHeight >= top+ height+gap && y+winHeight<=footerTop) {
// if so, ad the fixed class
$('#sidebar').addClass('sidebarfixed').css('top',winHeight-height-gap +'px');
} 
  else if (y+winHeight>footerTop) {
// if so, ad the fixed class
$('#sidebar').addClass('sidebarfixed').css('top',footerTop-height-y-gap+'px');
} 
  else   
  {
// otherwise remove it
$('#sidebar').removeClass('sidebarfixed').css('top','0px');
}
});
}  
});

</script>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Jquery sticky for long sidebar by Web3canvas.com">
<meta name="keywords" content="jquery, sticky, sidebar, sticky sidebar, sticky element, floating sidear, cross browser, simple sticky sidebar">
<title>Jquery sticky for long sidebar</title>


<!--The JQUERY PLUGIN-->
<script type="text/jаvascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js">    </script>


</head>
<body>
<div id="wrapper">
<div id="header">
<h1>9koala.com</h1>
<h3>company tagline goes here</h3>
</div>
<div id="menu"> <a href="http://9koala.com/">Home</a> <a href="#">About</a> <a href="#">Services</a>  </div>
<div id="contentholder">


<!-- THE SIDEBAR-->
<div id="sidebar">
<ul>
<h3>Sidebar Menu 1</h3>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ul>
<ul>
<h3>Sidebar Menu 1</h3>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ul>
<ol>
<h3>Sidebar Menu 2</h3>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ol>
<ul>
<h3>Sidebar Menu 1</h3>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ul>
<ol>
<h3>Sidebar Menu 2</h3>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ol>
</div>
<div id="content">

<!-- WEB3CANVAS PROMO-->
<div class="promo">
<h1>Jquery sticky for long sidebar</h1>
<p>Normally we have seen lot of sticky sidebars. If you have long Sidebar or longer than window height, then it sucks. So we have decided to make sticky sidebar having long content. This Jquery sticky for long sidebar is very simple and fully customizable. </p>
<p> By <a href="http://9koala.com/">9koala.com</a></p>
<p>Go back to <a href="http://9koala.com" target="_blank">Tutorial</a> or <a href="#" target="_blank">Download the Source</a></p>
</div>

<!--// WEB3CANVAS PROMO-->


<br />
<br />
<h1>Scroll down to see Sticky Sidebar</h1>
<p>Who said that? SURE you can die! You want to die?! No, just a regular mistake. You guys realize you live in a sewer, right? But, like most politicians, he promised more than he could deliver. Oh dear! She's stuck in an infinite loop, and he's an idiot! Well, that's love for you. Who's brave enough to fly into something we all keep calling a death sphere?</p>
<h2>Sticky sidebar with jquery</h2>
<p>Fry! Quit doing the right thing, you jerk! If rubbin' frozen dirt in your crotch is wrong, hey I don't wanna be right. Well, let's just dump it in the sewer and say we delivered it. The key to victory is discipline, and that means a well made bed. You will practice until you can make your bed in your sleep. Oh, all right, I am. But if anything happens to me, tell them I died robbing some old man.</p>
<ul>
<li>Why yes! Thanks for noticing.</li>
<li>No, I'm Santa Claus!</li>
</ul>
<h3>Lethal Inspection</h3>
<p>That's the ONLY thing about being a slave. Soothe us with sweet lies. Your best is an idiot! And until then, I can never die? Why would I want to know that?</p>
<h4>Why Must I Be a Crustacean in Love?</h4>
<p>Ask her how her day was. I was having the most wonderful dream. Except you were there, and you were there, and you were there! Why yes! Thanks for noticing. Bender! Ship! Stop bickering or I'm going to come back there and change your opinions manually! Oh no! The professor will hit me! But if Zoidberg 'fixes' it… then perhaps gifts!</p>
<ol>
<li>The key to victory is discipline, and that means a well made bed. You will practice until you can make your bed in your sleep.</li>
<li>Wow! A superpowers drug you can just rub onto your skin? You'd think it would be something you'd have to freebase.</li>
<li>I'm sure those windmills will keep them cool.</li>
<li>Now Fry, it's been a few years since medical school, so remind me. Disemboweling in your species: fatal or non-fatal?</li>
</ol>
<h5>Bend Her</h5>
<p>Enough about your promiscuous mother, Hermes! We have bigger problems. Now Fry, it's been a few years since medical school, so remind me. Disemboweling in your species: fatal or non-fatal? Say what? We'll go deliver this crate like professionals, and then we'll go home. Throw her in the brig. Oh no! The professor will hit me! But if Zoidberg 'fixes' it… then perhaps gifts!</p>
<h6>Devil's Hands are Idle Playthings</h6>
<p>It's toe-tappingly tragic! Michelle, I don't regret this, but I both rue and lament it. Can I use the gun?</p>
<p>Hey! I'm a porno-dealing monster, what do I care what you think? And then the battle's not so bad? Your best is an idiot! As an interesting side note, as a head without a body, I envy the dead. Dr. Zoidberg, that doesn't make sense. But, okay! It's a T. It goes "tuh".</p>
<h1>The Runaway Bride</h1>
<p>Stop talking, brain thinking. Hush. Sorry, checking all the water in this area; there's an escaped fish. Saving the world with meals on wheels.</p>
<h2>Silence in the Library</h2>
<p>I'm nobody's taxi service; I'm not gonna be there to catch you every time you feel like jumping out of a spaceship. It's a fez. I wear a fez now. Fezes are cool. It's a fez. I wear a fez now. Fezes are cool.</p>
<ul>
<li>*Insistently* Bow ties are cool! Come on Amy, I'm a normal bloke, tell me what normal blokes do!</li>
<li>Heh-haa! Super squeaky bum time!</li>
</ul>
<h3>Doomsday</h3>
<p>Aw, you're all Mr. Grumpy Face today. All I've got to do is pass as an ordinary human being. Simple. What could possibly go wrong? Father Christmas. Santa Claus. Or as I've always known him: Jeff. You hit me with a cricket bat.</p>
<h4>The Rebel Flesh</h4>
<p>I'm the Doctor. Well, they call me the Doctor. I don't know why. I call me the Doctor too. I still don't know why. They're not aliens, they're Earth…liens! You know when grown-ups tell you 'everything's going to be fine' and you think they're probably lying to make you feel better? Heh-haa! Super squeaky bum time! Saving the world with meals on wheels. I'm nobody's taxi service; I'm not gonna be there to catch you every time you feel like jumping out of a spaceship.</p>
<ol>
<li>Aw, you're all Mr. Grumpy Face today.</li>
<li>No, I'll fix it. I'm good at fixing rot. Call me the Rotmeister. No, I'm the Doctor. Don't call me the Rotmeister.</li>
<li>No… It's a thing; it's like a plan, but with more greatness.</li>
</ol>
<h5>The Family of Blood</h5>
<p>*Insistently* Bow ties are cool! Come on Amy, I'm a normal bloke, tell me what normal blokes do! The way I see it, every life is a pile of good things and bad things.…hey.…the good things don't always soften the bad things; but vice-versa the bad things don't necessarily spoil the good things and make them unimportant. Did I mention we have comfy chairs? *Insistently* Bow ties are cool! Come on Amy, I'm a normal bloke, tell me what normal blokes do! I'm the Doctor, I'm worse than everyone's aunt. *catches himself* And that is not how I'm introducing myself.</p>
<h6>The Doctor Dances</h6>
<p>I am the Doctor, and you are the Daleks! Sorry, checking all the water in this area; there's an escaped fish. I'm the Doctor, I'm worse than everyone's aunt. *catches himself* And that is not how I'm introducing myself. I'm nobody's taxi service; I'm not gonna be there to catch you every time you feel like jumping out of a spaceship.</p>
</div>
</div>
<div id="footer">
<h3>Your large footer content</h3>
</div>
</div>
</body>
</html>


You can download the entire script as a zip. If you have any issues or suggestions, please comment.

DOWNLOAD -> 
Demo
 
sticky sidebar
  • Comments web
  • Comments VK
  • About article
This post has no comments.
Write a comment
Name:*
E-Mail:


Question: 10-5=?

Author

Admin

Date

21-09-2022, 15:05

Category

Script & Template / Web Help Page

  • Comments: 0
  • Views: 222
Coming Soon

↓ Similar News ↓

Web Help Page img
Large collection of CSS / HTML buttons Free...
Web Help Page img
The real way to make money on the Internet...
Web Help Page img
Top DNS hosting providers as cloudflare...
Web Help Page img
Colors and Codes html find your html color code...
Web Help Page img
cmd Commands Prompt Commands...
Web Help Page img
Terms to Know About SEO...
Ads
Last Comments See all
18 March 2023 11:53

avatoar foto Николай

U55C-XR9R-5EVH-8NMG-32XG - Благо!!! ...
16 March 2023 21:07

avatoar foto Николай

8BG9-X5KS-8N2U-HAF8-T628 - Благодарю!!! ...
16 March 2023 18:16

avatoar foto samshit

BUNV-XUKD-8JED-VKKT-C55P забрал. Спасибо. ...
16 March 2023 17:05

avatoar foto R3noRU

3BVH-XHSS-T3B2-8X2V-N3BJ забрал ...
16 March 2023 17:04

avatoar foto R3noRU

3BVH-XHSS-T3B2-8X2V-N3BJ забрал ...
Ads
Papular posts
Ключи для ESET НОД 32 бесплатно

Ключи для ESET НОД 32 бесплатно

27/06/2021

Свежие ключи для НОД 32 Бесплатно на 2023 год

Свежие ключи для НОД 32 Бесплатно на 2023 год

10/07/2021

Eset license keys free  1 year

Eset license keys free 1 year

27/06/2021

TeamViewer id changer tool Download free

TeamViewer id changer tool Download free

16/01/2021

Klucze do ESET NOD 32 za darmo

Klucze do ESET NOD 32 za darmo

24/06/2022

Ads
Ads

  • Nature And Garden
  • Geography
  • Animals
  • African Houses
  • Travel

  • Photos
  • Informations
  • Healty
  • Kitchen
  • Art & Design
  • Other Topics

  • PHP Nulled Scripts
  • DLE Templates
  • DLE Modules
  • Osclass Templates
  • Osclass Pulugins
  • Wordpress Templates
  • HTML Templates

  • Contact
  • Last News
  • Lastcomments
  • RSS
  • Sitemap

Authorization

Registration Password Recovery