BMH Online

bmh.neocities.org

1,018,730 views
502 followers
6,023 updates
0 tips
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's avatar freckleskies 4 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's avatar saint-images 4 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's avatar bmh 4 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's avatar bmh 4 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
bmh updated their site.
4 years ago
1 like
bmh updated their site.
4 years ago
2 likes
bmh updated their site.
4 years ago
5 likes
saint-images's avatar saint-images 4 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's avatar bmh 4 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
bmh updated their site.
4 years ago
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
bmh updated their site.
4 years ago
2 likes
bmh's avatar bmh 4 years ago

I have created a 'Travels' section. I had previously uploaded (back in November) my 'Snowdon walk', now I have started to add my recent multi-day trip... there will be more to add over the next week or so.

saint-images's avatar saint-images 4 years ago

Waiting for more! While reading, I couldn't help but think of "Three Men in a Boat", even if it's only one man with no boat.

1 like
saint-images's avatar saint-images 4 years ago

I don't remember if I asked this before or was only meaning to ask, so sorry if I'm repeating myself (or if it's too personal), but Wikipedia says that Anglesey is a "stronghold of Welsh language". Do you personally speak Welsh/use it daily?

bmh's avatar bmh 4 years ago

@saint-images I'm glad you like my trip so far! While Wikipedia is perhaps correct, 99% of welsh speakers also speak english. I can speak a small amount of Welsh, like enough to be polite - I took some classes some years ago - and read and understand place names, which is useful.

bmh updated their site.
4 years ago
1 like

Website Stats

Last updated 3 days ago
CreatedJun 16, 2020

Tags

webcam blog electronics computers photography