r/neocities • u/garbage_sinner • 15d 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
u/FrostingEffective699 yuri-uran.nekoweb.org 15d 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 15d 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 15d 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 12d ago
Probably auto-generated by Wordpress or similar rather than AI, since that's a WP plugin
2
u/FrostingEffective699 yuri-uran.nekoweb.org 12d ago
ohhhh i didnt consider this.. sorry!!!
1
u/Dakota-Batterlation https://perilune.space 12d ago
No prob, it's a shame that "code generation" has a bad connotation now, when it's been a thing for decades.
1
5
u/catsandzack yumenosix.art 15d ago
code snippet from sadgrl.online: https://codepen.io/sadness97/pen/VwmBjWo