Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 30 Sep 2026 - @665.98
Forum Activity: Four Stars Random | Recent Posts | Guild Recents
News: Love is not possession  :4u: Guild Events: Halloween Watch-a-thon
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Is there an easier way of updating footers?


« previous next »
Pages: [1] Print Embed
Author Topic: Is there an easier way of updating footers?  (Read 4129 times)
Memory
Guest

« on: Winter, 06 Jan 2022 @918 » Embed

A few days ago we entered the year of 2022, but one problem was that I had to update my copyright date from 2021 to 2022 on every page. Is there an easier way of doing this where I could just update it once to effect every page?

« Last Edit: Winter, 06 Jan 2022 @920 by Memory » Logged
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #1 on: Winter, 06 Jan 2022 @952 » Toggle Font Embed

A good question! You can apply this to anything you want across a site not just footers :grin:
Although, on the point of copyrights, I'm of the opinion that those are a feature of corporate websites and are not needed on personal sites, each to their own though!

To answer your question, if you use a static site generator you can do this pretty easily - Although I cant help much with that.

If your not using a site generator, include a script at the end of each page that updates the footer, then you just have to update the script to update every page. Its very fast to load, the downside is it does not update if people have scripts turned off.
HTML
Code
<footer id="foot">:grin:efault footer text for people without scripts</footer>
<script src="footUpdate.js?v=0"></script>

Script
Code
var footText = "&copy; 2022 - My Rad Site";
var foot = document.getElementById( 'foot' );

window.onload = function() {
 foot.innerHTML = footText;
}

OR You could also put an iframe in your footer to a default footer page. This is a bit slower as it needs to loads multiple pages (your main page and the footer page) but it still works if people have scripts turned off.

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayHave a chillpillRed Tulip100 coins<3eyntivemds pet fishcurious fish
di
Sr. Member ⚓︎
****
View Profile WWWArt


she/her dude/bro/girl
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Fall!Great Posts PacmanFirst 1000 Members!OG! Joined 2021!
« Reply #2 on: Winter, 07 Jan 2022 @032 » Toggle Font Embed

Super helpful, thank you Melon :cheesy:

Logged

https://delovely.neocities.org/images/blinkies/bl-alien.gifhttps://delovely.neocities.org/images/blinkies/ibelieveinyou.gifhttps://delovely.neocities.org/images/blinkies/di.gifhttps://delovely.neocities.org/images/blinkies/delovely.gif
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #3 on: Winter, 07 Jan 2022 @057 » Toggle Font Embed

OH ALSO, if you want the year to update itself every year you could do:

Code
var year = new Date().getFullYear();
var footText = "&copy; " + year + " - My Rad Site";

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayHave a chillpillRed Tulip100 coins<3eyntivemds pet fishcurious fish
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe