r/neocities • • 7d ago

Help header image that changes every refresh

is this possible on neocities? if so how? im using https://decl.kal.upd.edu.ph/ as a reference and like what the title says, the header image changes every time the page refreshes/reloads

7 Upvotes

9 comments sorted by

5

u/catsandzack yumenosix.art 7d ago

code snippet from sadgrl.online: https://codepen.io/sadness97/pen/VwmBjWo

1

u/garbage_sinner 7d ago edited 6d ago

thank you ! i'll try this one out

edit: this worked ! thank you so much !! :D

7

u/FrostingEffective699 yuri-uran.nekoweb.org 7d ago

maybe try a javascript math.random() command?? not sure how you'd phrase it, but i could see it being done

-4

u/FrostingEffective699 yuri-uran.nekoweb.org 7d ago

oh also

</script>
<script type="module">
/*! This file is auto-generated */
var e="script#wp-emoji-settings",t=document.querySelector(e)

i smell vibe coding

8

u/garbage_sinner 7d ago

vibe coding from the website i linked? it's kinda unlikely considering i used it when i was in highschool about 5-6 years ago and it looks pretty much the same (idk if the header image changed then)

but thank you for your suggestion ! i'll try it in the morning lmao

2

u/Dakota-Batterlation https://perilune.space 4d ago

Probably auto-generated by Wordpress or similar rather than AI, since that's a WP plugin

2

u/FrostingEffective699 yuri-uran.nekoweb.org 4d ago

ohhhh i didnt consider this.. sorry!!!

1

u/Dakota-Batterlation https://perilune.space 4d ago

No prob, it's a shame that "code generation" has a bad connotation now, when it's been a thing for decades.

1

u/trashbrownz 3d ago

http://sig.grumpybumpers.com/

random image generator based on the images you upload! ☺️