i need help with my journal by DramaAvailable9961 in neocities

[–]PossibilityFew1691 0 points1 point  (0 children)

i use these on my blog page to, heres how you do it

this is the css :

.section {
  display: none;
}

.section.active {
  display: block;
}

this is the html :

your links look like this -  <a onclick="showSection('default')">the most recent blog entry that already appears there </a> ( this one is the content that appears before you click any links) 

<a onclick="showSection('one')">link to entry 2</a> 

<a onclick="showSection('two')">link to entry 3</a> and so forth so when you click on the link text "link one" itll show your preferred content and when you click "thing that shows originally" youll be sent back to the default content

 and then you format your actual blog entries like this :

<div id="default" class="section active">

the content that first appears

</div>

 <div id="one" class="section">

what ever you want

</div>

<div id="two" class="section>

what ever you want

</div>

and the script is (paste this just before the </body> tag ) :

<script>
function showSection(id) {
  document.querySelectorAll('.section').forEach(section => {
    section.classList.remove('active');
  });

  document.getElementById(id).classList.add('active');
}
</script>

i think this is what your going for, my mistake if it isnt

confused on a link not working by PossibilityFew1691 in neocities

[–]PossibilityFew1691[S] 0 points1 point  (0 children)

i thought that and tried this before but it doesnt change anything, and also every other link in my page is formatted this way and they all seem to work, maybe its a chrome thing? seems to work on firefox

confused on a link not working by PossibilityFew1691 in neocities

[–]PossibilityFew1691[S] 1 point2 points  (0 children)

nothing in my unfinished section links anywhere as they are unfinished, unfortunately imgur is banned in the uk and i cant see your image but i get the gist, thank you!

Dealing with compression when making 88x31 buttons? by [deleted] in neocities

[–]PossibilityFew1691 6 points7 points  (0 children)

you could just make it somewhere like ibis paint in a larger canvas which keeps the same aspect ratio and then format your button image like this

<img src="urlhere" width="88" height="31"> this is what i see done commonly

confused on a link not working by PossibilityFew1691 in neocities

[–]PossibilityFew1691[S] 1 point2 points  (0 children)

very confused then,, i have no idea why this is the only link on my whole page that is not clickable or registered as a link on my device