Image Randomizer
-
Hi Lay-Theme Team,
I'm currently thinking about a way to randomize certain images on my (still wip) site. The most comfortable way would be a plugin.
The exact area I wanted to use it at would be for the logo in the header of my site. I’d like to be able to define n images / logos to randomly show up where the logo is placed in the headerbar.
The coolest thing would be to even define that the images are randomly chosen per session. But it would totally fine to have it change with every browser refresh.Is there any easy way to do so?
Or is this more like a custom-plugin?If it’s the latter could you point me in a direction what needs to be done?
Cheers!
-
Dear @edgrbnz
you can do this with jQuery. It won't be that difficult.
If you don't know how to code jQuery – I think it will be rather difficult. A plugin won't help you I think.But have a look into jQuery. It's fun ;-)
Marius
-
Dear @edgrbnz
you can do this with jQuery. It won't be that difficult.
If you don't know how to code jQuery – I think it will be rather difficult. A plugin won't help you I think.But have a look into jQuery. It's fun ;-)
Marius
@mariusjopen Any resources you’d recommend to have a look at?
-
Dear @edgrbnz
a basic course in Codeacademy about jQuery is a good start.
Otherwise google this like this: jquery random imageYou can find some examples also in jsFiddle I suppose.
Keep this in mind though:
http://laytheme.com/documentation.html#custom-javascriptBest!
Marius
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login