Neocities.org

BMH Online

bmh.neocities.org

483,287 views
251 followers
4,212 updates
0 tips
1 like
Does anyone know how we can load our 88x31 buttons in a random order? In particular, ones that are clickable... and assuming only a little coding experience!
1 like
freckleskies 2 years ago

you could keep a txt file with the names of all the buttons you have (or even with the whole "" strings to simplify the script down the line), read that file everytime the button page loads, split the strings into an array, shuffle it like you would any array and then append them one by one in the button container element

saint-images 2 years ago

I rooted around a bit trying to shuffle the existing elements on your buttons page, but it doesn't really work because of the arbitrary whitespace elements. Another solution would be to generate the buttons on the fly from the list of links/images with JS, but it's a bit more work. LMK if you would like me to do that for you ψ(._. )>

2 likes
1 like
bmh 2 years ago

@freckleskies brilliant, thank you! That's pretty much what I want; I'll have a play around with that ASAP.

1 like
bmh 2 years ago

@saint-images How did you know I was talking about MY buttons page?! *looks shifty* I quite like the space between the buttons! Hopefully I can keep it ;-)

1 like
1 like
2 likes
5 likes
saint-images 2 years ago

"Click for a larger picture to read the full instructions." - seems like the link also leads to the thumbnail instead of the full-size photo.

bmh 2 years ago

Ahh, thanks for spotting that and reporting it! I'll fix that in the next update, here it is for now: https://bmh.neocities.org/travels/2022_05_01_weather.jpg

1 like
1 like
Hi Alex, thank you for the follow and welcome to Neocities. I can relate to a fair amount of your "An Adolescence Spent Online".
2 likes
Webcam news: It's now running on a Windows XP system... because, I like to pretend it's still 2008.
5 likes

Website Stats

Last updated 12 hours ago
CreatedJun 16, 2020
Site Traffic Stats

Tags

webcam blog electronics computers photography