I’d like to test banner (two css background images) and rotate them randomly on each page reload. Is it possible to achieve something like that without using any plugins?
I just need to rotate two images, which is basically just swapping css classes randomly on the banner element, on each reload.
Many thanks.
Since you specifically asked for assigning a CSS class, there is a jquery function to do this:
There are also a few more functions related to this, you can find them documented here: http://docs.jquery.com/Attributes