Self taught web designer. I enjoy web design and music. I love my bass and electric guitars from Ibanez and Fender. I love animals, and being friends with others.
I'll try my best to explain what I want to do with this. All I want is when opening my blog archive, I want the page to scroll down when I click it open. How to do this? I tried to find an example code, but couldn't.
"I can only show you the door. You're the one that has to walk through it." ~ Morpheus The Matrix
Hey, I can't seem to unbind my search button with the function I added
<script>
$(document).ready(function() {
$("searchButton").click(function() {
$(this).slideToggle();
});
$("searchButton").click(function() {
$("searchButton").unbind();
});
});
</script>
It is interfering with the function to my blog archive buttons
<script>
$('button').each(function() {
/* "each" in jQuery lets us apply what's inside here to each button individually without having to give them each their own names. Imagine this code going down the line and repeating everything below for each of the buttons. */
var $thisButton = $(this);
/* To refer to the individual button inside of this section we can use $(this), but to try and make the rest of this more clear, I'm going to rename $(this) to $thisButton */
$thisButton.click(function() {
var $thisButtonsDropdown = $thisButton.siblings();
/* Sibling here means "on the same level as the button." We need to do this to find the section of months or links that matches this button we clicked, so that we slide up/down the right one--the one we want is the one that is next to it, its sibling. */
/* This part should be a little familiar! */
if ($thisButtonsDropdown.is(':visible')) {
$thisButtonsDropdown.slideUp();
$thisButton.removeClass('flip');
} else {
$thisButtonsDropdown.slideDown();
$thisButton.addClass('flip');
}
});
});
</script>
As Firefox's Inspect Element shows. What should I do?
"I can only show you the door. You're the one that has to walk through it." ~ Morpheus The Matrix
Hi. I'm having a problem that has me really stumped. When I click my blog archive open, say on 2020, the post count number next to that (8), will move down. I can show you here in the before/after pics
This one is an old pic before the number has been changed. And this is the after pic
And here's the related code :
#postcount {
font-family:Overpass, Georgia, Arial, Verdana;
font-size:17px;
color:blue;
}
<li id="postcount"> <!-- this is the start of a year -->
Having a problem where the spacing of the years in my archive aren't all the same.
The first two are fine, but then as you look down, it increases, then the last two are fine again. How can I fix this? Here's some code :
<style type="text/css">
ul {
/* These are lists which will have bullet points unless we remove them like this */
list-style-type: none;
}
li {
/* These are the individual list items--the years, the months, the links. We want them to have some space between them to look nicer, and we can do that using margin. */
margin-top: 10px;
margin-bottom: 10px;
}
button {
/* Buttons have borders and backgrounds by default, let's remove those */
/* :before is a "pseudoelement" which lets us put something on the page (before or after an element, in this case, all buttons) using only CSS */
content: "►";
/* This has to be inline-block for the transform below to work */
display: inline-block;
color:#000;
font-family:Overpass, Georgia, Arial, Verdana;
font-size:18px;
position:relative;
top:0px;
left:0px;
cursor:pointer;
z-index:9999;
text-shadow:none;
}
And am having problems with it. The problem is that this code has given me 3 extra buttons which you can see here at the top left. My question is, how can I rid these buttons? I have heard something about scoping which can do this, but am not sure. I'm so new to that.
Hi. I'm having problems where when I click my blog archive's button to open, the first <div> container will slide open then closed then open. This happens 3 times and stops. Does anyone know why? I can share the code as to where the problem may be happening.
<script> $(document).ready(function () { $('.myBtn').click(function () { $(".container").add('.container2').slideToggle("slow", function () { if ($(".container2").is(':visible')) $(".myBtn2").addClass('flip');
I think the problem lies within the 2nd code here. I also have the HTML and CSS parts if that helps, but I really feel that the problem is within these codes
Hi all, I just signed in to this forum, and need help please. I'm having a major mix up of my blog archives where I have three of my links that do not show all of my entries when opened. I have some screen shots to show what I am stuck with. It's really weird haha. I hope someone can help. Many thanks for reading.
So here is the jQuery side...
This opens nicely, but partially, thanks to that red button up there, with the help of the above jQuery.
And here are the rest of the entries which should belong under that 2019, but this white button here under 2018 opens it instead....
I can't seem to wrap my head or heels around this mess . Many thanks again.